I want to show several images to my application
sourceAudioFile =(event.target as File);
sourceAudioFile.data;
var myLoader:Loader = new Loader();
var url :URLRequest = new URLRequest("file:///" + sourceAudioFile.nativePath);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoaded);
myLoader.load(url);
Registration Listener
private function onImageLoaded(e:Event):void
{
var image : Bitmap= new Bitmap(e.target.content.bitmapData);
image.scaleX = 0.5 ;
image.scaleY = 0.5 ;
}
Is there any way by which i can add some custom values to Event.COMPLETE to know what type of image is being loaded.
like e.imageName , e.noOfImage which i can access in complete handler & provide values to it when i register this event.
Thanks in advance