Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 994 Bytes

Async GIF decoder Build Status

An asynchronous GIF decoder written in ActionScript 3 that lets you play animated GIFs in flash without freezing the UI.

Inspired by Lee Burrows' Async-Image-Encoders, based on Thibault Imbert's as3gif.

var gif:GIF = new GIF();
    gif.addEventListener(Event.COMPLETE, function(event:Event):void
        trace("done", gif.totalFrames);;
    gif.addEventListener(IOErrorEvent.IO_ERROR, function(event:Event):void
    gif.load(new URLRequest("smile.gif"));


If you want to play GIFs in your starling based app, you can use renderers/GPUGIF class.