Presetitem.isfolder, Presetitem.level – Adobe Extending Flash Professional CS5 User Manual
Page 385
363
EXTENDING FLASH PROFESSIONAL
presetItem object
Last updated 5/2/2011
fl.outputPanel.clear(); var presetItem = presetItemArray[i]; } presetItem.isFolder Availability Usage presetItem.isFolder Description true ) or a preset ( false ). Example var presetItemArray=fl.presetPanel.items; presetItem.level Availability Usage presetItem.level Description Example var presetItemArray=fl.presetPanel.items;
var presetItemArray=fl.presetPanel.items;
for (i=0;i
fl.trace(presetItem.name +", default =" + presetItem.isDefault);
Flash CS4 Professional.
Read-only property: a Boolean value that specifies whether the item in the Motion Presets panel is a folder (
The following example shows that the first item in the Motion Presets panel is a folder and the second is a preset:
fl.trace(presetItemArray[0].isFolder);
fl.trace(presetItemArray[1].isFolder);
Flash CS4 Professional.
Read-only property: an integer that specifies the level of the item in the folder structure of the Motion Presets panel.
The Default Folder and Custom Presets folder are level 0.
The following example shows that the first item in the Motion Presets panel is level 0 and the second is level 1:
fl.trace(presetItemArray[0].level);
fl.trace(presetItemArray[1].level);