Frame.startframe, Frame.tweeneasing, Frame.tweeninstancename – Adobe Extending Flash Professional CS5 User Manual
Page 323
301
EXTENDING FLASH PROFESSIONAL
Frame object
Last updated 5/2/2011
frame.startFrame
Availability
Flash MX 2004.
Usage
frame.startFrame
Description
Read-only property; the index of the first frame in a sequence.
Example
In the following example,
stFrame
is the index of the first frame in the frame sequence. In this example, a frame
sequence is spanning the six frames from Frame 5 to Frame 10. Therefore, the value of
stFrame
at any frame between
Frame 5 and Frame 10 is 4 (remember that index values are different from frame number values).
var stFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[4].startFrame;
fl.trace(stFrame); // 4
var stFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[9].startFrame;
fl.trace(stFrame); // 4
frame.tweenEasing
Availability
Flash MX 2004.
Usage
frame.tweenEasing
Description
Property; an integer that specifies the amount of easing that should be applied to the tweened object. Acceptable values
are -100 to 100. To begin the motion tween slowly and accelerate the tween toward the end of the animation, use a
value between -1 and -100. To begin the motion tween rapidly and decelerate the tween toward the end of the
animation, use a positive value between 1 and 100.
Example
The following example specifies that the motion of the tweened object should begin fairly rapidly and decelerate
toward the end of the animation:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].tweenEasing = 50;
frame.tweenInstanceName
Availability
Flash Professional CS5.