|
Flash CS4 Resources |
presetPanel.applyPreset()AvailabilityFlash CS4 Professional. UsagepresetPanel.applyPreset( [presetPath] ) Parameters
ReturnsA Boolean value of true if the preset is successfully applied, false otherwise. DescriptionMethod; applies the specified or currently selected preset to the currently selected item on the Stage. The item must be a motion tween, a symbol, or an item that can be converted to a symbol. If the item is a motion tween, its current motion is replaced with the selected preset without requesting user confirmation. This method fails in the following
situations:
ExampleThe following example applies the aDribble preset to the currently selected item on the Stage: var result = fl.presetPanel.applyPreset("Custom Presets/Bounces/aDribble");
fl.trace(result);
|