Presetpanel.deleteitem(), Presetpanel.expandfolder() – Adobe Extending Flash Professional CS5 User Manual
Page 391
369
EXTENDING FLASH PROFESSIONAL
presetPanel object
Last updated 5/2/2011
presetPanel.deleteItem()
Availability
Flash CS4 Professional.
Usage
presetPanel.deleteItem( [namePath] )
Parameters
namePath
A string that specifies the path and name of the item to delete from the Motion Presets panel. This
parameter is optional.
Returns
A Boolean value of
true
if the item or items are successfully deleted;
false
otherwise.
Description
Method; deletes the specified preset from the Motion Presets panel. If you don’t pass a value for namePath, any presets
that are currently selected are deleted. You can’t delete items from the Default Presets folder.
Note: Items are deleted without requesting user confirmation, and there is no way to undo this action.
Example
The following code deletes a preset named
aDribble
from the Custom Presets folder:
fl.presetPanel.deleteItem("Custom Presets/aDribble");
See also
presetPanel.expandFolder()
Availability
Flash CS4 Professional.
Usage
presetPanel.expandFolder( [bExpand [, bRecurse [, folderPath] ] ] )
Parameters
bExpand
A Boolean value that specifies whether to expand the folder (
true
) or collapse it (
false
). This parameter is
optional; the default value is
true
.
bRecurse
A Boolean value that specifies whether to expand or collapse the folder’s subfolders (
true
) or not
false
).
This parameter is optional; the default value is
false
.
folderPath
A string that specifies the path to the folder to expand or collapse. This parameter is optional.
Returns
A Boolean value of
true
if the folder or folders are successfully expanded or collapsed;
false
otherwise.