Timeline.deletelayer(); Timeline.expandfolder() - 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 cuts the selected frames from the Timeline and saves them to the
Clipboard:
fl.getDocumentDOM().getTimeline().cutFrames();
The following example cuts Frame 2 up to, but not including, Frame 10 from the Timeline and
saves them to the Clipboard (remember that index values are different from frame number
values):
fl.getDocumentDOM().getTimeline().cutFrames(1, 9);
The following example cuts Frame 5 from the Timeline and saves it to the Clipboard:
fl.getDocumentDOM().getTimeline().cutFrames(4);

timeline.deleteLayer()

Availability
Flash MX 2004.
Usage
timeline.deleteLayer([index])
Parameters
A zero-based index that specifies the layer to be deleted. If there is only one layer in the
index
Timeline, this method has no effect. This parameter is optional.
Returns
Nothing.
Description
Method; deletes a layer. If the layer is a folder, all layers within the folder are deleted. If you do not
specify the layer index, Flash deletes the currently selected layers.
Example
The following example deletes the second layer from the top:
fl.getDocumentDOM().getTimeline().deleteLayer(1);
The following example deletes the currently selected layers:
fl.getDocumentDOM().getTimeline().deleteLayer();

timeline.expandFolder()

Availability
Flash MX 2004.
Usage
timeline.expandFolder(bExpand [, bRecurseNestedParents [, index]])
Timeline object
333

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents