Combined Code
frame 1 {
LOADED = Math.round(getBytesLoaded());
TOTAL = Math.round(getBytesTotal());
PERCENT = LOADED / TOTAL;
BAR._width = PERCENT * 400;
TEXT = Math.round(PERCENT * 100) + '%';
if (LOADED == TOTAL) {
gotoAndStop(3);
}
}
movieClip 3 {
}
movieClip 5 {
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
mus = new Sound();
mus.attachSound('sound');
_root.onn._visible = 0;
}
movieClip 94 {
}
movieClip 96 {
frame 1 {
play();
}
frame 20 {
stop();
}
}
button 98 {
on (press) {
mus.setVolume(0);
off._visible = 0;
onn._visible = 1;
}
}
button 100 {
on (press) {
mus.setVolume(100);
off._visible = 1;
onn._visible = 0;
}
}