Ok… so I’ve spent the day trying to figure out how to get my preloader to work on external SWF’s. I can’t put the preloader on the SWF because I want to make a “generic” preloader that is easy for my co-workers to use. Having read several, several threads, I tried putting the SWF in a level, then refering the preloader to that level. No luck there. The preloader won’t sense it… or maybe the movie won’t go back to the preloader… I don’t know.
Frame 1:
onClipEvent (load){
totalwidth = getProperty(_root.loadbar,_width);
widthfactor=(totalwidth/100);
}
onClipEvent (enterFrame){
var total= level10.getBytesTotal();
var loadedup= level10.getBytesLoaded();
trace (total);
if (loadedup==total){
_root.gotoAndPlay(2);
}else{
gotoAndStop(1);
percent=Math.round ((loadedup/total)100);
_root.loadbar._width=(widthfactorpercent);
output_txt=“loading(” + percent + “%” + “)”;
}
}
Frame 2:
stop();
loadMovieNum (“GenInfoGame2.swf”,10);
The movie loads fine (just no preloader).
The preloader works fine with the appropriate modifications for a normal image on frame 2.
I know the problem is with references… but I don’t know how to fix it. Anyone out there (Lunatic???)