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 14 {
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
}
frame 3 {
var amb = new Sound();
var s01 = new Sound();
var s02 = new Sound();
var s03 = new Sound();
var s04 = new Sound();
var m01 = new Sound();
var m02 = new Sound();
var m03 = new Sound();
var m04 = new Sound();
s01.attachSound('S01');
s02.attachSound('S02');
s03.attachSound('S03');
s04.attachSound('S04');
m01.attachSound('M_01');
m02.attachSound('M_02');
m03.attachSound('M_03');
m04.attachSound('M_04');
amb.attachSound('M_01');
}
// unknown tag 88 length 67
button 21 {
on (release) {
mute = !mute;
if (mute != 0) {
var PlayingSound = new Sound();
PlayingSound.setVolume(0);
} else {
var PlayingSound = new Sound();
PlayingSound.setVolume(100);
}
}
}
frame 13 {
c = random(4);
if (prec == c) {
++c;
}
if (c == 0) {
s01.start(0, 1);
} else {
if (c == 1) {
s02.start(0, 1);
} else {
if (c == 2) {
s03.start(0, 1);
} else {
if (c == 3) {
s04.start(0, 1);
}
}
}
}
prec = c;
}
frame 25 {
s = random(3);
if (pres == s) {
++s;
}
if (s == 0) {
m01.start(0, 1);
} else {
if (s == 1) {
m02.start(0, 1);
} else {
if (s == 2) {
m03.start(0, 1);
} else {
if (s == 3) {
m04.start(0, 1);
}
}
}
}
pres = s;
}
frame 44 {
c = random(4);
c = 0;
if (prec == c) {
++c;
}
if (c == 0) {
s01.start(0, 1);
} else {
if (c == 1) {
s02.start(0, 1);
} else {
if (c == 2) {
s03.start(0, 1);
} else {
if (c == 3) {
s04.start(0, 1);
}
}
}
}
prec = c;
}
frame 63 {
gotoAndPlay(4);
}