Combined Code
frame 1 {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 510;
_root.loadText = Math.round(getPercent * 100) + '%';
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
var mute = 0;
}
movieClip 13 {
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
}
frame 3 {
var h = 0;
var hpre = h;
var d = 0;
var dpre = d;
var amb = new Sound();
var h01 = new Sound();
var h02 = new Sound();
var h03 = new Sound();
var d01 = new Sound();
var d02 = new Sound();
var d03 = new Sound();
h01.attachSound('H01');
h02.attachSound('H02');
h03.attachSound('H03');
d01.attachSound('D01');
d02.attachSound('D02');
d03.attachSound('D03');
amb.attachSound('Amb');
amb.onSoundComplete = function () {
amb.start(0, 1);
};
amb.start();
}
// unknown tag 88 length 67
button 20 {
on (release) {
mute = !mute;
if (mute != 0) {
var PlayingSound = new Sound();
PlayingSound.setVolume(0);
} else {
var PlayingSound = new Sound();
PlayingSound.setVolume(100);
}
}
}
frame 21 {
h = random(2) + 1;
if (hpre == h) {
++h;
}
if (h == 1) {
h01.start(0, 1);
} else {
if (h == 2) {
h02.start(0, 1);
} else {
if (h == 3) {
h03.start(0, 1);
}
}
}
hpre = h;
}
frame 23 {
d = random(2) + 1;
if (dpre == d) {
++d;
}
if (d == 1) {
d01.start(0, 1);
} else {
if (d == 2) {
d02.start(0, 1);
} else {
if (d == 3) {
d03.start(0, 1);
}
}
}
dpre = d;
}
frame 77 {
h = random(2) + 1;
if (hpre == h) {
++h;
}
if (h == 1) {
h01.start(0, 1);
} else {
if (h == 2) {
h02.start(0, 1);
} else {
if (h == 3) {
h03.start(0, 1);
}
}
}
hpre = h;
}
frame 85 {
d = random(2) + 1;
if (dpre == d) {
++d;
}
if (d == 1) {
d01.start(0, 1);
} else {
if (d == 2) {
d02.start(0, 1);
} else {
if (d == 3) {
d03.start(0, 1);
}
}
}
dpre = d;
}
frame 123 {
gotoAndPlay(4);
}