AnonymousCaller
April 10th, 2003, 06:45 PM
I modified the loadBar from one of the popular preload scripts out there. What I am making is a progressbar, sorta like the ones you see in movie previews. But it doesn't seem to o work quite right. Here's what I have:
interface.swf - dynamically loads the movie.swf's into itself and will control the movie (when I get around to it). it has the loadBar object
template.swf - temp name for movies first frame controls the loadBar in the interface.swf. loads 25 frames (movies are in the 2000+ range) then goes to frame 2.
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*250;
if (_framesloaded=25) {
this.gotoAndPlay (2);
} else { this.gotoAndPlay (1);}
This sorta works. See here. (http://www.mdbprojects.net/interface.html) The problem is that the bar doesn't go very far. Hit the refresh button, and it's all the way at the end.
Yes, I tried _parent instead of _root. I tried putting the if-else statement before the loadBar stuff. I put the loadBar script in the interface, but that didn't work. I did search through the forums, and so I come to you to ask for your help.
Anything?
AC
interface.swf - dynamically loads the movie.swf's into itself and will control the movie (when I get around to it). it has the loadBar object
template.swf - temp name for movies first frame controls the loadBar in the interface.swf. loads 25 frames (movies are in the 2000+ range) then goes to frame 2.
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*250;
if (_framesloaded=25) {
this.gotoAndPlay (2);
} else { this.gotoAndPlay (1);}
This sorta works. See here. (http://www.mdbprojects.net/interface.html) The problem is that the bar doesn't go very far. Hit the refresh button, and it's all the way at the end.
Yes, I tried _parent instead of _root. I tried putting the if-else statement before the loadBar stuff. I put the loadBar script in the interface, but that didn't work. I did search through the forums, and so I come to you to ask for your help.
Anything?
AC