timeline.expandFolder()
Availability
Flash MX 2004.
Usage
timeline.expandFolder(bExpand [, bRecurseNestedParents [, index]])
Parameters
A Boolean value that, if set to
, causes the method to expand the folder;
bExpand
true
causes the method to collapse the folder.
false
A Boolean value that, if set to
, causes all the layers within
bRecurseNestedParents
true
the specified folder to be opened or closed, based on the
parameter. This parameter
bExpand
is optional.
A zero-based index of the folder to expand or collapse. Use -1 to apply to all layers
index
(you also must set
to
). This property is equivalent to the
bRecurseNestedParents
true
Expand All/Collapse All menu items in the Flash authoring tool. This parameter is optional.
Returns
Nothing.
Description
Method; expands or collapses the specified folder or folders. If you do not specify a layer, this
method operates on the current layer.
Example
The following examples use this folder structure:
Folder 1 ***
--layer 7
--Folder 2 ****
----Layer 5
The following example expands Folder 1 only:
fl.getDocumentDOM().getTimeline().currentLayer = 1;
fl.getDocumentDOM().getTimeline().expandFolder(true);
The following example expands Folder 1 only (assuming that Folder 2 collapsed when Folder
1 last collapsed; otherwise, Folder 2 appears expanded):
fl.getDocumentDOM().getTimeline().expandFolder(true, false, 0);
The following example collapses all folders in the current timeline:
fl.getDocumentDOM().getTimeline().expandFolder(false, true, -1);
480
Objects
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers