Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making flash5 preloader compatible with flash4

Status
Not open for further replies.

greengrassbrian

Technical User
Mar 26, 2004
33
US
a client has requested a web presentation in flash 4, but i've been using this preloader in 5 for years--any ideas on how do change the script so that it works in 4?

the only problem is this line:
iBytesLoaded = _root.getBytesLoaded();

here's the code (action 2 of 4):
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
setProperty("pBar", _xscale, iBytes);
sStatus = int(iBytes) add "%";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top