private function onComplete(event:Event):void { _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadBytesComplete); _loader.loadBytes(file.data); } private function onLoadBytesComplete(e:Event):void { var image:Bitmap = Bitmap(_loader.content); addChild(image); }