I've successfully added transitions to my site, now i want to add pre-loaders to it.
I copied this code:
midframe=39;
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
when the file loads I get this message : "A script in this movie is causing it to run slowly..." What am I doing wrong?
You need to post the surrounding code as well, especially look for "for ()" somewhere, that usually is the problem. This code does not itterate, so this is not the cause of your problem.
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home
|