Adobe Extending Flash Professional CS5 Manuale Utente Pagina 395

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 394
373
EXTENDING FLASH PROFESSIONAL
presetPanel object
Last updated 5/2/2011
Description
Method; adds a preset to the Motion Presets panel from a specified XML file. The path specified in namePath must
exist in the panel.
To create XML files that can be imported, use presetPanel.exportItem().
If you don’t pass a value for namePath, the imported preset is placed in the Custom Presets folder and given the same
name as the imported file (without the XML extension).
Example
The following example imports a preset into the Custom Presets/Pulse folder, and names it fastPulse.
fl.presetPanel.importItem("file:///C|/My Presets/thePulsePreset.xml", "Custom
Presets/Pulse/fastPulse");
See also
presetPanel.exportItem()
presetPanel.items
Availability
Flash CS4 Professional.
Usage
presetPanel.items
Description
Property; an array of presetItem objects in the Motion Presets panel (see presetItem object). Each item in the array
represents either a folder or a preset.
Example
The following code displays the full pathnames of the items in the Motion Presets panel:
var itemArray = fl.presetPanel.items;
var length = itemArray.length
for (x=0; x<length; x++) {
fl.trace(itemArray[x].path);
}
See also
presetPanel.getSelectedItems()
presetPanel.moveToFolder()
Availability
Flash CS4 Professional.
Vedere la pagina 394
1 2 ... 390 391 392 393 394 395 396 397 398 399 400 ... 564 565

Commenti su questo manuale

Nessun commento