greengrassbrian
Technical User
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 "%";
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 "%";