|
Flash CS4 Resources |
presetPanel.getSelectedItems()AvailabilityFlash CS4 Professional. UsagepresetPanel.getSelectedItems() ParametersNone. ReturnsAn array of presetItem objects. DescriptionMethod; returns an array of presetItem objects corresponding to the currently selected items in the Motion Presets panel (see presetItem object). Each item in the array represents either a folder or a preset. ExampleThe following code displays the full pathnames of the currently selected items in the Motion Presets panel: var itemArray = fl.presetPanel.getSelectedItems();
var length = itemArray.length
for (x=0; x<length; x++) {
fl.trace(itemArray[x].path);
}
See also |