Jump to content
Search Community

rawProgress sample code

paulanthony test
Moderator Tag

Recommended Posts

You use it exactly like you would use the regular progress property. It just uses a different algorithm to calculate the value.

 

var queue:LoaderMax = new LoaderMax({onProgress:progressHandler});
queue.append( ... ); //add your stuff
...
queue.load();
function progressHandler(event:LoaderEvent):void {
   trace("rawProgress: " + queue.rawProgress);
   myProgressBar.scaleX = queue.rawProgress;
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...