Macromedia flex builder-using flex builder User Manual

Page of 158
Applying effects to Flex components
113
5.
Set the properties of the custom effect tag in the Tag inspector or in the code.
The following example creates a new version of the Fade effect called SlowFade, which uses a 
two-second duration expressed in milliseconds:
Flex Builder inserts the following code in your file:
<mx:Effect>
<mx:Fade name="SlowFade" duration="2000"/>
</mx:Effect>
For more information, see “Customizing an effect” in Developing Flex Applications Help.
6.
Save the file.
7.
If you want, apply the custom effect to other components in the file.
Flex Builder automatically applies the custom effect to the original component, but you can 
also apply it to other components in the file by selecting it from the list of effects in the 
Attributes panel. Custom effects are listed in the panel when they’re defined in the current file.
Related topics
Modifying a custom effect
If you defined a custom effect in the current file, you can use Flex Builder to quickly modify its 
properties.
To modify a custom effect:
1.
In Design view, select an MXML component with the custom effect you want to modify.
2.
In the Attributes panel of the Tag inspector (Window > Tag Inspector), click the custom effect.
A pencil icon appears beside the effect name.