Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 134

Migrating applications to flex 2
Table of Contents

Advertisement

New events for effect classes
You can now associate event listeners with effects, rather than with effect targets. All effect
classes now support the following event types:
Dispatched when the effect starts playing. The
effectStart
object for this event is set to
Dispatched after the effect stops playing, either when the effect finishes playing
effectEnd
or when the effect has been interrupted by a call to the
property of the event object for this event is set to
Every effect class that is a subclass of the TweenEffect class, such as the Fade and Move effects,
supports the following events:
Dispatched when the tween effect starts. The type property of the event object
tweenStart
for this event is set to TweenEvent.TWEEN_START.
Dispatched when the tween effect ends. The
tweenEnd
for this event is set to
Dispatched every time a TweenEffect class calculates a new value. The
tweenUpdate
property of the event object for this event is set to
Change to overriding the endEffect() method
You no longer have to call
method. Now, the
EffectInstance.endEffect()
method, which calls the
endEffect()
dispatch the
EffectEvent.END_EFFECT
134
Behaviors
EffectEvent.EFFECT_START
TweenEvent.TWEEN_END
listener.onEffectEnd()
EffectInstance.finishEffect()
event and call
type
.
endEffect()
EffectEvent.EFFECT_END
property of the event object
type
.
TweenEvent.TWEEN_UPDATE
in an override of the
method calls the instance class's
listener.onEffectEnd()
property of the event
method. The
type
.
type
.
endEffect()
method to
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents