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

Migrating applications to flex 2
Table of Contents

Advertisement

Use binding in MXML to specify the effect
In Flex 1.5, you assigned the effect to an effect trigger property with no data binding:
<mx:Button id="myButton" creationCompleteEffect="myWL"/>
<mx:Button id="myOtherButton" creationCompleteEffect="myWL"/>
In Flex 2, you use data binding to assign an effect to a target:
<mx:Button id="myButton" creationCompleteEffect="{myWL}"/>
<mx:Button id="myOtherButton" creationCompleteEffect="{myWL}"/>
The show property is now the showTarget property
You now use the
property with effects, instead of the
MaskEffect.showTarget
property:
MaskEffect.show
Flex 1.5:
<mx:WipeUp id="wipeup" duration="1000" show="true"/>
Flex 2:
<mx:WipeUp id="wipeup" duration="1000" showTarget="true"/>
New properties added for the Zoom effect
The Zoom effect has new properties for Flex 2. The
property has been changed to
zoomTo
and
, and the
property has been changed to
zoomHeightTo
zoomWidthTo
zoomFrom
and
.
zoomHeightFrom
zoomWidthFrom
Also two more properties have been added to the Zoom effect:
Specify the x-position and y-position of the origin, or registration point, of
originX, originY
the zoom. The default value is the coordinates of the center of the effect target.
132
Behaviors

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents