Skip to content

Posts from the ‘Freebies’ Category

17
May

Freebie: AS3 Image Loader Class

Free Preloader

I found myself writing the same piece of code over and over again.
So i finally decided to put it into a single class, that fits my needs!

The class provides you the ability to simply load images, display their loading stat through a native preloader and process the image for further use!

In hope that you might find it useful I’m sharing this class now with you.

 

Customize

The class can be customized down to the following:

  • Decide wheter to show a preloader or not
  • Force the image size
  • Setting colors
  • Display a framing

Read the full documentation provided in the file ImageLoader.as for more information!

The class requires to have the TweenLite engine in your main file directory.
For avoiding troube please get it from greensock! Download TweenLite

If you find Bugs or unusual behavior occurs, please contact me!

 

Sample

Click on the image to see the final result

Read moreRead more