Posted By

arpo on 01/20/10


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

iamgowan
netzwerktourist
TrentSkunk
thastyle


Get bitmap data from external loaded image.


 / Published in: ActionScript 3
 

  1. var imageLoader:Loader = new Loader();
  2. imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadImageComplete);
  3. imageLoader.load(new URLRequest(myImgPath));
  4.  
  5. private function onLoadImageComplete(e:Event):void
  6. {
  7.  
  8. var loaderInfo:LoaderInfo = e.currentTarget as LoaderInfo
  9. var bmp:Bitmap = loaderInfo.content as Bitmap
  10. }

Report this snippet  

You need to login to post a comment.