Ajax Animator

August 21st, 2008 | No Comments | Posted in Ajax, Open Source, java, php


The original goal was to be a usable Flash IDE alternative, but has evolved into a cross-platform/cross-format animation tool, primed to support Animated GIFs, SWF (Flash), SVG Animations, and more. It is currently built using Javascript and PHP.

The new Ajax Animator version 0.2 was launched on Sunday, August 8, 2008.

Old Screenshots
Application

If you feel urge to live on the edge, and try out the latest unstable builds, use the following link.
Development (Unstable) Version

Tags: , , , ,

AS3 GIF Player

June 23rd, 2008 | No Comments | Posted in APNG, AS3

I came across a great post at ByteArray.org where Thibault Imbert was discussing one of his new AS3 experiments, the AS3 GIF Player Class 0.2. As you may already know, it is not possible to load animated GIF’s into the player. If you load a GIF file with the flash.display.Loader class you will only get the first frame of the animation.

this has all chanegd with the GIFPlayer class!

To load an animated GIF :

// we create the GIFPlayer, it plays automatically by default
var myGIFPlayer:GIFPlayer = new GIFPlayer();
// we show it
addChild ( myGIFPlayer );
// we load a gif file
myGIFPlayer.load ( new URLRequest ("animation.gif") );
// you can also load any valid GIF stream (ByteArray)
//with the loadBytes method (version 0.2)
myGIFPlayer.loadBytes ( gifStream );
// listen for the IOErrorEvent.IO_ERROR event,
//dispatched when the GIF fails to load
myGIFPlayer.addEventListener ( IOErrorEvent.IO_ERROR, onIOError );
// listen for the GIFPlayerEvent.COMPLETE event,
//dispatched when GIF is loaded
myGIFPlayer.addEventListener ( GIFPlayerEvent.COMPLETE, onCompleteGIFLoad );
// listen for the FrameEvent.FRAME_RENDERED event,
//dispatched when a GIF frame is rendered on screen
myGIFPlayer.addEventListener ( FrameEvent.FRAME_RENDERED, onFrameRendered );
// listen for the FileTypeEvent.INVALID event,
//dispatched when an invalid file is loaded
myGIFPlayer.addEventListener ( FileTypeEvent.INVALID, onInvalidFileLoaded );
// get total frames
myGIFPlayer.totalFrames;
// standard methods
myGIFPlayer.play();
myGIFPlayer.stop();
myGIFPlayer.gotoAndStop(3);
myGIFPlayer.gotoAndPlay(3);

Here’s a sample from ByteArray.org . Please don’t load huge GIF files!

Online Demo :
***Click on Load GIF File and paste this in the path >> http://www.backspacestudios.com/beaker/GIFPlayer/diego.gif

Sources and documentation available at http://code.google.com/p/as3gif/

Tags: ,