imagius
09-28-2006, 12:46 AM
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
that is in frame 1, there is a blank text field (dynamic) with the var name of loadText.
this.gotoAndPlay(1);
That is in frame 2.
The problem is that when I hit ctrl+enter and do the simulated load thing it goes to 1% or 2% and then stops updating the number, even though in the bandwith profiler and streaming graph you can clearly see it is still loading and is far beyond the 2% it claims.
I think the tutorial I stole the code from is not meant for flash 8, any ideas on how to fix it?
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
that is in frame 1, there is a blank text field (dynamic) with the var name of loadText.
this.gotoAndPlay(1);
That is in frame 2.
The problem is that when I hit ctrl+enter and do the simulated load thing it goes to 1% or 2% and then stops updating the number, even though in the bandwith profiler and streaming graph you can clearly see it is still loading and is far beyond the 2% it claims.
I think the tutorial I stole the code from is not meant for flash 8, any ideas on how to fix it?