I have two functions in a actionscript class, they are:
private function loaderCompleteHandler(event:Event):void { _loader = Loader(event.target.loader); selectedBitmap = Bitmap(_loader.content); }
public function byteArrayToBitmap( byteArray:ByteArray ):void { _loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loaderCompleteHandler ); _loader.loadBytes( byteArray ); }
Is it possible to send the selectedBitmap variable back to the byteArrayToBitmap function after the event completed?
Thanks.