Hello all,
So I’ve made a preloader before as below, on the first frame.
Works like a charm.
onClipEvent(enterFrame) {
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
mcpercent = Math.round((mcloaded / mctotal) * 100);
//when switching to frame based animation, use gotoAndStop()
pl_an_mc.gotoAndStop(mcpercent);
progress_mc._xscale = mcpercent;
progress_text.text = mcpercent + " %";
if (mcpercent == 100) {
_root.play();
}
}
However, now i want to load some images(to be used as backgrounds) before the site appears. Below is an example of the code.
case 0 :
this.blur.loadMovie("themes/01blur.jpg");
this.blur2.loadMovie("themes/01blur.jpg");
this.theme.loadMovie("themes/01base.jpg");
current_color = "0x99FF99";
break;
Can I still use the same preloader, or do I have to make one for each of the images I load.
I would appreciate anyone pointing me in the right direction. Thanks!