Macromedia flex builder-using flex builder User Manual

Page of 158
112
Chapter 4:  Building a Flex User Interface Visually
Customizing a standard Flex effect
The standard effects in Flex may not provide the exact effect that you want. A Fade effect might 
be too fast or too slow, or a Pause effect might not hold long enough. You can use Flex Builder to 
help you customize these effects.
Note: This feature works only with standard Flex effects applied to MXML components. It does not 
work with effects applied to ActionScript components or with custom effects.
To customize a standard Flex effect:
1.
In Design view, select the MXML component with the effect you want to customize.
2.
In the Attributes panel of the Tag inspector (Window > Tag Inspector), click the effect.
A Plus (+) icon appears beside the effect name.
3.
Click the Plus (+) icon beside the effect name.
The Customize Effect dialog box appears.
4.
Enter a name for the new effect and click OK.
Flex Builder performs the following tasks:
Switches to Code view and adds an 
<mx:Effect>
 tag containing the tag for the custom 
effect.
Changes the name of the original effect in the component tag to match the name of the 
custom effect.
Shows the properties of the custom effect in the Tag inspector.