library object
311
library object
Availability
Flash MX 2004.
Description
The library object represents the Library panel. It is a property of the Document object (see
document.library
) and can be accessed by
fl.getDocumentDOM().library
.
The library object contains an array of items of different types, including symbols, bitmaps,
sounds, and video.
Method summary for the library object
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.expandFolder()
Expands or collapses the currently selected or specified folder
in the library.
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.importEmbeddedSWF()
Imports a Shockwave (SWF) file into the library as a
compiled clip.
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.
CHAPTER 25
Objects
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...