
314
Objects
library.deleteItem()
Availability
Flash MX 2004.
Usage
library.deleteItem( [
namePath
] )
Parameters
namePath
A string that specifies the name of the item to be deleted. If the item is in a folder,
you can specify its name and path using slash notation. If you pass a folder name, the folder
and all its items are deleted. If no name is specified, Flash deletes the currently selected item or
items. To delete all the items in the Library panel, select all items before using this method.
This parameter is optional.
Returns
A Boolean value:
true
if the items are successfully deleted;
false
otherwise.
Description
Method; deletes the current items or a specified item from the Library panel. This method
can affect multiple items if several are selected.
Example
The following example deletes the currently selected item:
fl.getDocumentDOM().library.deleteItem();
The following example deletes the item Symbol_1 from the library folder Folder_1:
fl.getDocumentDOM().library.deleteItem("Folder_1/Symbol_1");
library.duplicateItem()
Availability
Flash MX 2004.
Usage
library.duplicateItem( [
namePath
] )
Parameters
namePath
A string that specifies the name of the item to duplicate. If the item is in a folder,
you can specify its name and path using slash notation. This parameter is optional.
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...