有flex放大缩小的例子吗
如题,在flex里怎样把画布上的东西放大或者缩小 ?
------解决方案--------------------http://hi.baidu.com/mrpie/blog/item/ebbfe3cf32de9334f8dc61c0.html
------解决方案--------------------http://www.javaeye.com/topic/247935
------解决方案--------------------http://download.csdn.net/source/1672087
------解决方案--------------------上面你嫌太简单了,那去 flex官方网站上下他的 sample,挑复杂的下。呵呵
------解决方案--------------------路过
帮顶
------解决方案--------------------<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top"
horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
private function smoothImage(ev:Event):void{
//set image smoothing so image looks better when transformed.
var bmp:Bitmap = ev.target.content as Bitmap;
bmp.smoothing = true;
}
]]>
</mx:Script>
<mx:Resize id="expand" target="{img}" widthTo="120" heightTo="120"/>
<mx:Resize id="contract" target="{img}" widthTo="24" heightTo="24"/>
<mx:Panel title="Resize Effect" layout="vertical" color="0xffffff" borderAlpha="0.15" width="500" height="230"
paddingTop="5" paddingRight="10" paddingBottom="5" paddingLeft="10" horizontalAlign="center">
<mx:Text width="100%" color="0x323232" textAlign="center" paddingBottom="5"
text="Use the Button controls to resize the image."/>
<mx:Image id="img" width="24" height="24" source="@Embed('images/boots.jpg')" creationComplete="smoothImage(event);"/>
<mx:ControlBar horizontalAlign="center" paddingTop="3" paddingBottom="3">
<mx:Button label="Expand" click="expand.end(); expand.play();"/>
<mx:Button label="Contract" click="contract.end(); contract.play();"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
------解决方案--------------------
http://www.cristalab.com/files/ejemplos/zoom/zoom.html