hey guys, i need a preloader for my movie,
i have a main swf that loads external files, and i want the preloader in the external files (each built from the same template)
the main swf is only about 2k, the externals are anywhere from 35-150
i put it together like this...
frame one, external file
main timeline: stop();
i create an MC and give it 2 frames, on the 2nd frame:
loadedBytes=this.getBytesLoaded();
totalBytes=this.getBytesTotal();
if (loadedBytes<totalBytes){
percentage=int((loadedBytes/totalBytes)*100);
_root.loader.bar._xscale=percentage;
gotoAndPlay(1);
} else {
_parent.gotoAndStop(2);
}
i cant seem to get it to work, i replaced "this." with "_parent" and "_root." im quite sure checks the main movie values. how else can i go about this??
cheers!
paul
i have a main swf that loads external files, and i want the preloader in the external files (each built from the same template)
the main swf is only about 2k, the externals are anywhere from 35-150
i put it together like this...
frame one, external file
main timeline: stop();
i create an MC and give it 2 frames, on the 2nd frame:
loadedBytes=this.getBytesLoaded();
totalBytes=this.getBytesTotal();
if (loadedBytes<totalBytes){
percentage=int((loadedBytes/totalBytes)*100);
_root.loader.bar._xscale=percentage;
gotoAndPlay(1);
} else {
_parent.gotoAndStop(2);
}
i cant seem to get it to work, i replaced "this." with "_parent" and "_root." im quite sure checks the main movie values. how else can i go about this??
cheers!
paul