Presetitem.name, Presetitem.open, Presetitem.path – Adobe Extending Flash Professional CS5 User Manual
Page 386
364
EXTENDING FLASH PROFESSIONAL
presetItem object
Last updated 5/2/2011
presetItem.name
Availability
Flash CS4 Professional.
Usage
presetItem.name
Description
Read-only property: a string that represents the name of the preset or folder, without path information.
Example
See
presetItem.open
Availability
Flash CS4 Professional.
Usage
presetItem.open
Description
Read-only property: specifies whether a folder in the Motion Presets panel is currently expanded (
true
) or not
(
false
).
This property is
true
if the item is not a folder. To determine if an item is a folder or a preset, use
Example
The following example displays information on whether folders in the Motion Presets panel are expanded or collapsed:
fl.outputPanel.clear(); var presetItem = presetItemArray[i]; var status = presetItem.open ? "Open" : "Closed" } } presetItem.path Availability
var presetItemArray=fl.presetPanel.items;
for (i=0;i
if (presetItem.isFolder) {
fl.trace(presetItem.level + "-" + presetItem.name +" folder is " + status);
Flash CS4 Professional.