jtvalles Posted March 28, 2013 Share Posted March 28, 2013 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 More sharing options...
Carl Posted March 29, 2013 Share Posted March 29, 2013 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 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