
154 Use Behaviors
Flex Builder compiles the application.
9. Click the Run button in the toolbar. If you’re using the plug-in configuration of Flex
Builder, select Run > Run As > Flex Application.
A browser opens and runs your small Flex application. Click the View button. It should
emit a green glow that gradually diminishes in intensity until it becomes a pale green.
Invoke an effect from a different
component
Instead of component triggers, you can use Flex events to invoke effects. This ability lets you
have one component invoke an effect that plays on a different component. For example, you
can use a Button control’s click event to instruct a TextArea control to play a Fade effect.
When the user clicks your application’s View button, you want a Label component to appear
with blurry text that gradually comes into focus to reveal a series of numbers.
1. In Design mode, insert a Label control below the View button and then set the following
Label properties in the Properties view:
■ ID: myLabel
■ Te xt : 4 8 15 16 23 42
Commentaires sur ces manuels