Macromedia flex 2-migrating applications to flex 2 Manual De Usuario
132
Behaviors
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"/>
<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}"/>
<mx:Button id="myOtherButton" creationCompleteEffect="{myWL}"/>
The show property is now the showTarget property
You now use the
MaskEffect.showTarget
property with effects, instead of the
MaskEffect.show
property:
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
zoomTo
property has been changed to
zoomHeightTo
and
zoomWidthTo
, and the
zoomFrom
property has been changed to
zoomHeightFrom
and
zoomWidthFrom
.
Also two more properties have been added to the Zoom effect:
originX, originY
Specify the x-position and y-position of the origin, or registration point, of
the zoom. The default value is the coordinates of the center of the effect target.