Creating a simple Load Indicator / preloader

Here is a handy class to display a simple spinning load indicator / preload animation while your content is loading or transitioning. This demo uses the bit101 minimalcomps to show how flexible and configurable this class is.

loadindicator

Use this demo to set up the style for your project, then hit the "copy" button to copy the configuration to your clipboard.

click to launch

Usage:

// create
_loadInd = new LoadIndicator(this, 75, 75);

// remove
_loadInd.destroy();

download LoadIndicator.as

3 Comments

  1. […] This post was mentioned on Twitter by Daniel Goldsworthy and Gustavo Teider, Gustavo Teider. Gustavo Teider said: RT @dan_cake: new blog post "Creating a simple Load Indicator / preloader" – http://blog.sitedaniel.com/2010/08/creating-a-simple-load-i … […]

  2. Funfuckingtastic man, just one thing, should have a resize option for liquid layouts, like, stage.stageWitdh/2… it I put it on X in first time is okay, but if I resize my browser the preloader be lost in stage 🙂

  3. Daniel says:

    Hi Marcelo, thanks for your comment. I’m not sure what you mean. Do you want it to get bigger with stage resize or just change position?

Leave a Reply