User Guide

312 Objects
Property summary for the library object
The following property is available for the library object.
library.addItemToDocument()
Availability
Flash MX 2004.
Usage
library.addItemToDocument( position [, namePath] )
Parameters
position A point that specifies the x,y position of the center of the item on the Stage.
namePath A string that specifies the name of the item. If the item is in a folder, you can
specify its name and path using slash notation. If
namePath is not specified, the current
library selection is used. This parameter is optional.
Returns
A Boolean value: true if the item is successfully added to the document; false otherwise.
library.newFolder() Creates a new folder with the specified name, or a default
name (
"untitled folder #") if no folderName parameter is
provided, in the currently selected folder.
library.renameItem() Renames the currently selected library item in the Library
panel.
library.selectAll() Selects or deselects all items in the library.
library.selectItem() Selects a specified library item.
library.selectNone() Selects all the library items.
library.setItemProperty() Sets the property for all selected library items (ignoring
folders).
library.updateItem() Updates the specified item.
Property Description
library.items An array of item objects in the library
Method Description