Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.getBytesLoaded() == _local1.getBytesTotal()) {
_local1.gotoAndStop(2);
}
};
stop();
Frame 2
function showWWW() {
if ((_level0.Show_www == "ON") && (www._alpha < 100)) {
www._alpha = www._alpha + 50;
}
if ((_level0.Show_www == "OFF") && (www._alpha > 0)) {
www._alpha = www._alpha - 50;
}
}
build = 11;
Show_www = "ON";
about._visible = false;
about.dragger.useHandCursor = false;
controls._visible = false;
controls.dragger.useHandCursor = false;
if (Key.isToggled(20)) {
hihats.gotoAndStop(20);
}
aKeys = new Array(16);
aKeys[1] = 67;
aKeys[2] = 32;
aKeys[3] = 86;
aKeys[4] = 66;
aKeys[5] = 71;
aKeys[6] = 89;
aKeys[7] = 72;
aKeys[8] = 85;
aKeys[9] = 78;
aKeys[10] = 74;
aKeys[11] = 186;
aKeys[12] = 73;
aKeys[13] = 79;
aKeys[14] = 80;
aKeys[15] = 76;
_global.kickSound = new Sound();
kickSound.attachSound("kick");
_global.snareSound = new Sound();
snareSound.attachSound("snare");
_global.tom11Sound = new Sound();
tom11Sound.attachSound("tom11");
_global.tom12Sound = new Sound();
tom12Sound.attachSound("tom12");
_global.tom13Sound = new Sound();
tom13Sound.attachSound("tom13");
_global.rideSound = new Sound();
rideSound.attachSound("ride");
_global.crash18Sound = new Sound();
crash18Sound.attachSound("crash18");
_global.crash15Sound = new Sound();
crash15Sound.attachSound("crash15");
_global.crash14Sound = new Sound();
crash14Sound.attachSound("crash14");
_global.hihats_looseSound = new Sound();
hihats_looseSound.attachSound("hihats_loose");
_global.hihats_closedSound = new Sound();
hihats_closedSound.attachSound("hihats_closed");
keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
switch (Key.getCode()) {
case aKeys[1] :
kick.gotoAndPlay(2);
return;
case aKeys[2] :
kick.gotoAndPlay(2);
return;
case aKeys[3] :
snare.gotoAndPlay(2);
return;
case aKeys[4] :
snare.gotoAndPlay(2);
return;
case aKeys[5] :
tom11.gotoAndPlay(2);
return;
case aKeys[6] :
tom11.gotoAndPlay(2);
return;
case aKeys[7] :
tom12.gotoAndPlay(2);
return;
case aKeys[8] :
tom12.gotoAndPlay(2);
return;
case aKeys[9] :
tom13.gotoAndPlay(2);
return;
case aKeys[10] :
tom13.gotoAndPlay(2);
return;
case aKeys[11] :
if (Key.isToggled(20)) {
hihats.gotoAndPlay(21);
} else {
hihats.gotoAndPlay(2);
}
return;
case aKeys[12] :
crash14.gotoAndPlay(2);
return;
case aKeys[13] :
crash15.gotoAndPlay(2);
return;
case aKeys[14] :
crash18.gotoAndPlay(2);
return;
case aKeys[15] :
ride.gotoAndPlay(2);
return;
case 20 :
if (Key.isToggled(20)) {
hihats.gotoAndStop(20);
} else {
hihats.gotoAndStop(1);
}
}
};
kick.onPress = function () {
kick.gotoAndPlay(2);
};
snare.onPress = function () {
snare.play();
};
tom11.onPress = function () {
tom11.gotoAndPlay(2);
};
tom12.onPress = function () {
tom12.gotoAndPlay(2);
};
tom13.onPress = function () {
tom13.gotoAndPlay(2);
};
ride.onPress = function () {
ride.gotoAndPlay(2);
};
crash18.onPress = function () {
crash18.gotoAndPlay(2);
};
crash15.onPress = function () {
crash15.gotoAndPlay(2);
};
crash14.onPress = function () {
crash14.gotoAndPlay(2);
};
hihats.onPress = function () {
if (Key.isToggled(20)) {
hihats.gotoAndPlay(21);
} else {
hihats.gotoAndPlay(2);
}
};
Instance of Symbol 88 MovieClip in Frame 2
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_root.showWWW();
}
onClipEvent (mouseDown) {
return(undefined);
while (i <= 13) {
if (_root["Part" + i].hitTest(x, y, true)) {
dragPart = i;
offsetx = _root["Part" + i]._x - x;
offsety = _root["Part" + i]._y - y;
break;
}
i++;
}
}
onClipEvent (mouseUp) {
return(undefined);
}
onClipEvent (enterFrame) {
return(undefined);
}
Instance of Symbol 130 MovieClip "hihats" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 133 MovieClip "snare" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 135 MovieClip "tom11" in Frame 2
onClipEvent (load) {
stop();
}
Symbol 16 Button
on (release) {
this._visible = false;
}
Symbol 27 MovieClip [about mc] Frame 1
dragger.onPress = function () {
startDrag (_root.about);
};
dragger.onRelease = function () {
stopDrag();
};
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 25
stop();
Symbol 49 Button
on (release) {
_root.keys._visible = false;
gotoAndStop (2);
}
Symbol 52 Button
on (release) {
_root.keys._visible = true;
gotoAndStop (1);
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 55 Button
on (release) {
_root.aKeys[1] = 67;
_root.aKeys[2] = 32;
_root.aKeys[3] = 86;
_root.aKeys[4] = 66;
_root.aKeys[5] = 71;
_root.aKeys[6] = 89;
_root.aKeys[7] = 72;
_root.aKeys[8] = 85;
_root.aKeys[9] = 78;
_root.aKeys[10] = 74;
_root.aKeys[11] = 186;
_root.aKeys[12] = 73;
_root.aKeys[13] = 79;
_root.aKeys[14] = 80;
_root.aKeys[15] = 76;
}
Symbol 62 MovieClip [controls mc] Frame 1
function convertKeyCode(keyCode) {
var _local1 = keyCode;
if ((_local1 >= 65) && (_local1 <= 90)) {
return(aLetters[_local1 - 65]);
}
if ((_local1 >= 48) && (_local1 <= 57)) {
return(_local1 - 48);
}
switch (_local1) {
default :
return("undefined");
case 32 :
return("spacebar");
case 186 :
return("; :");
case 187 :
return("= +");
case 189 :
return("- _");
case 191 :
return("/ ?");
case 192 :
return("` ~");
case 219 :
return("[ {");
case 220 :
return("\\|");
case 221 :
return("] }");
case 222 :
}
return("' ''");
}
function inputKey(drum) {
selectedDrum = drum;
_root.aKeys[selectedDrum] = "";
Key.addListener(newKeyListener);
}
errorMessage._visible = false;
dragger.onPress = function () {
startDrag (_root.controls);
};
dragger.onRelease = function () {
stopDrag();
};
aLetters = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
control1.onPress = function () {
inputKey(1);
};
control2.onPress = function () {
inputKey(2);
};
control3.onPress = function () {
inputKey(3);
};
control4.onPress = function () {
inputKey(4);
};
control5.onPress = function () {
inputKey(5);
};
control6.onPress = function () {
inputKey(6);
};
control7.onPress = function () {
inputKey(7);
};
control8.onPress = function () {
inputKey(8);
};
control9.onPress = function () {
inputKey(9);
};
control10.onPress = function () {
inputKey(10);
};
control11.onPress = function () {
inputKey(11);
};
control12.onPress = function () {
inputKey(12);
};
control13.onPress = function () {
inputKey(13);
};
control14.onPress = function () {
inputKey(14);
};
control15.onPress = function () {
inputKey(15);
};
newKeyListener = new Object();
newKeyListener.onKeyDown = function () {
var _local1 = _root;
newKeyCode = Key.getCode();
works = true;
i = 1;
while (i <= 15) {
if (_local1.aKeys[i] == newKeyCode) {
works = false;
}
i++;
}
if (works) {
errorMessage._visible = false;
_local1.aKeys[selectedDrum] = newKeyCode;
Key.removeListener(newKeyListener);
} else {
errorMessage._visible = true;
errorMessage.gotoAndPlay(2);
inputKey(selectedDrum);
}
};
Instance of Symbol 34 MovieClip "control15" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[15]);
}
Instance of Symbol 34 MovieClip "control14" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[14]);
}
Instance of Symbol 34 MovieClip "control13" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[13]);
}
Instance of Symbol 34 MovieClip "control12" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[12]);
}
Instance of Symbol 34 MovieClip "control11" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[11]);
}
Instance of Symbol 34 MovieClip "control10" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[10]);
}
Instance of Symbol 34 MovieClip "control8" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[8]);
}
Instance of Symbol 34 MovieClip "control6" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[6]);
}
Instance of Symbol 34 MovieClip "control4" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[4]);
}
Instance of Symbol 34 MovieClip "control2" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[2]);
}
Instance of Symbol 34 MovieClip "control9" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[9]);
}
Instance of Symbol 34 MovieClip "control7" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[7]);
}
Instance of Symbol 34 MovieClip "control5" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[5]);
}
Instance of Symbol 34 MovieClip "control3" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[3]);
}
Instance of Symbol 34 MovieClip "control1" in Symbol 62 MovieClip [controls mc] Frame 1
onClipEvent (enterFrame) {
keyChar = _root.controls.convertKeyCode(_root.aKeys[1]);
}
Symbol 68 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.getBytesLoaded() == _local1.getBytesTotal()) {
_local1.play();
}
};
Symbol 94 Button
on (release) {
getURL ("http://www.flashmusicgames.com");
}
Symbol 100 Button
on (release) {
setProperty(controls, _x , 123);
setProperty(controls, _y , 97);
setProperty(controls, _visible , true);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
crash14Sound.start();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
crash15Sound.start();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
crash18Sound.start();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
rideSound.start();
Symbol 130 MovieClip Frame 2
hihats_looseSound.start();
Symbol 130 MovieClip Frame 15
gotoAndStop (1);
Symbol 130 MovieClip Frame 21
hihats_closedSound.start();
Symbol 130 MovieClip Frame 23
gotoAndStop (20);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
snareSound.start();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
tom11Sound.start();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
tom13Sound.start();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
tom12Sound.start();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
kickSound.start();