Presetpanel.items, Presetpanel.movetofolder() – Adobe Extending Flash Professional CS5 User Manual
Page 395
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
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.items
Availability
Flash CS4 Professional.
Usage
presetPanel.items
Description
Property; an array of presetItem objects in the Motion Presets panel (see
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; fl.trace(itemArray[x].path); } See also presetPanel.getSelectedItems() presetPanel.moveToFolder() Availability
var length = itemArray.length
for (x=0; x
Flash CS4 Professional.