Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- encoder.addEventListener(Event.COMPLETE, onEncoderComplete(obj));
- static private function onEncoderComplete(obj:Object):Function
- {
- return function(e:Event):void
- {
- e.currentTarget.removeEventListener(Event.COMPLETE, onEncoderComplete);
- saveImage(e.currentTarget.png, obj);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement