I'm desparate with this one. I have a preloader that calculates the bytesloaded and totalbytes and then when they're the same moves on to frame 2. In frame 2 a blank movie clip that loads an external swf file. My problem is that the preloader only calculates the bytes for the first movie, not the external one as well. How can I get the proloader to calculate the bytes for both itself and the external movie? Here is the script I'm using for the proloader:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndPlay(2);
}
}
The frame 2 movie clip actionscript is as follows:
loadMovie("mymovie.swf", 0);
Can someone please help me??? I'm desparate!!! Thanks!
Simon315
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndPlay(2);
}
}
The frame 2 movie clip actionscript is as follows:
loadMovie("mymovie.swf", 0);
Can someone please help me??? I'm desparate!!! Thanks!
Simon315