<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	
	
		<mx:Script>
		<![CDATA[

                public function doZoom(event:MouseEvent):void {
                if (zoomAll.isPlaying) {
                    zoomAll.reverse();
                }
                else {
                    // If this is a ROLL_OUT event, play the effect backwards.
                    // If this is a ROLL_OVER event, play the effect forwards.
                    zoomAll.play([event.target], event.type == MouseEvent.ROLL_OUT ? true : false);
                }
            }
		]]>
	</mx:Script>
	 <mx:Rotate />
	 <mx:Zoom   />
	<mx:Image x="288" y="200" source="@Embed(source='No.png')"  
                scaleX="1" scaleY="1"
                rollOver="doZoom(event)" click="rotate.end();rotate.play()"
                rollOut="doZoom(event)" width="32" height="33"/>
		

	 
</mx:Application>

相关文章: