Jump to content
Search Community

Load progress does not work when the application is written to CD/DVD

jtvalles test
Moderator Tag

Recommended Posts

When I run my application from a cd/dvd, the progress bar doesn't work. Do I need to do something differently when running from a disk?

 

 

 

loader = new SWFLoader(url, {name:"main", estimatedBytes:3000, container:this, autoPlay:false, onProgress:imageProgressHandler, onComplete:completeHandler});
    loader.load();


function imageProgressHandler(event:LoaderEvent):void {
TweenLite.to(mc_progress, .1, {alpha:1});
    mc_progress.progressBar_mc.bar_mc.scaleX = event.target.progress;
}
 

 

 

Link to comment
Share on other sites

Hi. Not so sure what that the problem is. If you move your project files from the dvd to the hard-drive does it work as suspected?  I'm guessing it has something to do with the fact that cd/dvd drives are slow and unreliable.

 

I would suggest you try loading your assets without ImageLoader, just use the native AS3 Loader() and see if it works.

 

I've attached a file that you can burn to your dvd. Be sure to replace the url of the loaded image with your own.

 

 

loadImageFromCD.zip

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