Adobe Extending Flash Professional CS4 Manual do Utilizador Página 334

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 333
312
Chapter 26: 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
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 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.
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.
Vista de página 333
1 2 ... 329 330 331 332 333 334 335 336 337 338 339 ... 559 560

Comentários a estes Manuais

Sem comentários