User Guide

320 Objects
library.itemExists()
Availability
Flash MX 2004.
Usage
library.itemExists( namePath )
Parameters
namePath A string that specifies the name of the item. If the item is in a folder, specify its
name and path using slash notation.
Returns
A Boolean value: true if the specified item exists in the library; false otherwise.
Description
Method; checks to see if a specified item exists in the library.
Example
The following example displays true or false in a dialog box, depending on whether the
item 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 itemArray variable:
var itemArray = fl.getDocumentDOM().library.items;