eisen
11-15-2002, 09:13 PM
i was at a site following a tutorial, and later on i was adjusting it to look the way i wanted it to, its a simple bar preloader with the percentage above it, but it just shows the number going from 0-100 as it loads (obviously) but no percent sign, but i want the percent sign after the number, i was wondering if someone could help me with that.. this is the actionscript
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("intro", 1)
{
gotoAndPlay ("intro", 1);}
ya and its dynamic text w/ teh var being percent_done
can anyone help??? (sry for being newb)
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("intro", 1)
{
gotoAndPlay ("intro", 1);}
ya and its dynamic text w/ teh var being percent_done
can anyone help??? (sry for being newb)