Presetitem.isfolder, Presetitem.level – Adobe Extending Flash Professional CS4 User Manual
Page 372
350
EXTENDING FLASH CS4 PROFESSIONAL
presetItem object
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);