Frame 1
function initRound() {
notes = new Array();
scoreDisplay = "0 / 10";
addNewNote();
}
function addNewNote() {
if (round == 1) {
r = int((Math.random() * 3) + 1);
} else if ((round == 2) || (round == 3)) {
r = int((Math.random() * 6) + 1);
} else if (round == 4) {
r = int((Math.random() * 12) + 1);
}
notes.push(r);
}
function startRepeat() {
repeatNum = 0;
gotoAndStop("repeat" + round);
}
function soundOff(note) {
if (note == notes[repeatNum]) {
repeatNum++;
if (repeatNum > (notes.length - 1)) {
scoreDisplay = notes.length + " / 10";
intPause = setInterval(function () {
moveOn();
clearInterval(intPause);
}, 1000);
}
} else {
gotoAndStop ("lose");
}
}
function moveOn() {
if (repeatNum >= 10) {
gotoAndStop ("win");
} else {
addNewNote();
gotoAndStop("play" + round);
}
}
round = 1;
initRound();
Stage.showMenu = false;
stop();
stop();
Instance of Symbol 27 MovieClip in Frame 2
on (release) {
getURL ("http://www.monkeydawndesign.com");
}
Instance of Symbol 35 MovieClip "1" in Frame 3
on (release) {
if (_root._currentframe == 3) {
this.play;
_root.soundOff(this._name);
}
}
Instance of Symbol 35 MovieClip "2" in Frame 3
on (release) {
if (_root._currentframe == 3) {
this.play;
_root.soundOff(this._name);
}
}
Instance of Symbol 35 MovieClip "3" in Frame 3
on (release) {
if (_root._currentframe == 3) {
this.play;
_root.soundOff(this._name);
}
}
Instance of Symbol 38 MovieClip in Frame 3
onClipEvent (load) {
noteNum = 0;
nextTime = 0;
}
onClipEvent (enterFrame) {
if (getTimer() > nextTime) {
note = _root.notes[noteNum];
_root[note].gotoAndPlay(2);
noteNum++;
nextTime = getTimer() + 750;
if (noteNum > _root.notes.length) {
_root.startRepeat();
}
}
}
Instance of Symbol 35 MovieClip "1" in Frame 4
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 35 MovieClip "2" in Frame 4
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 35 MovieClip "3" in Frame 4
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 35 MovieClip "3" in Frame 5
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 35 MovieClip "5" in Frame 5
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 35 MovieClip "4" in Frame 5
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 35 MovieClip "6" in Frame 5
on (release) {
this.gotoAndPlay("1");
_root.soundOff(this._name);
}
Instance of Symbol 38 MovieClip in Frame 5
onClipEvent (load) {
noteNum = 0;
nextTime = 0;
}
onClipEvent (enterFrame) {
if (getTimer() > nextTime) {
note = _root.notes[noteNum];
_root[note].gotoAndPlay(2);
noteNum++;
nextTime = getTimer() + 750;
if (noteNum > _root.notes.length) {
_root.startRepeat();
}
}
}
Instance of Symbol 38 MovieClip in Frame 7
onClipEvent (load) {
noteNum = 0;
nextTime = 0;
}
onClipEvent (enterFrame) {
if (getTimer() > nextTime) {
note = _root.notes[noteNum];
_root[note].gotoAndPlay(2);
noteNum++;
nextTime = getTimer() + 750;
if (noteNum > _root.notes.length) {
_root.startRepeat();
}
}
}
Instance of Symbol 42 MovieClip "1" in Frame 7
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "3" in Frame 7
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "5" in Frame 7
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "2" in Frame 7
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "4" in Frame 7
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "6" in Frame 7
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "3" in Frame 8
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "5" in Frame 8
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "2" in Frame 8
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "6" in Frame 8
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 38 MovieClip in Frame 9
onClipEvent (load) {
noteNum = 0;
nextTime = 0;
}
onClipEvent (enterFrame) {
if (getTimer() > nextTime) {
note = _root.notes[noteNum];
_root[note].gotoAndPlay(2);
noteNum++;
nextTime = getTimer() + 750;
if (noteNum > _root.notes.length) {
_root.startRepeat();
}
}
}
Instance of Symbol 42 MovieClip "1" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "7" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "9" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "2" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "8" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "10" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "11" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "4" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "12" in Frame 9
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "2" in Frame 10
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "3" in Frame 10
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "4" in Frame 10
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "8" in Frame 10
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 42 MovieClip "5" in Frame 10
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Instance of Symbol 46 MovieClip "6" in Frame 10
on (release) {
this.gotoAndPlay(1);
_root.soundOff(this._name);
}
Frame 11
prizeImg.gotoAndStop(1);
Instance of Symbol 63 MovieClip "prizeImg" in Frame 11
on (release) {
_root.initRound();
_root.gotoAndStop("play" + _root.round);
}
Frame 12
round++;
prizeImg.gotoAndStop(round + 1);
Instance of Symbol 63 MovieClip "prizeImg" in Frame 12
on (release) {
if (this._currentframe < 6) {
_root.initRound();
_root.gotoAndStop("play" + _root.round);
} else {
_root.gotoAndStop(13);
}
}
Frame 13
prRO1.gotoAndStop(1);
prRO2.gotoAndStop(2);
prRO3.gotoAndStop(3);
prRO4.gotoAndStop(4);
prRO5.gotoAndStop(5);
Instance of Symbol 77 MovieClip "prRO1" in Frame 13
on (rollOver) {
this._parent.Prize.gotoAndStop(this._currentframe);
}
Instance of Symbol 77 MovieClip "prRO2" in Frame 13
on (rollOver) {
this._parent.Prize.gotoAndStop(this._currentframe);
}
Instance of Symbol 77 MovieClip "prRO3" in Frame 13
on (rollOver) {
this._parent.Prize.gotoAndStop(this._currentframe);
}
Instance of Symbol 77 MovieClip "prRO4" in Frame 13
on (rollOver) {
this._parent.Prize.gotoAndStop(this._currentframe);
}
Instance of Symbol 77 MovieClip "prRO5" in Frame 13
on (rollOver) {
this._parent.Prize.gotoAndStop(this._currentframe);
}
Symbol 10 Button
on (release) {
gotoAndStop (2);
}
Symbol 12 Button
on (release) {
gotoAndStop("play" + round);
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();