User Guide

Frame object 275
frame.actionScript
Availability
Flash MX 2004.
Usage
frame.actionScript
Description
Property; a string that represents ActionScript code. To insert a new line character, use "\\n".
Example
The following example assigns stop() to first frame top layer action:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].actionScript =
'stop();';
frame.duration
Availability
Flash MX 2004.
Usage
frame.duration
Description
Read-only property; an integer that represents the number of frames in a frame sequence.
Example
The following example stores the number of frames in a frame sequence that starts at first
frame in the top layer in the
frameSpan variable:
var frameSpan =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].duration;
frame.tweenType A string that specifies the type of tween.
frame.useSingleEaseCurve A Boolean value that specifies whether a single custom
ease curve is used for easing information for all properties.
Property Description