Description
Method; moves the currently selected or specified library item to a specified folder. If the
parameter is empty, the items move to the top level.
folderPath
Example
The following example moves the item Symbol_1 to the library folder new and replaces the item
in that folder with the same name:
fl.getDocumentDOM().library.moveToFolder("new", "Symbol_1", true);
library.newFolder()
Availability
Flash MX 2004.
Usage
library.newFolder( [folderPath] )
Parameters
A string that specifies the name of the folder to be created. If it is specified as a
folderPath
path, and the path doesn't exist, the path is created. This parameter is optional.
Returns
A Boolean value:
Description
Method; creates a new folder with the specified name, or a default name (
if no
folderName
Example
The following example creates two new library folders; the second folder is a subfolder of the first
folder:
fl.getDocumentDOM().library.newFolder("first/second");
library.renameItem()
Availability
Flash MX 2004.
Usage
library.renameItem(name)
Parameters
A string that specifies a new name for the library item.
name
222
Chapter 3: Objects
if folder is created successfully;
true
parameter is provided, in the currently selected folder.
otherwise.
false
"untitled folder #"
)
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