Timeline.setframeproperty() - 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 selects all the frames in the current Timeline.
fl.getDocumentDOM().getTimeline().selectAllFrames();

timeline.setFrameProperty()

Availability
Flash MX 2004.
Usage
timeline.setFrameProperty(property, value [, startFrameIndex [,
endFrameIndex]])
Parameters
A string that specifies the name of the property to be modified. For a complete list of
property
properties and values, see
Note: You can't use this method to set values for read-only properties such as
.
frame.elements
Specifies the value to which you want to set the property. To determine the appropriate
value
values and type, see
startFrameIndex
you omit
startFrameIndex
endFrameIndex
frames goes up to, but does not include,
omit
endFrameIndex
parameter is optional.
Returns
Nothing.
Description
Method; sets the property of the Frame object for the selected frames.
Example
The following example assigns the ActionScript
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);
"Property summary for the Frame object" on page
"Property summary for the Frame object" on page
A zero-based index that specifies the starting frame number to modify. If
, the method uses the current selection. This parameter is optional.
A zero-based index that specifies the first frame at which to stop. The range of
,
defaults to the value of
endFrameIndex
. If you specify
endFrameIndex
command to the first frame of the top
stop()
185.
frame.duration
185.
startFrameIndex
. This
startFrameIndex
Timeline object
and
but
345

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents