Frame 1
KickSound = new Sound(kick);
KickSound.attachSound("soundkick");
SnareSound = new Sound(snare);
SnareSound.attachSound("soundsnare");
HiHatSound = new Sound(hihat);
HiHatSound.attachSound("soundhihat");
if (kick1.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare1.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat1.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 5
if (kick2.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare2.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat2.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 9
if (kick3.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare3.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat3.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 13
if (kick4.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare4.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat4.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 17
if (kick5.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare5.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat5.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 21
if (kick6.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare6.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat6.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 25
if (kick7.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare7.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat7.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 29
if (kick8.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare8.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat8.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 33
if (kick9.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare9.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat9.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 37
if (kick10.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare10.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat10.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 41
if (kick11.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare11.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat11.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 45
if (kick12.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare12.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat12.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 49
if (kick13.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare13.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat13.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 53
if (kick14.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare14.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat14.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 57
if (kick15.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare15.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat15.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Frame 61
if (kick16.state) {
KickSound.start();
kick._visible = true;
} else {
kick._visible = false;
}
if (snare16.state) {
SnareSound.start();
snare._visible = true;
} else {
snare._visible = false;
}
if (hihat16.state) {
HiHatSound.start();
hihat._visible = true;
} else {
hihat._visible = false;
}
Symbol 15 Button
on (release) {
light._visible = !light._visible;
this.state = !this.state;
}
Instance of Symbol 16 MovieClip "light" in Symbol 17 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 16 MovieClip "light" in Symbol 18 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 16 MovieClip "light" in Symbol 19 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 21 Button
on (release) {
kick1.state = false;
kick1.light._visible = false;
kick2.state = false;
kick2.light._visible = false;
kick3.state = false;
kick3.light._visible = false;
kick4.state = false;
kick4.light._visible = false;
kick5.state = false;
kick5.light._visible = false;
kick6.state = false;
kick6.light._visible = false;
kick7.state = false;
kick7.light._visible = false;
kick8.state = false;
kick8.light._visible = false;
kick9.state = false;
kick9.light._visible = false;
kick10.state = false;
kick10.light._visible = false;
kick11.state = false;
kick11.light._visible = false;
kick12.state = false;
kick12.light._visible = false;
kick13.state = false;
kick13.light._visible = false;
kick14.state = false;
kick14.light._visible = false;
kick15.state = false;
kick15.light._visible = false;
kick16.state = false;
kick16.light._visible = false;
snare1.state = false;
snare1.light._visible = false;
snare2.state = false;
snare2.light._visible = false;
snare3.state = false;
snare3.light._visible = false;
snare4.state = false;
snare4.light._visible = false;
snare5.state = false;
snare5.light._visible = false;
snare6.state = false;
snare6.light._visible = false;
snare7.state = false;
snare7.light._visible = false;
snare8.state = false;
snare8.light._visible = false;
snare9.state = false;
snare9.light._visible = false;
snare10.state = false;
snare10.light._visible = false;
snare11.state = false;
snare11.light._visible = false;
snare12.state = false;
snare12.light._visible = false;
snare13.state = false;
snare13.light._visible = false;
snare14.state = false;
snare14.light._visible = false;
snare15.state = false;
snare15.light._visible = false;
snare16.state = false;
snare16.light._visible = false;
hihat1.state = false;
hihat1.light._visible = false;
hihat2.state = false;
hihat2.light._visible = false;
hihat3.state = false;
hihat3.light._visible = false;
hihat4.state = false;
hihat4.light._visible = false;
hihat5.state = false;
hihat5.light._visible = false;
hihat6.state = false;
hihat6.light._visible = false;
hihat7.state = false;
hihat7.light._visible = false;
hihat8.state = false;
hihat8.light._visible = false;
hihat9.state = false;
hihat9.light._visible = false;
hihat10.state = false;
hihat10.light._visible = false;
hihat11.state = false;
hihat11.light._visible = false;
hihat12.state = false;
hihat12.light._visible = false;
hihat13.state = false;
hihat13.light._visible = false;
hihat14.state = false;
hihat14.light._visible = false;
hihat15.state = false;
hihat15.light._visible = false;
hihat16.state = false;
hihat16.light._visible = false;
}