
New Behaviors syntax 131
New Behaviors syntax
This section describes the syntax changes to behaviors.
The name property is now the id property
You now use the id property with effects, instead of the name property:
Flex 1.5:
<mx:Zoom name="small" duration="100"/>
Flex 2:
<mx:Zoom id="small" duration="100"/>
The <mx:Effect> tag is no longer necessary
The <mx:Effect> tag is no longer necessary in Flex:
Flex 1.5:
<mx:Effect>
<mx:Zoom name="big" duration="100"/>
<mx:Zoom name="small" duration="100"/>
</mx:Effect>
Flex 2:
<mx:Zoom id="big" duration="100"/>
<mx:Zoom id="small" duration="100"/>
Renamed the playEffect() and endEffect() methods
The playEffect() and endEffect() methods have been renamed. The new names are
play() and end().
Commentaires sur ces manuels