Chapter 15: Creating Effects - Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

CHAPTER 15
15
Creating Effects
Behaviors let you add animation and motion to your application when some user or
programmatic action occurs, where a behavior is a combination of a trigger paired with an
effect. A trigger is an action, such as a mouse click on a component, a component getting
focus, or a component becoming visible. An effect is a visible or audible change to the target
component that occurs over a period of time, measured in milliseconds. For example, you can
use behaviors to cause a dialog box to bounce slightly when it receives focus, or to slowly fade
in when it becomes visible.
Adobe Flex supplies a number of standard effects that you can use in your application.
However, you also can define custom effects for your specific application needs. This topic
describes how to create custom effects.
For information on the standard effects, see Chapter 17, "Using Behaviors," in Flex 2
Developer's Guide.
Contents
About creating a custom effect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
About tween effects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Writing an effect for a transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Defining a custom effect trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
227

Advertisement

Table of Contents
loading

Table of Contents