Using AnimateProperty to animate control by property

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Sequence id="animateScaleXUpDown">
<mx:AnimateProperty property="scaleX" fromValue="1.0" toValue="1.5" />
<mx:AnimateProperty property="scaleX" fromValue="1.5" toValue="1.0" />
</mx:Sequence>
<mx:Button label="Scale Button" mouseDownEffect="{animateScaleXUpDown}" />
</mx:Application>
Related examples in the same category