Flash CS4 Professional.
The presetPanel object represents the Motion Presets panel (Window > Motion Presets). It is a property of the flash object (fl.presetPanel).
You can use the following methods with the presetPanel object:
| Method | Description |
|---|---|
| presetPanel.addNewItem() | If a single motion tween is currently selected on the Stage, adds that motion to the Motion Presets panel. |
| presetPanel.applyPreset() | Applies the specified or currently selected preset to the currently selected item on the Stage. |
| presetPanel.deleteFolder() | Deletes the specified folder and any of its subfolders from the folder tree of the Motion Presets panel. |
| presetPanel.deleteItem() | Deletes the specified preset from the Motion Presets panel. |
| presetPanel.expandFolder() | Expands or collapses the currently selected folder or folders in the Motion Presets panel. |
| presetPanel.exportItem() | Exports the currently selected or the specified preset to an XML file. |
| presetPanel.findItemIndex() | 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. |
| presetPanel.importItem() | Adds a preset to the Motion Presets panel from a specified XML file. |
| presetPanel.moveToFolder() | Moves the specified item to the specified folder. |
| presetPanel.newFolder() | Creates a folder in the folder tree of the Motion Presets panel. |
| presetPanel.renameItem() | Renames the currently selected preset or folder to a specified name. |
| presetPanel.selectItem() | Selects or deselects an item in the Motion Presets panel. |
You can use the following property with the presetPanel object:
| Property | Description |
|---|---|
| presetPanel.items | An array of presetItem objects in the Motion Presets panel. |