my preloader doesn’t seem to preload the whole 3 scene movie I ahve made. if you go to http://www.ThisisLondonClub.com/forAltaf
you will see the e card I have made. If it plays choppy or the song ends before you get to the form I have made you’ll see my problem.
On my computer the song ends well after the e card has finished animating. Here is the code I have along with some basic notes I have taken to help me decipher it.
If anyone can help me solve whyit’s not working please let me know.
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
//isLoaded = the number of bytes loaded
isloaded = _parent._parent.getBytesLoaded();
// p is equal to 100 x (the number of bytes loaded divided by the total amount of bytes)
p = 100*(isLoaded/total);
//this is what sets the number of bytes loaded
_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";
//this is what sets the percentage each frame
_parent.percent = int§ add “% LOADED”;
//this is what sets the location of the preloader bar
_parent.bar._xscale = p;
if (Number§>Number(99)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop(“off”);
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}