Combined Code
frame 1 {
Stage.showMenu = false;
stop();
_root.onEnterFrame = function () {
percentage = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (percentage == 100) {
delete _root.onEnterFrame;
gotoAndStop(2);
}
};
}
frame 1 {
var volumeOn = true;
var globalVolume = new Sound();
btn_music.onRelease = function () {
if (volumeOn) {
globalVolume.setVolume(0);
} else {
globalVolume.setVolume(100);
}
volumeOn = !volumeOn;
};
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 9 {
}
movieClip 37 {
}
movieClip 43 {
}
movieClip 61 {
}
button 62 {
on (press) {
if (_quality == 'HIGH') {
_quality = 'MEDIUM';
} else {
if (_quality == 'MEDIUM') {
_quality = 'LOW';
} else {
if (_quality == 'LOW') {
_quality = 'HIGH';
}
}
}
}
}
movieClip 64 {
}
frame 2 {
Stage.showMenu = false;
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 72 {
}
movieClip 74 {
}
movieClip 75 {
}
movieClip 77 {
}
movieClip 92 {
}
movieClip 107 {
frame 11 {
var randomNumber = Math.floor(Math.random() * 10);
if (randomNumber == 0) {
gotoAndPlay(1);
}
if (randomNumber == 1) {
gotoAndPlay(1);
}
if (randomNumber == 2) {
gotoAndPlay(1);
}
if (randomNumber == 3) {
gotoAndPlay(12);
}
if (randomNumber == 4) {
gotoAndPlay(12);
}
if (randomNumber == 5) {
gotoAndPlay(12);
}
if (randomNumber == 6) {
gotoAndPlay(34);
}
if (randomNumber == 7) {
gotoAndPlay(34);
}
if (randomNumber == 8) {
gotoAndPlay(67);
}
if (randomNumber == 9) {
gotoAndPlay(67);
}
}
frame 33 {
var randomNumber = Math.floor(Math.random() * 10);
if (randomNumber == 0) {
gotoAndPlay(1);
}
if (randomNumber == 1) {
gotoAndPlay(1);
}
if (randomNumber == 2) {
gotoAndPlay(1);
}
if (randomNumber == 3) {
gotoAndPlay(12);
}
if (randomNumber == 4) {
gotoAndPlay(12);
}
if (randomNumber == 5) {
gotoAndPlay(12);
}
if (randomNumber == 6) {
gotoAndPlay(34);
}
if (randomNumber == 7) {
gotoAndPlay(34);
}
if (randomNumber == 8) {
gotoAndPlay(67);
}
if (randomNumber == 9) {
gotoAndPlay(67);
}
}
frame 66 {
var randomNumber = Math.floor(Math.random() * 10);
if (randomNumber == 0) {
gotoAndPlay(1);
}
if (randomNumber == 1) {
gotoAndPlay(1);
}
if (randomNumber == 2) {
gotoAndPlay(1);
}
if (randomNumber == 3) {
gotoAndPlay(12);
}
if (randomNumber == 4) {
gotoAndPlay(12);
}
if (randomNumber == 5) {
gotoAndPlay(12);
}
if (randomNumber == 6) {
gotoAndPlay(34);
}
if (randomNumber == 7) {
gotoAndPlay(34);
}
if (randomNumber == 8) {
gotoAndPlay(67);
}
if (randomNumber == 9) {
gotoAndPlay(67);
}
}
frame 121 {
var randomNumber = Math.floor(Math.random() * 8);
if (randomNumber == 0) {
gotoAndPlay(1);
}
if (randomNumber == 1) {
gotoAndPlay(1);
}
if (randomNumber == 2) {
gotoAndPlay(1);
}
if (randomNumber == 3) {
gotoAndPlay(12);
}
if (randomNumber == 4) {
gotoAndPlay(12);
}
if (randomNumber == 5) {
gotoAndPlay(12);
}
if (randomNumber == 6) {
gotoAndPlay(34);
}
if (randomNumber == 7) {
gotoAndPlay(67);
}
}
}