MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 322

Extending flash
Table of Contents

Advertisement

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:
if folder is created successfully;
otherwise.
true
false
Description
Method; creates a new folder with the specified name, or a default name (
"untitled
) if no
parameter is provided, in the currently selected folder.
folder #"
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
Returns
A Boolean value of
if the name of the item changes successfully,
otherwise. If
true
false
multiple items are selected, no names are changed, and the return value is
(to match
false
user interface behavior).
Description
Method; renames the currently selected library item in the Library panel.
Example
The following example renames the currently selected library item to
:
new name
fl.getDocumentDOM().library.renameItem("new name");
322
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents