Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 448

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 447
426
EXTENDING FLASH PROFESSIONAL
SymbolInstance object
Last updated 5/2/2011
fl.getDocumentDOM().selection[0].shortcut = "Ctrl+i";
symbolInstance.silent
Availability
Flash MX 2004.
Usage
symbolInstance.silent
Description
Property; a Boolean value that enables or disables the accessibility of the object. This property is equivalent to the
inverse logic of the Make Object Accessible setting in the Accessibility panel. For example, if
silent is true, it is the
same as the Make Object Accessible option being unchecked. If
silent is false, it is the same as the Make Object
Accessible option being checked.
This property is not available for graphic objects.
Example
The following example checks to see if the object is accessible; a return value of false means the object is accessible:
var isSilent = fl.getDocumentDOM().selection[0].silent;
The following example sets the object to be accessible:
fl.getDocumentDOM().selection[0].silent = false;
symbolInstance.symbolType
Availability
Flash MX 2004.
Usage
symbolInstance.symbolType
Description
Property; a string that specifies the type of symbol. This property is equivalent to the value for Behavior in the Create
New Symbol and Convert To Symbol dialog boxes. Acceptable values are
"button", "movie clip", and "graphic".
Example
The following example sets the first symbol in the first frame of the first layer in the timeline of the current document
to behave as a graphic symbol:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].symbolType = "graphic";
Zobrazit stránku 447
1 2 ... 443 444 445 446 447 448 449 450 451 452 453 ... 564 565

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

Žádné komentáře