Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 242

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

Advertisement

Using the propertyChanges property
The
EffectInstance.propertyChanges
PropertyChanges object contains the properties described in the following table:
Property Description
A target component of the effect. The
target
PropertyChanges class define how the target component is modified by the
change to the view state.
An object that contains the starting properties of the
start
defined by the current view state. For example, for a
moved and resized by a change to the view state, the
the starting position and size of the component, as the following example shows:
{x:00, y:00, width:100, height:100}
An object that contains the ending properties of the
end
defined by the destination view state. For example, for a
is moved and resized by a change to the view state, the
the ending position and size of the component, as the following example shows:
{x:100, y:100, width:200, height:200}
In the body of the
Effectinstance.play()
the
propertyChanges
How Flex initializes the propertyChanges property
Before you can use the
it has to be properly initialized. When you change the view state, Flex initializes
propertyChanges.start
The following steps describe the actions that occur when you change view states. Notice that,
Flex initializes
propertyChanges.start
propertyChanges.end
You set the
1.
currentState
Flex dispatches the
2.
Flex examines the list of transitions to determine the one that matches the change of view
3.
state.
Flex calls the
4.
Effect.captureStartValues()
propertyChanges.start
You can also call
outside of a transition.
242
Creating Effects
property to configure the effect.
EffectInstance.propertyChanges
and
propertyChanges.end
as part of step 4, and initializes
as part of step 7:
property to the destination view state.
currentStateChanging
for all effect instances.
Effect.captureStartValues()
property contains a PropertyChanges object. A
and
end
start
method, you can examine the information in
property in your effect instance,
separately.
event.
method to initialize
to initialize an effect instance used
properties of the
component, as
target
component that is
target
property contains
start
component, as
target
component that
target
property contains
end

Advertisement

Table of Contents
loading

Table of Contents