Symbolinstance.actionscript; Symbolinstance.buttontracking - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Example
The following example stores the value for the Accessibility panel name of the object in the
variable:
theName
var theName = fl.getDocumentDOM().selection[0].accName;
The following example sets the value for the Accessibility panel name of the object to
:
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
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
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";
286
Chapter 3: Objects
action to the first item in the first frame of the
onClipEvent
or
"button"
"menu"
.
"Home

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents