Share Posted October 30, 2012 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 More sharing options...
Share Posted October 31, 2012 Sure, there's a detailed explanation here: http://www.greensock.com/loadermax-tips/#8 Link to comment Share on other sites More sharing options...
Author Share Posted October 31, 2012 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 ? Thanks. Link to comment Share on other sites More sharing options...
Share Posted October 31, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now