<?xml version=”1.0″?>
<!– behaviors\ButtonResize.mxml –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” >
<mx:Resize id=”myResizeUp”
widthTo=”500″ heightTo=”900″
duration=”200″/>
<mx:Resize id=”myResizeDown”
widthTo=”30″ heightTo=”60″
duration=”200″ />
<mx:Panel paddingBottom=”10″ paddingTop=”10″ paddingLeft=”10″ paddingRight=”10″
width=”100%” height=”100%” title=”Resizing the image” fontSize=”12″ >
<mx:Label text=”Expands and Reduces the size of the image when clicks on the image”
fontSize=”12″/>
<mx:ControlBar>
</mx:ControlBar>
<mx:Image id=”img” source=”flower2.jpg” height=”149″ width=”200″
mouseDownEffect=”{myResizeDown}” mouseUpEffect=”{myResizeUp}” />
</mx:Panel>
</mx:Application>

Advertisement