Combined Code
frame 1 {
function dynamo() {
onMouseDown = function () {
soundcreate = true;
};
gamecube._alpha = count * 100 / max;
gamecube._x = Stage.width / 2 + Math.cos(ang) * 20;
gamecube._y = Stage.height / 2 + Math.sin(ang) * 20;
ang += grate;
if (Key.isDown(32) and pressed == false) {
if (volumelevel != 0) {
volumelevel = 0;
} else {
volumelevel = volumeset;
}
i = 0;
while (i <= sounds.length) {
sounds[i].setVolume(volumelevel);
++i;
}
pressed = true;
}
if (!Key.isDown(32)) {
pressed = false;
}
if (soundcreate and count <= max) {
sounds[count] = new Sound();
sounds[count].attachSound('awesomo');
sounds[count].setVolume(volumelevel);
offset = Math.random() * offsetc;
sounds[count].start(offset, 99);
++count;
soundcreate = false;
}
}
var soundrate = 33.33333333333334;
var soundcreate = false;
var sounds = new Array();
var count = 0;
var offset;
var offsetc = 178;
var volumeset = 25;
var volumelevel = volumeset;
var max = 20;
var i;
var pressed = false;
var ang = 0;
var grate = 0.1;
gamecube._alpha = 0;
var id = setInterval(dynamo, soundrate);
}
// unknown tag 88 length 176
movieClip 5 {
}