0
I Use This!
Activity Not Available

Project Summary

We (Philipp and me) using the PreLoader class as a Loader replacement for years now to load asset content (swf's and images). The PreLoader has an integrated loader queue which allows one loading process a time. Also it has some convenience feature like smoothing images when scaling them down.

The PreLoader class is not a visual preloader! You as a developer still has to do the dirty work like listening for Progress and Complete events and react to them. However, you can concentrate on that work without all the (from our point) useless overhead like contentLoaderInfo and URLRequest.

Example implementation:var img:PreLoader = new PreLoader();
img.addEventListener(ProgressEvent.PROGRESS, _onImgProgress);
img.addEventListener(Event.COMPLETE, _onImgLoaded);
img.load("image1.jpg");
addChild(img);

function _onImgProgress(event : ProgressEvent)
{
var perc:Number = event.bytesLoaded / event.bytesTotal;
trace(perc);
}

function _onImgLoaded(event : Event)
{
trace("image loaded");
}You can find the API documentation here.

What the PreLoader can do for you:Having a loading queue that enabled you to always fill the bandwidth of the user Change the queue during runtime by calling loadNext(), loadAfter() and loadImmediately() Work with the PreLoader just like with the well known Loader only with some tiny but time saving improvements What the PreLoader will not do for you:Group load requests (the PreLoader only has one pipe) Displaying visual loading informations (the PreLoader fires the effect, you decide what to with them) Loading data (PreLoader loads only swf's and images) ContributeWe work a lot with the PreLoader class. It can be called "well tested". However, if you find an issue or miss a feature, please let us know.

Tags

actionscript flash loading loadingqueue preloader

In a Nutshell, apdev-preloader-queue...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

MIT License
Permitted

Sub-License

Private Use

Commercial Use

Modify

Distribute

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    search using multiple tags to find exactly what you need
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    you can embed statistics from Open Hub on your site

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis