Parameters
A string that specifies the name of the item. If the item is in a folder, you can specify
namePath
its name and path using slash notation. If
item opens in Edit mode. If none or more than one item in the library is currently selected, the
first scene in the main Timeline appears for editing. This parameter is optional.
Returns
A Boolean value:
Description
Method; opens the currently selected or specified item in Edit mode.
Example
The following example opens the item circle in the test folder of the library for editing:
fl.getDocumentDOM().library.editItem("test/circle");
library.expandFolder()
Availability
Flash MX 2004.
Usage
library.expandFolder( bExpand [, bRecurseNestedParents [, namePath ] ] )
Parameters
A Boolean value: if
bExpand
collapsed.
bRecurseNestedParents
are expanded or collapsed, based on the value of
parameter is optional.
A string that specifies the name and, optionally, the path of the folder to expand or
namePath
collapse. If this parameter is not specified, the method applies to the currently selected folder.
This parameter is optional.
Returns
A Boolean value:
the specified item is not a folder.
Description
Method; expands or collapses the currently selected or specified folder in the library.
Example
The following example collapses the test folder in the library as well as all the folders within the
test folder (if any):
fl.getDocumentDOM().library.expandFolder(false, true, "test");
if the specified item exists and can be edited;
true
, the folder is expanded; if
true
A Boolean value: if
if the item is successfully expanded or collapsed;
true
is not specified, the single selected library
namePath
false
, all the folders within the specified folder
true
. The default value is
bExpand
otherwise.
false
(the default), the folder is
. This
false
if unsuccessful or
false
library object
217
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?