Timeline Object - 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

Timeline object

Availability
Flash MX 2004.
Description
The Timeline object represents the Flash Timeline, which can be accessed for the current
document by
fl.getDocumentDOM().getTimeline()
current scene or symbol that is being edited.
When you work with scenes, each scene's Timeline has an index value, and can be accessed for the
current document by
the value of the Timeline.)
When you work with frames by using the methods and properties of the Timeline object,
remember that the frame value is a zero-based index (not the actual frame number in the sequence
of frames in the Timeline). That is, the first frame has a frame index of 0.
Method summary for the Timeline object
The following methods are available for the Timeline object.
Method
timeline.addMotionGuide()
timeline.addNewLayer()
timeline.clearFrames()
timeline.clearKeyframes()
timeline.convertToBlankKeyframes()
timeline.convertToKeyframes()
timeline.copyFrames()
timeline.createMotionTween()
timeline.cutFrames()
timeline.deleteLayer()
timeline.expandFolder()
timeline.findLayerIndex()
324
Chapter 3: Objects
fl.getDocumentDOM().timelines[i]
Description
Adds a motion guide layer above the current layer and
attaches the current layer to the newly added guide layer.
Adds a new layer to the document and makes it the current
layer.
Deletes all the contents from a frame or range of frames on
the current layer.
Converts a keyframe to a regular frame and deletes its
contents on the current layer.
Converts frames to blank keyframes on the current layer.
Converts a range of frames to keyframes (or converts the
selection if no frames are specified) on the current layer.
Copies a range of frames on the current layer to the
Clipboard.
Sets the
selected keyframe on the current layer, and converts each
frame's contents to a single symbol instance if necessary.
Cuts a range of frames on the current layer from the Timeline
and saves them to the Clipboard.
Deletes a layer.
Expands or collapses the specified folder or folders.
Finds an array of indexes for the layers with the given name.
. This method returns the Timeline of the
. (In this example,
property to
frame.tweenType
CHAPTER 3
Objects
is the index of
i
for each
"motion"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents