424
Objects
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].filter
s[0].name;
fl.trace(filterName);
var filterArray =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].filter
s;
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 11 should be the first frame to appear in the
timeline of the specified element:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].firstFram
e = 10;
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...