Symbolinstance.actionscript, Symbolinstance.backgroundcolor, Symbolinstance.bitmaprendermode – Adobe Extending Flash Professional CS5 User Manual
Page 439
417
EXTENDING FLASH PROFESSIONAL
SymbolInstance object
Last updated 5/2/2011
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.backgroundColor
Availability
Flash CS5.5 Professional.
Usage
symbolInstance.backgroundColor
Description
Property; a string that specifies the matte color when 24 bit mode is selected for the instance. This is a string in
hexadecimal #rrggbb format or an integer containing the value.
Example
The following example assigns the symbol instance a background color of black:
var bitmapInstance = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0];
bitmapInstance.backgroundColor = "#000000";
symbolInstance.bitmapRenderMode
Availability
Flash CS5.5 Professional.