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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 383
362
EXTENDING FLASH CS4 PROFESSIONAL
presetPanel object
Note: You can’t add folders to the Default Presets folder.
Example
The following example adds a folder named Bouncing below the Custom Presets folder:
fl.presetPanel.newFolder("Custom Presets/Bouncing");
See also
presetPanel.addNewItem()
presetPanel.renameItem()
Availability
Flash CS4 Professional.
Usage
presetPanel.renameItem(newName)
Parameters
newName A string that specifies the new name for the preset or folder.
Returns
A Boolean value of true if the preset or folder is successfully renamed; false otherwise.
Description
Method; renames the currently selected preset or folder to a specified name. This method succeeds only if a single
preset or folder in the Custom Presets folder is selected. This method fails in the following situations:
No item is selected.
Multiple items are selected.
The selected item is in the Default Presets folder.
An item named newName exists in the same location as the selected item.
Example
The following example renames the currently selected preset in the Custom Presets folder to Bounce Faster.
var renamed = fl.presetPanel.renameItem("Bounce Faster");
fl.trace(renamed);
presetPanel.selectItem()
Availability
Flash CS4 Professional.
Vista de página 383
1 2 ... 379 380 381 382 383 384 385 386 387 388 389 ... 559 560

Comentários a estes Manuais

Sem comentários