Combined Code
frame 1 {
function startMovie() {
if (getBytesLoaded() == getBytesTotal()) {
preloader._visible = false;
gotoAndPlay(2);
} else {
startLoad(this);
}
}
function startLoad(Clip) {
preload = setInterval(assessLoad, 100, Clip, endPreload);
preloader._visible = true;
preloader.preloader_bar._xscale = 0;
}
preloader.preloader_bar._xscale = 0;
preloader._visible = false;
stop();
assessLoad = function (Clip, endPreLoad) {
var v1 = Clip.getBytesLoaded() / 1024;
var v3 = Clip.getBytesTotal() / 1024;
var v2 = Math.floor((v1 / v3) * 100);
preloader.preloader_bar._xscale = v2;
preloader.pct_loaded.htmlText = v2 + '%';
if (v1 / v3 == 1 && v1 > 1) {
endPreLoad();
}
};
endPreload = function () {
clearInterval(preload);
gotoAndPlay(2);
};
startMovie();
}
movieClip 3 {
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 12 {
}
movieClip 13 {
}
movieClip 14 {
}
movieClip 16 {
}
frame 20 {
stop();
}
button 22 {
on (release) {
play();
}
}
frame 21 {
loop1 = true;
}
movieClip 24 {
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 30 {
}
movieClip 32 {
}
movieClip 34 {
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 40 {
}
button 44 {
on (release) {
loop1 = false;
botoncete1.enabled = false;
}
}
frame 70 {
if (loop1) {
gotoAndPlay(21);
} else {
gotoAndPlay(71);
}
}
frame 71 {
loop2 = true;
}
button 47 {
on (release) {
loop2 = false;
botoncete2.enabled = false;
}
}
frame 100 {
if (loop2) {
gotoAndPlay(71);
} else {
gotoAndPlay(101);
}
}
frame 300 {
gotoAndPlay(21);
}