Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

honzabrecka/async-gif-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.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 based app, you can use renderers/GPUGIF class.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published