MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 495

Extending flash
Table of Contents

Advertisement

Example
The following example assigns the ActionScript
top layer in the current document:
fl.getDocumentDOM().getTimeline().currentLayer = 0;
fl.getDocumentDOM().getTimeline().setSelectedFrames(0,0,true);
fl.getDocumentDOM().getTimeline().setFrameProperty("actionScript",
"stop();");
The following example sets a motion tween from Frame 2 up to, but not including, Frame 5,
of the current layer (remember that index values are different from frame number values):
fl.getDocumentDOM().getTimeline().setFrameProperty("tweenType","motion",1,4
);
timeline.setLayerProperty()
Availability
Flash MX 2004.
Usage
timeline.setLayerProperty(property, value [, layersToChange])
Parameters
A string that specifies the property to set. For a list of properties, see
property
object" on page
305.
The value to which you want to set the property. Use the same type of value you
value
would use when setting the property in the layer object.
A string that identifies which layers should be modified. Acceptable values
layersToChange
are
,
"selected"
"all"
parameter. This parameter is optional.
Returns
Nothing.
Description
Method; sets the specified property on all the selected layers to a specified value.
, and
. The default value is
"others"
command to the first frame of the
stop()
"selected"
"Layer
if you omit this
Timeline object
495

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents