beautypg.com

Adobe Extending Flash Professional CS5 User Manual

Page 387

background image

365

EXTENDING FLASH PROFESSIONAL

presetItem object

Last updated 5/2/2011

Usage

presetItem.path

Description
Read-only property: a string that represents the path to the item in the Motion Presets panel folder tree, and the item
name.

Example
The following example illustrates the difference between the values in

presetItem.name

and

presetItem.path

.

fl.outputPanel.clear();
var presetItemArray=fl.presetPanel.items;
for (i=0;i

var presetItem = presetItemArray[i];
fl.trace("Name: " + presetItem.name + "\n" + "Path: " + presetItem.path);
fl.trace("");

}

This manual is related to the following products: