本文转自:http://www.flexku.cn/post/3.html

描述:as3.0动态加载的图片有锯齿

解决方法:

package {
  import flash.display.Bitmap;
  import flash.display.BitmapData;
  import flash.display.Loader;
  import flash.display.Sprite;
  import flash.events.Event;
  import flash.geom.Matrix;
  import flash.net.URLRequest;
  public class testCode extends Sprite {
private var _loader:Loader=new Loader();
  public function testCode(){
  _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
  _loader.load(new URLRequest("http://image.pconline.com.cn/images/200705/dc_768x90.jpg"));

}
  public function onComplete(event:Event):void{
  var image:Bitmap=Bitmap(_loader.content);
  var bitmapdata:BitmapData=new BitmapData(image.width,image.height,
  false,0xffffffff);
  bitmapdata.draw(image,new Matrix);
  var im:Bitmap=new Bitmap(bitmapdata);
  addChild(im);
  im.rotation=30;
  im.smoothing=true;
  //图片无故放大 缩小到实际大小
  im.scaleX=0.6;
  im.scaleY=0.6;
  }
  }
}