MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 113

Table of Contents

Advertisement

Set the properties of the custom effect tag in the Tag inspector or in the code.
5.
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.
Save the file.
6.
If you want, apply the custom effect to other components in the file.
7.
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
"About Flex effects" on page 109
"Adding an effect to a component" on page 109
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:
In Design view, select an MXML component with the custom effect you want to modify.
1.
In the Attributes panel of the Tag inspector (Window > Tag Inspector), click the custom effect.
2.
A pencil icon appears beside the effect name.
Applying effects to Flex components
113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents