MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 315

Extending flash
Table of Contents

Advertisement

Returns
A Boolean value:
true
one 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 ] )
Parameters
A string that specifies the name of the item. If the item is in a folder, you can
namePath
specify its name and path using slash notation. If
library 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:
true
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");
if the item is duplicated successfully;
.
false
) and is set as the currently selected item. If more than one item is
if the specified item exists and can be edited;
otherwise. If more than
false
is not specified, the single selected
namePath
false
otherwise.
library object
315

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents