https://github.com/honzabrecka/async-gif-decoder
  
  
    An asynchronous GIF decoder written in ActionScript 3 that lets you play animated GIFs in flash without freezing the UI. 
    https://github.com/honzabrecka/async-gif-decoder
  
        Last synced: 6 months ago 
        JSON representation
    
An asynchronous GIF decoder written in ActionScript 3 that lets you play animated GIFs in flash without freezing the UI.
- Host: GitHub
 - URL: https://github.com/honzabrecka/async-gif-decoder
 - Owner: honzabrecka
 - License: mit
 - Archived: true
 - Created: 2014-10-30T09:49:19.000Z (about 11 years ago)
 - Default Branch: master
 - Last Pushed: 2014-12-12T08:20:44.000Z (almost 11 years ago)
 - Last Synced: 2024-11-15T14:35:24.201Z (12 months ago)
 - Language: ActionScript
 - Homepage:
 - Size: 390 KB
 - Stars: 13
 - Watchers: 5
 - Forks: 2
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
- awesome-actionscript-sorted - async-gif-decoder - An asynchronous GIF decoder written in ActionScript 3 that lets you play animated GIFs in flash without freezing the UI. (Multimedia / Image)
 
README
          # Async GIF decoder [](https://travis-ci.org/honzabrecka/async-gif-decoder)
An asynchronous [GIF](http://www.w3.org/Graphics/GIF/spec-gif89a.txt) decoder written in ActionScript 3 that lets you play animated GIFs in flash without freezing the UI.
> Inspired by Lee Burrows' [Async-Image-Encoders](https://github.com/LeeBurrows/Async-Image-Encoders), based on Thibault Imbert's [as3gif](https://code.google.com/p/as3gif/).
```as3
var gif:GIF = new GIF();
    gif.addEventListener(Event.COMPLETE, function(event:Event):void
    {
        trace("done", gif.totalFrames);
        gif.play();
    });
    gif.addEventListener(IOErrorEvent.IO_ERROR, function(event:Event):void
    {
	    trace(event);
    });
    gif.load(new URLRequest("smile.gif"));
addChild(gif);
```
If you want to play GIFs in your [starling](https://github.com/Gamua/Starling-Framework) based app, you can use `renderers/GPUGIF` class.