Symbolinstance.firstframe, Symbolinstance.forcesimple – Adobe Extending Flash Professional CS5 User Manual
Page 446
424
EXTENDING FLASH PROFESSIONAL
SymbolInstance object
Last updated 5/2/2011
Example
The following example traces the name of the filter at index 0. If it is a Glow filter, its
blurX
property is set to 100 and
the new value is written to the filters array.
var filterName =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].filters[0].name;
fl.trace(filterName);
var filterArray = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].filters;
if (filterName == 'glowFilter'){
filterArray[0].blurX = 100;
}
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].filters = filterArray;
symbolInstance.firstFrame
Availability
Flash MX 2004.
Usage
symbolInstance.firstFrame
Description
Property; a zero-based integer that specifies the first frame to appear in the timeline of the graphic. This property
applies only to graphic symbols and sets the same property as the First field in the Property inspector. For other types
of symbols, this property is
undefined
.
Example
The following example specifies that Frame 10 should be the first frame to appear in the timeline of the specified
element:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].firstFrame = 10;
symbolInstance.forceSimple
Availability
Flash MX 2004.
Usage
symbolInstance.forceSimple
Description
Property; a Boolean value that enables and disables the accessibility of the object’s children. This property is equivalent
to the inverse logic of the Make Child Objects Accessible setting in the Accessibility panel. For example, if
forceSimple
is
true
, it is the same as the Make Child Object Accessible option being unchecked. If
forceSimple
is
false
, it is the same as the Make Child Object Accessible option being checked.
This property is available only for MovieClip objects.