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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 342
321
EXTENDING FLASH CS4 PROFESSIONAL
library object
library.newFolder()
Availability
Flash MX 2004.
Usage
library.newFolder([folderPath])
Parameters
folderPath A string that specifies the name of the folder to be created. If it is specified as a path, and the path doesn’t
exist, the path is created. This parameter is optional.
Returns
A Boolean value: true if folder is created successfully; false otherwise.
Description
Method; 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.
Example
The following example creates two new library folders. The second folder is a subfolder of the first folder:
fl.getDocumentDOM().library.newFolder("first/second");
library.renameItem()
Availability
Flash MX 2004.
Usage
library.renameItem(name)
Parameters
name A string that specifies a new name for the library item.
Returns
A Boolean value of true if the name of the item changes successfully, false otherwise. If multiple items are selected,
no names are changed, and the return value is
false (to match user interface behavior).
Description
Method; renames the currently selected library item in the Library panel.
Example
The following example renames the currently selected library item to new name:
fl.getDocumentDOM().library.renameItem("new name");
Vista de página 342
1 2 ... 338 339 340 341 342 343 344 345 346 347 348 ... 559 560

Comentários a estes Manuais

Sem comentários