Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

I need a bar graph that displays the percentage of movie that's being loaded...

Hey Folks!

I want to have as my pre-loading animation a bar graph that displays the percentage of the total presentation that's has been loaded. I'm using Flash 5. An example would be like what you see with kempdental.com at http://www.kempdental.com/.

What do you think?
Avatar of FLAASHER
FLAASHER
Flag of Saudi Arabia image

Avatar of tonybee720
tonybee720

If you have an instance of pBar, just a rectangle, you can use the ._xscale to resize the bar by a percentage. Also you can use a dynamic text box to display the percentage.

iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;

_root.pBar._xscale=iBytes;
sStatus=Math.floor(iBytes) add "%";

I have been working on this progress bar for quite a bit. It works, however, anything from the library with linkage and 'export in first frame' checked, downloads before the progress bar appears.
ASKER CERTIFIED SOLUTION
Avatar of FLAASHER
FLAASHER
Flag of Saudi Arabia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks