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