Presetpanel.getselecteditems(), Presetpanel.importitem() – Adobe Extending Flash Professional CS5 User Manual
Page 394
372
EXTENDING FLASH PROFESSIONAL
presetPanel object
Last updated 5/2/2011
presetPanel.getSelectedItems()
Availability
Flash CS4 Professional.
Usage
presetPanel.getSelectedItems()
Parameters
None.
Returns
An array of presetItem objects.
Description
Method; returns an array of presetItem objects corresponding to the currently selected items in the Motion Presets
panel (see
). Each item in the array represents either a folder or a preset.
Example
The following code displays the full pathnames of the currently selected items in the Motion Presets panel:
var itemArray = fl.presetPanel.getSelectedItems(); fl.trace(itemArray[x].path); } See also presetPanel.importItem() Availability Usage presetPanel.importItem(fileURI [,namePath ]) Parameters fileURI A string, expressed as a file:/// URI, that specifies the XML file to be imported as a preset in the Motion Presets panel. namePath A string that specifies in which folder to place the imported file and what to name it. This parameter is optional. Returns true if the file is successfully imported; false otherwise.
var length = itemArray.length
for (x=0; x
Flash CS4 Professional.
A Boolean value of