Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 231

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

Advertisement

The following table lists the methods and properties that you define in an instance class:
Instance method/property
constructor
EffectInstance.play()
EffectInstance.end()
EffectInstance.initEffect()
TweenEffectInstance.onTweenUpdate()
TweenEffectInstance.onTweenEnd()
Additional methods and properties
Description
(Required) The class constructor. You typically call
the
method to invoke the superclass
super()
constructor to initialize the inherited items from the
superclasses.
(Required) Invokes the effect. You must call
from your override.
super.play()
(Optional) Interrupts an effect that is currently
playing, and jumps immediately to the end of the
effect.
(Optional) Called if the effect was triggered by the
EffectManager. You rarely have to implement this
method. For more information, see
initEffect() method" on page
(Required) Use when you create a subclass from
TweenEffectInstance. A callback method called at
regular intervals to implement a tween effect. For
more information, see
effect" on page
238.
(Optional) Use when you create a subclass from
TweenEffectInstance. A callback method called
when the tween effect ends. You must call
from your override. For more
super.onTweenEnd()
information, see
"Example: Creating a tween effect"
on page
238.
(Optional) Define any additional methods and
properties. These typically correspond to the public
properties and methods from the factory class, and
any additional properties and methods that you
require to implement the effect.
About creating a custom effect
"Overriding the
250.
"Example: Creating a tween
231

Advertisement

Table of Contents
loading

Table of Contents