| Flex 2 Developer's Guide > Customizing the User Interface > Using Behaviors > About behaviors > Available effects | |||
The following table lists the effects that Flex supports:
|
Effect |
Description |
|---|---|
|
Animates a numeric property of a component, such as For example, if you want to change the width of a Button control, you can specify width as the property to animate, and starting and ending width values to the effect. |
|
|
Applies a blur visual effect to a component. A Blur effect softens the details of an image. You can produce blurs that range from a softly unfocused look to a Gaussian blur, a hazy appearance like viewing an image through semi-opaque glass. The Blur effect uses the Flash BlurFilter class as part of its implementation. For more information, see flash.filters.BlurFilter in Adobe Flex 2 Language Reference. If you apply a Blur effect to a component, you cannot apply a BlurFilter or a second Blur effect to the component. |
|
|
Modifies the The Dissolve effect has the following properties:
If the target object is a container, only the children of the container dissolve. The container borders do not dissolve. Note: To use the Dissolve effect with the Note: To use the Dissolve effect with text, you must use an embedded font, not a device font. For more information, see Using Styles and Themes. |
|
|
Animate the component from transparent to opaque, or from opaque to transparent. The Fade effect has the following properties:
If you specify the Note: To use the Fade effect with text, you must use an embedded font, not a device font. For more information, see Using Styles and Themes. |
|
|
Applies a glow visual effect to a component. The Glow effect uses the Flash GlowFilter class as part of its implementation. For more information, see the flash.filters.GlowFilter class in the Adobe Flex 2 Language Reference. If you apply a Glow effect to a component, you cannot apply a GlowFilter or a second Glow effect to the component. |
|
|
Animates the effect target by expanding or contracting a rectangular mask centered on the target. The effect can either grow the mask from the center of the target to expose the target, or contract it toward the target center to obscure the component. For more information, see Using a mask effect. |
|
|
Changes the position of a component over a specified time interval. You typically apply this effect to a target in a container that uses absolute positioning, such as Canvas, or one with " The Move effect has the following properties:
For the If you specify a Move effect for a trigger, and if you do not set the six From, To, and By properties, Flex sets them to create a smooth transition between the object's old position and its new position. When the Move effect runs, the layout around the component that is moving does not readjust. Setting a container's |
|
|
Does nothing for a specified period of time. This effect is useful when you need to composite effects. For more information, see Creating composite effects. |
|
|
Changes the width and height of a component over a specified time interval. The Resize effect has the following properties:
For If you specify a Resize effect for a resize trigger, and if you do not set the six From, To, and By properties, Flex sets them to create a smooth transition between the object's old size and its new size. When you apply a Resize effect, the layout manager resizes neighboring components based on the size changes to the target component. To run the effect without resizing other components, place the target component in a Canvas container. When you use the Resize effect with Panel containers, you can hide Panel children to improve performance. For more information, see Improving performance when resizing Panel containers. |
|
|
Rotates a component around a specified point. You can specify the coordinates of the center of the rotation, and the starting and ending angles of rotation. You can specify positive or negative values for the angles. The Resize effect has the following properties:
Note: To use the Rotate effect with text, you must use an embedded font, not a device font. For more information, see Using Styles and Themes. |
|
|
Plays an MP3 audio file. For example, you could play a sound when a user clicks a Button control. This effect lets you repeat the sound, select the source file, and control the volume and pan. You specify the MP3 file using the For more information, see Using a sound effect. |
|
|
Defines a bar Wipe effect. The before or after state of the component must be invisible. These effects have the following property:
If you specify a Wipe effect for a For more information, see Using a mask effect. |
|
|
Zooms a component in or out from its center point. The Zoom effect has the following properties:
Note: When you apply a Zoom effect to text rendered using a system font, Flex scales the text between whole point sizes. Although you do not have to use embedded fonts when you apply a Zoom effect to text, the Zoom will appear smoother when you apply it to embedded fonts. For more information, see Using Styles and Themes. |
Flex 2.01