Adobe Extending Flash Professional CS5 Manuale Utente Pagina 347

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 346
325
Last updated 5/2/2011
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.
Vedere la pagina 346
1 2 ... 342 343 344 345 346 347 348 349 350 351 352 ... 564 565

Commenti su questo manuale

Nessun commento