Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 539

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 538
517
EXTENDING FLASH CS4 PROFESSIONAL
XMLUI object
xmlui.getEnabled()
Availability
Flash 8.
Usage
xmlui.getEnabled(controlID)
Parameters
controlID A string that specifies the ID attribute of the control whose status you want to retrieve.
Returns
A Boolean value of true if the control is enabled; false otherwise.
Description
Method; returns a Boolean value that specifies whether the control is enabled or disabled (dimmed).
Example
The following example returns a value that indicates whether the control with the ID attribute myListBox is enabled:
var isEnabled = fl.xmlui.getEnabled("myListBox");
fl.trace(isEnabled);
See also
fl.xmlui, document.xmlPanel(), xmlui.setEnabled()
xmlui.getVisible()
Availability
Flash 8.
Usage
xmlui.getVisible(controlID)
Parameters
controlID A string that specifies the ID attribute of the control whose visibility status you want to retrieve.
Returns
A Boolean value of true if the control is visible, or false if it is invisible (hidden).
Description
Method; returns a Boolean value that specifies whether the control is visible or hidden.
Example
The following example returns a value that indicates whether the control with the ID attribute myListBox is visible:
Zobrazit stránku 538
1 2 ... 534 535 536 537 538 539 540 541 542 543 544 ... 559 560

Komentáře k této Příručce

Žádné komentáře