If you need to preload 12 files, you can do it sequentially with only one progress bar. Each loading progress needs to update 1/12 portion of the progress bar with a formula like this:

currentPercent = currentMovie.getBytesLoaded() / currentMovie.getBytesTotal();
totalPercent = (loadedFiles + currentPercent) * 12;

loadedFiles needs to be initialized to zero and increased by 1 when a loading finishes. If all the files are similar in size, the progress bar will grow smooth, but if there are small files and other ones bigger, the 1/12 portion of the progress bar will grow fast with small files and slow with the big ones.

Cheers

Miguel Angel Sánchez
Spain

Randy Tinfow escribió:
Has anyone been able to preload multiple swfs concurrently and keep
track of progress globally rather than for individual files?

We can do it sequentially, but that ain't pretty for the user when they
have to endure 12 serial progress bars.

TIA,

Randy Tinfow
IMAGE PLANT

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to