Combined Code
frame 1 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.1) {
clearInterval(timerInterval);
gotoAndStop(2);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 2 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.2) {
clearInterval(timerInterval);
gotoAndStop(3);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 3 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.3) {
clearInterval(timerInterval);
gotoAndStop(4);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 4 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.4) {
clearInterval(timerInterval);
gotoAndStop(5);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 5 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.5) {
clearInterval(timerInterval);
gotoAndStop(6);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 6 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.6) {
clearInterval(timerInterval);
gotoAndStop(7);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 7 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.7) {
clearInterval(timerInterval);
gotoAndStop(8);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 8 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.8) {
clearInterval(timerInterval);
gotoAndStop(9);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 9 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 0.9) {
clearInterval(timerInterval);
gotoAndStop(10);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 10 {
stop();
totalFileSize = _root.getBytesTotal();
timerFunction = function () {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
if (amountLoaded >= 1) {
clearInterval(timerInterval);
gotoAndStop(15);
}
};
timerInterval = setInterval(timerFunction, 200);
}
frame 11 {
stop();
}
button 23 {
on (release) {
play();
}
}
frame 16 {
stop();
}
button 29 {
on (release) {
gotoAndPlay(17);
}
}
frame 17 {
stop();
}
button 36 {
on (release) {
play();
}
}
frame 4085 {
gotoAndPlay(4086);
}