Jump to content


rawProgress sample code

Recommended Posts

Is there a script example I can be pointed to that shows utilisation of rawProgress when reporting on overall video load progress? I am trying to implement it but having troubles.


Thanks in advance..

Link to comment
Share on other sites

I read that link but don't understand how to declare its usage.. Do you have a code sample that shows how rawProgress is used ?



Link to comment
Share on other sites

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
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.