Library.items; Library.movetofolder() - 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; checks to see if a specified item exists in the library.
Example
The following example displays
Symbol_1 exists in the Folder_1 library folder:
alert(fl.getDocumentDOM().library.itemExists('Folder_1/Symbol_1'));

library.items

Availability
Flash MX 2004.
Usage
library.items
Description
Property; an array of item objects in the library.
Example
The following example stores the array of all library items in the
var itemArray = fl.getDocumentDOM().library.items;

library.moveToFolder()

Availability
Flash MX 2004.
Usage
library.moveToFolder( folderPath [, itemToMove [, bReplace ] ] )
Parameters
A string that specifies the path to the folder in the form
folderPath
"FolderName/FolderName"
.
folderPath
A string that specifies the name of the item to move. If
itemToMove
specified, the currently selected items move. This parameter is optional.
A Boolean value. If an item with the same name already exists, specifying
bReplace
the
parameter replaces the existing item with the item being moved. If
bReplace
name of the dropped item changes to a unique name. The default value is
is optional.
Returns
A Boolean value:
or
true
. To move an item to the top level, specify an empty string ("") for
if the item moves successfully;
true
in a dialog box, depending on whether the item
false
otherwise.
false
variable:
itemArray
"FolderName"
is not
itemToMove
true
false
. This parameter
false
library object
or
for
, the
221

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents