MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual do Utilizador Página 132

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 183 184

Comentários a estes Manuais

Sem comentários