MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuel d'utilisateur Page 132

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 184
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 131
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"/>
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 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.
Vue de la page 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 183 184

Commentaires sur ces manuels

Pas de commentaire