Hi all,
I have a problem with a preloader on my site. Basically I have a movieclip that contains my preloader on the main timeline. My question is how do I get the preloader to work, despite it being inside a movie clip? At the moment, when I test the movie, it totally bypasses the preloader frames.
I have attached the code that is currently on my preloader.
Any help greatly appreciated.
Cheers
===============stop();
lBytes = getBytesLoaded();
tBytes = getBytesTotal();
percentLoaded = Math.floor((lBytes/tBytes)*100);
loader.bar._yscale = percentLoaded;
loader.percent.text = percentLoaded + “%”;
if (lBytes>=tBytes && tBytes>0) {
if (count>=12) {
gotoAndPlay(“start”);
} else {
count++;
gotoAndPlay(“preload”);
}
} else {
gotoAndPlay(“preload”);
}
===============