Posted By

manuletroll on 10/27/10


Tagged

bitmap


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sexyflash
thastyle


Bitmap smoothing


 / Published in: ActionScript 3
 

  1. var loader:Loader = new Loader() ;
  2. loader.load(new URLRequest("chemin_vers_image.jpg")) ;
  3. loader.contentLoaderInfo.addEventListener(Event.COMPLETE, smooth) ;
  4.  
  5. function smooth(e:Event):void
  6. {
  7. var bmp:Bitmap = loader.content as Bitmap ;
  8. bmp.smoothing = true ;
  9. }

Report this snippet  

You need to login to post a comment.