Library.duplicateitem(); Library.edititem() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

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
A string that specifies the name of the item to duplicate. If the item is in a folder, you
namePath
can specify its name and path using slash notation. This parameter is optional.
Returns
A Boolean value:
item is selected, Flash returns
Description
Method; makes a copy of the currently selected or specified item. The new item has a default
name (such as
item copy
selected, the command fails.
Example
The following example creates a copy of the item square in the library folder test:
fl.getDocumentDOM().library.duplicateItem("test/square");

library.editItem()

Availability
Flash MX 2004.
Usage
library.editItem( [ namePath ] )
216
Chapter 3: Objects
if the item is duplicated successfully;
true
.
false
) and is set as the currently selected item. If more than one item is
otherwise. If more than one
false

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents