286
Chapter 3: Objects
Example
The following example stores the value for the Accessibility panel name of the object in the
theName
variable:
var theName = fl.getDocumentDOM().selection[0].accName;
The following example sets the value for the Accessibility panel name of the object to
"Home
Button"
:
fl.getDocumentDOM().selection[0].accName = "Home Button";
symbolInstance.actionScript
Availability
Flash MX 2004.
Usage
symbolInstance.actionScript
Description
Property; a string that specifies the actions assigned to the symbol. This applies only to movie clip
and button instances. For a graphic symbol instance, the value returns undefined.
Example
The following example assigns an
onClipEvent
action to the first item in the first frame of the
first layer in the Timeline:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].actionScript
= "onClipEvent(enterFrame) {trace('movie clip enterFrame');}";
symbolInstance.buttonTracking
Availability
Flash MX 2004.
Usage
symbolInstance.buttonTracking
Description
Property; a string that, for button symbols only, sets the same property as the pop-up menu for
Track as Button or Track as Menu Item in the Property inspector. For other types of symbols, this
property is ignored. Acceptable values are
"button"
or
"menu"
.
Example
The following example sets the first symbol in the first frame of the first layer in the Timeline to
Track as Menu Item, as long as that symbol is a button:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].buttonTracki
ng = "menu";
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...