Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 3.05 KB

File metadata and controls

45 lines (34 loc) · 3.05 KB

Library summary

Availability

Flash MX 2004.

Description

The Library object represents the Library panel. It is a property of the Document object and can be accessed by Document.library.

The Library object contains an array of items of different types, including symbols, bitmaps, sounds, and video.

Method summary

The following methods are available for the Library object:

Method Description
Library.addItemToDocument() Adds the current or specified item to the Stage at the specified position.
Library.addNewItem() Creates a new item of the specified type in the Library panel and sets the new item to the currently selected item.
Library.deleteItem() Deletes the current items or a specified item from the Library panel.
Library.duplicateItem() Makes a copy of the currently selected or specified item.
Library.editItem() Opens the currently selected or specified item in Edit mode.
Library.findItemIndex() Returns the library item’s index value (zero-based).
Library.getItemProperty() Gets the property for the selected item.
Library.getItemType() Gets the type of object currently selected or specified by a library path.
Library.getSelectedItems() Gets the array of all currently selected items in the library.
Library.itemExists() Checks to see if a specified item exists in the library.
Library.moveToFolder() Moves the currently selected or specified library item to a specified folder.
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() Deselects all the library items.
Library.setItemProperty() Sets the property for all selected library items (ignoring folders).
Library.updateItem() Updates the specified item.

Property summary

The following property is available for the Library object:

Property Description
Library.items An array of Item objects in the library.
Library.unusedItems An array of library Items that are not used in the document.