wii Balance Board - very cool!

June 24th, 2008 | 114 Comments | Posted in Industry, c#

Found this video on Julie Giles blog from GreenHAT Digital.

Tags: ,

AS3 GIF Player

June 23rd, 2008 | 2 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: ,

AS3 Sound Visuals using computeSpectrum

June 5th, 2008 | 4 Comments | Posted in AS3

Over the past few weeks I have become obsessed with the computeSpectrum function.

I have been creating all kinds of really great visualizers using standard AS3 and Flash, The examples are primitive and very much in the experimental stage of development click here to check them out…

A few days ago I began to wonder how the computeSpectrum function could work with papervision3D. After doing some research and coming across lots of great examples,

I have began working on a concept for the next PV3World.com project.

I had found the inspiration and learned how to work with it from the 3D sound Visualizer contest on Lee Brimelow’s theflashblog.com, and by working through some tutorials over at gotoandlearn.com

Stay tuned here on the BackSpaceBlabber and over at PV3World.com as I develop these ideas I’ll keep updates and write some tutorials along the way.

Tags: , , ,