Chapter 34: presetpanel object, Presetpanel object, Use the methods of the – Adobe Extending Flash Professional CS5 User Manual
Page 388
366
Last updated 5/2/2011
Chapter 34: presetPanel object
Availability
Flash CS4 Professional.
Description
The presetPanel object represents the Motion Presets panel (Window
> Motion Presets). It is a property of the flash
Method summary
You can use the following methods with the presetPanel object:
Property summary
You can use the following property with the presetPanel object:
Method
Description
If a single motion tween is currently selected on the Stage, adds that motion to
the Motion Presets panel.
Applies the specified or currently selected preset to the currently selected item
on the Stage.
Deletes the specified folder and any of its subfolders from the folder tree of the
Motion Presets panel.
Deletes the specified preset from the Motion Presets panel.
Expands or collapses the currently selected folder or folders in the Motion
Presets panel.
Exports the currently selected or the specified preset to an XML file.
Returns an integer that represents the index location of an item in the Motion
Presets panel.
presetPanel.getSelectedItems()
Returns an array of presetItem objects corresponding to the currently selected
items in the Motion Presets panel.
Adds a preset to the Motion Presets panel from a specified XML file.
Moves the specified item to the specified folder.
Creates a folder in the folder tree of the Motion Presets panel.
Renames the currently selected preset or folder to a specified name.
Selects or deselects an item in the Motion Presets panel.
Property
Description
An array of presetItem objects in the Motion Presets panel.