/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var loader:Loader = new Loader() ; loader.load(new URLRequest("chemin_vers_image.jpg")) ; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, smooth) ; function smooth(e:Event):void { var bmp:Bitmap = loader.content as Bitmap ; bmp.smoothing = true ; }