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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 336
315
EXTENDING FLASH CS4 PROFESSIONAL
library object
library.duplicateItem()
Availability
Flash MX 2004.
Usage
library.duplicateItem( [ namePath ] )
Parameters
namePath A string that specifies the name of the item to duplicate. If the item is in a folder, you can specify its name
and path using slash notation. This parameter is optional.
Returns
A Boolean value: true if the item is duplicated successfully; false otherwise. If more than one item is selected, Flash
returns
false.
Description
Method; makes a copy of the currently selected or specified item. The new item has a default name (such as item copy)
and is set as the currently selected item. If more than one item is selected, the command fails.
Example
The following example creates a copy of the item square in the library folder test:
fl.getDocumentDOM().library.duplicateItem("test/square");
library.editItem()
Availability
Flash MX 2004.
Usage
library.editItem([namePath])
Parameters
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 single selected library item opens in Edit mode. If none or more than
one item in the library is currently selected, the first scene in the main timeline appears for editing. This parameter is
optional.
Returns
A Boolean value: true if the specified item exists and can be edited; false otherwise.
Description
Method; opens the currently selected or specified item in Edit mode.
Vista de página 336
1 2 ... 332 333 334 335 336 337 338 339 340 341 342 ... 559 560

Comentários a estes Manuais

Sem comentários