Say you have 3 images loading, use something like this: var bytesLoaded:Number = 0; var bytesTotal:Number = 0;
bytesLoaded += image1.getBytesLoaded(); bytesTotal += image1.getBytesTotal(); bytesLoaded += image2.getBytesLoaded(); bytesTotal += image2.getBytesTotal(); bytesLoaded += image3.getBytesLoaded(); bytesTotal += image3.getBytesTotal(); var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100; There may be ways to optimise this code depending on your circumstances (e.g. just calculate bytesTotal once and reuse it) but this shows the basic idea. Adrian P. On 3/11/06, Sascha Balkau <[EMAIL PROTECTED]> wrote: > > Hi, > this is probably an old hat but I can't get it right. I want to display > the > load progress of several images with one progress bar. How do I calculate > the percentage of the bar? > > Thanks alot, > Sascha > > _______________________________________________ > [email protected] > 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 > _______________________________________________ [email protected] 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

