Frame 2
stop();
i = 1;
while (i < 8) {
clip = this["freeze_sheep" + i];
removeMovieClip(clip);
i++;
}
i = 1;
while (i < 8) {
clip = this["_root.home_sheep" + i];
removeMovieClip(clip);
i++;
}
_root.dartbutton.removeMovieClip();
_root.endscreen.removeMovieClip();
firstSound = new Sound();
firstSound.attachSound("sheepsound1");
firstSound2 = new Sound();
firstSound2.attachSound("sheepsound2");
Instance of Symbol 29 MovieClip "sheepmc" in Frame 2
/* no clip actions */
Frame 16
setProperty("_root.sheepmc", _visible , "1");
_root.sheepmc.gotoAndStop("start");
_root.dartbuttonMC.duplicateMovieClip("dartbutton", 85);
_root.alertMC.duplicateMovieClip("alert", 90);
_root.score = 0;
_root.level = 1;
_root.prelevel = 0;
_root.green_light = "n";
_root.firstSound.start(0, 999);
stop();
Instance of Symbol 66 MovieClip "//display" in Frame 16
onClipEvent (enterFrame) {
timerFunk();
}
Frame 30
_root.alert.gotoAndStop("off");
setProperty("_root.sheepmc", _visible , "0");
_root.endscreenMC.duplicateMovieClip("endscreen", 95);
_root.total = (((Number(_root.scoreboard.reaction1) + Number(_root.scoreboard.reaction2)) + Number(_root.scoreboard.reaction3)) + Number(_root.scoreboard.reaction4)) + Number(_root.scoreboard.reaction5);
_root.endscreen.reaction6 = Number(_root.total) / Number(5);
stop();
Frame 39
stop();
Symbol 27 MovieClip Frame 6
gotoAndPlay (1);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 4
_root.firstSound2.start(0, 999);
Symbol 29 MovieClip Frame 6
_root.display.gotoAndStop("Start");
_root.green_light = "y";
Symbol 29 MovieClip Frame 18
_root.firstSound2.stop("sheepsound2");
Symbol 29 MovieClip Frame 19
_root.display.gotoAndStop("Stop");
Symbol 29 MovieClip Frame 25
_root.level = _root.level + 1;
_root.prelevel = _root.prelevel + 1;
if (_root.score == "0") {
_root.reaction1a = _root.display.Seconds;
_root.reaction1b = _root.display.Centiseconds;
if (_root.reaction1a >= "01") {
_root.reaction1a = "1";
} else {
_root.reaction1a = "0";
}
_root.scoreboard.reaction1 = "3.0";
} else if (_root.score == "1") {
_root.reaction2a = _root.display.Seconds;
_root.reaction2b = _root.display.Centiseconds;
if (_root.reaction2a >= "01") {
_root.reaction2a = "1";
} else {
_root.reaction2a = "0";
}
_root.scoreboard.reaction2 = "3.0";
} else if (_root.score == "2") {
_root.reaction3a = _root.display.Seconds;
_root.reaction3b = _root.display.Centiseconds;
if (_root.reaction3a >= "01") {
_root.reaction3a = "1";
} else {
_root.reaction3a = "0";
}
_root.scoreboard.reaction3 = "3.0";
} else if (_root.score == "3") {
_root.reaction4a = _root.display.Seconds;
_root.reaction4b = _root.display.Centiseconds;
if (_root.reaction4a >= "01") {
_root.reaction4a = "1";
} else {
_root.reaction4a = "0";
}
_root.scoreboard.reaction4 = "3.0";
} else if (_root.score == "4") {
_root.reaction5a = _root.display.Seconds;
_root.reaction5b = _root.display.Centiseconds;
if (_root.reaction5a >= "01") {
_root.reaction5a = "1";
} else {
_root.reaction5a = "0";
}
_root.scoreboard.reaction5 = "3.0";
}
_root.engine.play(1);
_root.score = _root.score + 1;
if (_root.score >= "5") {
_root.gotoAndPlay("endgame");
} else {
_root.green_light = "n";
_root.engine.play(1);
}
Symbol 35 MovieClip Frame 1
setProperty("sheep_home", _visible , "0");
stop();
Symbol 35 MovieClip Frame 2
stop();
Symbol 36 MovieClip Frame 125
gotoAndPlay (1);
Symbol 38 MovieClip Frame 125
gotoAndPlay (1);
Symbol 39 MovieClip Frame 50
gotoAndPlay (1);
Symbol 44 MovieClip Frame 201
gotoAndPlay (1);
Symbol 51 MovieClip Frame 1
stop();
alertbox = "Wait for it! you've received a 3 second penalty for jumping the gun";
Symbol 53 Button
on (rollOver) {
_root.startbtn.gotoAndStop("on");
}
on (rollOut) {
_root.startbtn.gotoAndStop("off");
}
on (release) {
_root.gotoAndPlay("activity");
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 58 Button
on (rollOver) {
_root.dartbutton.startbtn.gotoAndStop("on");
}
on (rollOut) {
_root.dartbutton.startbtn.gotoAndStop("off");
}
on (press) {
if (_root.green_light == "n") {
_root.engine.stop();
_root.alert.play("on");
} else {
_root.level = _root.level + 1;
_root.prelevel = _root.prelevel + 1;
duplicateMovieClip ("_root.freeze_sheep", "freeze_sheep" add _root.level, _root.level);
setProperty("_root.freeze_sheep" add _root.level, _x , getProperty("_root.sheepmc.sheep_graphic", _x) - 120);
setProperty("_root.freeze_sheep" add _root.level, _y , getProperty("_root.sheepmc", _y) + 10);
_root.display.gotoAndStop("Stop");
_root.sheepmc.stop();
if (_root.score == "0") {
_root.reaction1a = _root.display.Seconds;
_root.reaction1b = _root.display.Centiseconds;
if (_root.reaction1a >= "01") {
} else {
_root.reaction1a = "0";
}
if ("99" >= _root.reaction1b) {
_root.scoreboard.reaction1 = (_root.reaction1a add ".0") add _root.reaction1b;
} else {
_root.scoreboard.reaction1 = (_root.reaction1a add ".") add _root.reaction1b;
}
} else if (_root.score == "1") {
_root.reaction2a = _root.display.Seconds;
_root.reaction2b = _root.display.Centiseconds;
if (_root.reaction2a >= "01") {
} else {
_root.reaction2a = "0";
}
if ("99" >= _root.reaction2b) {
_root.scoreboard.reaction2 = (_root.reaction2a add ".0") add _root.reaction2b;
} else {
_root.scoreboard.reaction2 = (_root.reaction2a add ".") add _root.reaction2b;
}
} else if (_root.score == "2") {
_root.reaction3a = _root.display.Seconds;
_root.reaction3b = _root.display.Centiseconds;
if (_root.reaction3a >= "01") {
} else {
_root.reaction3a = "0";
}
if ("99" >= _root.reaction3b) {
_root.scoreboard.reaction3 = (_root.reaction3a add ".0") add _root.reaction3b;
} else {
_root.scoreboard.reaction3 = (_root.reaction3a add ".") add _root.reaction3b;
}
} else if (_root.score == "3") {
_root.reaction4a = _root.display.Seconds;
_root.reaction4b = _root.display.Centiseconds;
if (_root.reaction4a >= "01") {
} else {
_root.reaction4a = "0";
}
if ("99" >= _root.reaction4b) {
_root.scoreboard.reaction4 = (_root.reaction4a add ".0") add _root.reaction4b;
} else {
_root.scoreboard.reaction4 = (_root.reaction4a add ".") add _root.reaction4b;
}
} else if (_root.score == "4") {
_root.reaction5a = _root.display.Seconds;
_root.reaction5b = _root.display.Centiseconds;
if (_root.reaction5a >= "01") {
} else {
_root.reaction5a = "0";
}
if ("99" >= _root.reaction5b) {
_root.scoreboard.reaction5 = (_root.reaction5a add ".0") add _root.reaction5b;
} else {
_root.scoreboard.reaction5 = (_root.reaction5a add ".") add _root.reaction5b;
}
}
_root.score = _root.score + 1;
if (_root.score >= "5") {
_root.gotoAndPlay("endgame");
} else {
_root.green_light = "n";
_root.sheepmc.gotoAndStop("start");
_root.engine.play(1);
}
}
_root.firstSound2.stop("sheepsound2");
}
Symbol 61 MovieClip Frame 1
seconds_low = 1;
seconds_high = 6;
rand = Math.round(Math.random() * seconds_high) + seconds_low;
start_time = getTimer() / 1000;
_root.display.gotoAndStop("Reset");
Symbol 61 MovieClip Frame 2
now_time = getTimer() / 1000;
Symbol 61 MovieClip Frame 3
if ((now_time - start_time) < rand) {
gotoAndPlay (2);
} else {
_root.sheepmc._y = random(281) + 50;
_root.sheepmc.play(go);
stop();
}
Symbol 63 Button
on (press) {
this.startDrag();
}
on (release) {
this.stopDrag();
}
Symbol 66 MovieClip Frame 1
stop();
timerON = 0;
check = 1;
reset = 1;
function timerFunk() {
if (pickup) {
freeze = microtime;
pickUp = 0;
}
if (reset) {
freeze = 0;
time = atime.join("");
reset = 0;
}
if (timerOn) {
if (check) {
timeBase = getTimer();
check = 0;
}
timeNow = getTimer();
microtime = (Number(timeNow) - Number(timeBase)) + Number(freeze);
mts = (microtime / 1000).toString().split(".");
if (59 < mts[0]) {
check = 1;
}
atime[6] = mts[1].substr(0, 3);
if (atime[6].toString().length < 3) {
atime[6] = "0" add atime[6];
}
atime[4] = mts[0];
if (atime[4].toString().length < 2) {
atime[4] = "0" add atime[4];
}
if (atime[4].toString().length < 1) {
atime[4] = "00";
}
if (59 < atime[4]) {
atime[2] = Number(atime[2]) + Number(1);
atime[4] = "00";
}
if (atime[2].toString().length < 2) {
atime[2] = "0" add atime[2].toString();
}
if (59 < atime[2]) {
atime[0] = Number(atime[0]) + Number(1);
atime[2] = "00";
}
if (atime[0].toString().length < 2) {
atime[0] = "0" add atime[0];
}
if (atime[0].toString().length < 1) {
atime[0] = "00";
}
time = atime.join("");
}
}
atime = new Array();
atime[0] = "00";
atime[1] = ".";
atime[2] = "00";
atime[3] = ".";
atime[4] = "00";
atime[5] = ".";
atime[6] = "000";
Symbol 66 MovieClip Frame 2
stop();
timerON = 1;
check = 1;
Symbol 66 MovieClip Frame 3
stop();
timerON = 0;
check = 1;
pickUp = 1;
Symbol 74 MovieClip Frame 1
Minutes = "00";
Seconds = "00";
Centiseconds = "000";
Now = 0;
SavedTime = 0;
stop();
Symbol 74 MovieClip Frame 11
StartTime = getTimer();
SavedTime = Now;
gotoAndPlay (21);
Symbol 74 MovieClip Frame 21
Now = Number(getTimer() - StartTime) + Number(SavedTime);
Symbol 74 MovieClip Frame 22
gotoAndPlay (31);
Symbol 74 MovieClip Frame 31
if (1000 < Number(Now)) {
Minutes = int((substring(Now, 1, length(Now) - 3)) / 60);
Seconds = int((substring(Now, 1, length(Now) - 3)) - (Minutes * 60));
}
Centiseconds = int(substring(Now, length(Now) - 3, 3));
if (Number(Centiseconds) < 10) {
Centiseconds = "0" add Centiseconds;
}
if (Number(Seconds) < 10) {
Seconds = "0" add Seconds;
}
if (Number(Minutes) < 10) {
Minutes = "0" add Minutes;
}
if (59 < Number(int(Minutes))) {
call("Reset");
}
gotoAndPlay (21);
Symbol 74 MovieClip Frame 41
stop();
Symbol 94 Button
on (release) {
if (_root.score >= "4") {
_root.gotoAndStop("endgame");
Set(("_root.reaction" add _root.level) add "a", "01");
Set(("_root.reaction" add _root.level) add "b", "00");
if (_root.score == "0") {
_root.scoreboard.reaction1 = "1.000";
} else if (_root.score == "1") {
_root.scoreboard.reaction2 = "1.000";
} else if (_root.score == "2") {
_root.scoreboard.reaction3 = "1.000";
} else if (_root.score == "3") {
_root.scoreboard.reaction4 = "1.000";
} else if (_root.score == "4") {
_root.scoreboard.reaction5 = "1.000";
}
gotoAndPlay (1);
} else {
Set(("_root.reaction" add _root.level) add "a", "01");
Set(("_root.reaction" add _root.level) add "b", "00");
if (_root.score == "0") {
_root.scoreboard.reaction1 = "1.000";
} else if (_root.score == "1") {
_root.scoreboard.reaction2 = "1.000";
} else if (_root.score == "2") {
_root.scoreboard.reaction3 = "1.000";
} else if (_root.score == "3") {
_root.scoreboard.reaction4 = "1.000";
} else if (_root.score == "4") {
_root.scoreboard.reaction5 = "1.000";
}
_root.score = _root.score + 1;
_root.level = _root.level + 1;
_root.engine.play(1);
gotoAndPlay (1);
}
}
Symbol 98 Button
on (release) {
if (_root.score >= "4") {
_root.gotoAndPlay("endgame");
Set(("_root.reaction" add _root.level) add "a", "01");
Set(("_root.reaction" add _root.level) add "b", "00");
if (_root.score == "0") {
_root.scoreboard.reaction1 = "3.0";
} else if (_root.score == "1") {
_root.scoreboard.reaction2 = "3.0";
} else if (_root.score == "2") {
_root.scoreboard.reaction3 = "3.0";
} else if (_root.score == "3") {
_root.scoreboard.reaction4 = "3.0";
} else if (_root.score == "4") {
_root.scoreboard.reaction5 = "3.0";
}
gotoAndPlay (1);
} else {
Set(("_root.reaction" add _root.level) add "a", "01");
Set(("_root.reaction" add _root.level) add "b", "00");
if (_root.score == "0") {
_root.scoreboard.reaction1 = "3.0";
} else if (_root.score == "1") {
_root.scoreboard.reaction2 = "3.0";
} else if (_root.score == "2") {
_root.scoreboard.reaction3 = "3.0";
} else if (_root.score == "3") {
_root.scoreboard.reaction4 = "3.0";
} else if (_root.score == "4") {
_root.scoreboard.reaction5 = "3.0";
}
_root.score = _root.score + 1;
_root.level = _root.level + 1;
_root.engine.play(1);
gotoAndPlay (1);
}
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
alertbox = "Wait for it! you've received a 3 second penalty for jumping the gun";
Symbol 105 Button
on (release) {
_root.scoreboard.reaction1 = "0.0";
_root.scoreboard.reaction2 = "0.0";
_root.scoreboard.reaction3 = "0.0";
_root.scoreboard.reaction4 = "0.0";
_root.scoreboard.reaction5 = "0.0";
_root.reaction1a = "000";
_root.reaction2a = "000";
_root.reaction3a = "000";
_root.reaction4a = "000";
_root.reaction5a = "000";
_root.reaction1b = "000";
_root.reaction2b = "000";
_root.reaction3b = "000";
_root.reaction4b = "000";
_root.reaction5b = "000";
_root.reaction6 = "Average";
_root.total = "total";
_root.gotoAndStop("beginactivity");
}
Symbol 146 MovieClip Frame 10
stop();
if (0 < _root.endscreen.reaction6) {
_root.endscreen.gotoAndStop("on1");
}
if (0.1 < _root.endscreen.reaction6) {
_root.endscreen.gotoAndStop("on2");
}
if (0.2 < _root.endscreen.reaction6) {
_root.endscreen.gotoAndStop("on3");
}
if (0.3 < _root.endscreen.reaction6) {
_root.endscreen.gotoAndStop("on4");
}
if (0.7 < _root.endscreen.reaction6) {
_root.endscreen.gotoAndStop("on5");
}
_root.firstSound.stop("sheepsound1");
Symbol 146 MovieClip Frame 11
_root.endscreen.advice = "Great score. Your reaction time shows you are very alert";
stop();
_root.endscreen.endresult = reaction6 add " seconds";
_root.endscreen.endtext1 = "Turbo-charged cheetah";
_root.endscreen.endtext2 = "Rocketing rabbit";
_root.endscreen.endtext3 = "Bobbing bobcat";
_root.endscreen.endtext4 = "Ambling armadillo";
_root.endscreen.endtext5 = "Sluggish snail";
_root.endscreen.time1 = _root.scoreboard.reaction1 add " Seconds";
_root.endscreen.time2 = _root.scoreboard.reaction2 add " Seconds";
_root.endscreen.time3 = _root.scoreboard.reaction3 add " Seconds";
_root.endscreen.time4 = _root.scoreboard.reaction4 add " Seconds";
_root.endscreen.time5 = _root.scoreboard.reaction5 add " Seconds";
Symbol 146 MovieClip Frame 12
_root.endscreen.advice = "Great score. Your reaction time shows you are very alert";
Symbol 146 MovieClip Frame 13
_root.endscreen.advice = "You need to improve... how about getting yourself a cup of coffee";
Symbol 146 MovieClip Frame 14
_root.endscreen.advice = "You need to improve... how about getting yourself a cup of coffee";
Symbol 146 MovieClip Frame 15
_root.endscreen.advice = "You need to improve... how about getting yourself a cup of coffee";