Frame 2
gotoAndPlay (1);
ifFrameLoaded (5) {
gotoAndPlay (3);
}
Frame 3
stop();
Frame 4
shots = "0";
score = "0";
hits = "0";
fired = "0";
Set("/:output", ((((/:score add " - ") add /:hits) add " - ") add int((/:hits / /:shots) * "100")) add "%");
startDrag ("/launcher", true, "0", "295", "600", "295");
Frame 5
stop();
if ("2000" < score) {
rateing = "Gen";
} else if (("1000" < score) and (score < "2000")) {
rateing = "Sgt";
} else {
rateing = "Pvt";
}
stopAllSounds();
Symbol 9 Button
on (press) {
if (/:fired < "1") {
tellTarget ("/powerbar") {
gotoAndPlay (2);
};
}
startpwr = getTimer();
}
on (release) {
if (/:fired < "1") {
duplicateMovieClip ("/bullet", "bullet" add /:shots, /:shots);
tellTarget ("/sounds") {
gotoAndPlay (12);
};
Set("/:fired", /:fired + "1");
setProperty("/bullet" add /:shots, _x , getProperty("/launcher", _x) + "11");
setProperty("/bullet" add /:shots, _y , getProperty("/launcher", _y) - "50");
if ((-"4") < ((startpwr - getTimer()) / "200")) {
Set(("/bullet" add /:shots) add ":pwr", -"4");
} else if (((startpwr - getTimer()) / "200") < (-"50")) {
Set(("/bullet" add /:shots) add ":pwr", -"50");
} else {
Set(("/bullet" add /:shots) add ":pwr", (startpwr - getTimer()) / "200");
}
Set("/:shots", /:shots + "1");
tellTarget ("/powerbar") {
gotoAndStop (1);
};
}
}
Symbol 12 Button
on (press) {
if (/:fired < "1") {
tellTarget ("/powerbar") {
gotoAndPlay (2);
};
}
startpwr = getTimer();
}
on (release) {
if (/:fired < "1") {
duplicateMovieClip ("/bullet", "bullet" add /:shots, /:shots);
tellTarget ("/sounds") {
gotoAndPlay (12);
};
Set("/:fired", /:fired + "1");
setProperty("/bullet" add /:shots, _x , getProperty("/launcher", _x) + "11");
setProperty("/bullet" add /:shots, _y , getProperty("/launcher", _y) - "50");
if ((-"4") < ((startpwr - getTimer()) / "200")) {
Set(("/bullet" add /:shots) add ":pwr", -"4");
} else if (((startpwr - getTimer()) / "200") < (-"50")) {
Set(("/bullet" add /:shots) add ":pwr", -"50");
} else {
Set(("/bullet" add /:shots) add ":pwr", (startpwr - getTimer()) / "200");
}
Set("/:shots", /:shots + "1");
tellTarget ("/powerbar") {
gotoAndStop (1);
};
}
}
Symbol 13 Button
on (release) {
if (/:fired < "4") {
duplicateMovieClip ("/bullet", "bullet" add /:shots, /:shots);
Set("/:fired", /:fired + "1");
setProperty("/bullet" add /:shots, _x , getProperty("/launcher", _x) + "11");
setProperty("/bullet" add /:shots, _y , getProperty("/launcher", _y) - "120");
if ((-"4") < ((startpwr - getTimer()) / "200")) {
Set(("/bullet" add /:shots) add ":pwr", -"4");
} else if (((startpwr - getTimer()) / "200") < (-"50")) {
Set(("/bullet" add /:shots) add ":pwr", -"50");
} else {
Set(("/bullet" add /:shots) add ":pwr", (startpwr - getTimer()) / "200");
}
Set("/:shots", /:shots + "1");
tellTarget ("/powerbar") {
gotoAndStop (1);
};
}
}
on (press) {
tellTarget ("/powerbar") {
gotoAndPlay (2);
};
startpwr = getTimer();
}
Symbol 14 Button
on (release) {
if (/:fired < "4") {
duplicateMovieClip ("/bullet", "bullet" add /:shots, /:shots);
Set("/:fired", /:fired + "1");
setProperty("/bullet" add /:shots, _x , getProperty("/launcher", _x) + "11");
setProperty("/bullet" add /:shots, _y , getProperty("/launcher", _y) - "120");
if ((-"4") < ((startpwr - getTimer()) / "200")) {
Set(("/bullet" add /:shots) add ":pwr", -"4");
} else if (((startpwr - getTimer()) / "200") < (-"50")) {
Set(("/bullet" add /:shots) add ":pwr", -"50");
} else {
Set(("/bullet" add /:shots) add ":pwr", (startpwr - getTimer()) / "200");
}
Set("/:shots", /:shots + "1");
tellTarget ("/powerbar") {
gotoAndStop (1);
};
}
}
on (press) {
tellTarget ("/powerbar") {
gotoAndPlay (2);
};
startpwr = getTimer();
}
Symbol 15 Button
on (release) {
duplicateMovieClip ("/bullet", "bullet" add /:shots, /:shots);
setProperty("/bullet" add /:shots, _x , getProperty("/launcher", _x) + "11");
setProperty("/bullet" add /:shots, _y , getProperty("/launcher", _y) - "120");
if ((-"4") < ((startpwr - getTimer()) / "200")) {
Set(("/bullet" add /:shots) add ":pwr", -"4");
} else if (((startpwr - getTimer()) / "200") < (-"50")) {
Set(("/bullet" add /:shots) add ":pwr", -"50");
} else {
Set(("/bullet" add /:shots) add ":pwr", (startpwr - getTimer()) / "200");
}
Set("/:shots", /:shots + "1");
tellTarget ("/powerbar") {
gotoAndStop (1);
}
}
on (press) {
tellTarget ("/powerbar") {
gotoAndPlay (2);
};
startpwr = getTimer();
}
Symbol 2 MovieClip Frame 3
gotoAndPlay (1);
Symbol 2 MovieClip Frame 5
stopDrag();
_x = (_x + "40");
if ("1000" < _x) {
startDrag ("", true, "0", "295", "600", "295");
gotoAndPlay (1);
}
Symbol 2 MovieClip Frame 6
gotoAndPlay (5);
Symbol 29 MovieClip Frame 1
bushxpos = getProperty("/bush", _x);
roadxpos = getProperty("/road", _x);
hillsxpos = getProperty("/hills", _x);
roadspeed = "15";
bushspeed = "5";
hillsspeed = "1";
setProperty("/bush", _x , bushxpos + bushspeed);
setProperty("/road", _x , roadxpos + roadspeed);
setProperty("/hills", _x , hillsxpos + hillsspeed);
if ((-bushspeed) < (bushxpos - (getProperty("/bush", _width) / "2"))) {
setProperty("/bush", _x , ("600" + bushspeed) - (getProperty("/bush", _width) / "2"));
}
if ((-roadspeed) < (roadxpos - (getProperty("/road", _width) / "2"))) {
setProperty("/road", _x , ("600" + roadspeed) - (getProperty("/road", _width) / "2"));
}
if ((-hillsspeed) < (hillsxpos - (getProperty("/hills", _width) / "2"))) {
setProperty("/hills", _x , ("600" + hillsspeed) - (getProperty("/hills", _width) / "2"));
}
Symbol 29 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 Button
on (release) {
gotoAndStop (4);
}
Symbol 36 Button
on (release) {
gotoAndStop (2);
}
Symbol 37 Button
on (release) {
gotoAndStop (2);
}
Symbol 53 Button
on (release) {
gotoAndStop (1);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
stop();
Symbol 55 Button
on (release) {
getURL ("http://www.whizzkids.co.nz", "_blank");
}
Symbol 57 MovieClip Frame 1
targetboxr = getProperty("/target", _x) + (getProperty("/target", _width) / "2");
targetboxl = getProperty("/target", _x) - (getProperty("/target", _width) / "2");
targetboxbot = "101";
target2boxr = getProperty("/target2", _x) + ((getProperty("/target2", _width) / "2") - "20");
target2boxl = getProperty("/target2", _x) - (getProperty("/target2", _width) / "2");
target2boxbot = "51";
bulletxpos = _x;
bulletypos = _y;
_y = (_y + pwr);
_x = (_x + "2");
if (bulletypos < targetboxbot) {
if (targetboxl < bulletxpos) {
if (bulletxpos < targetboxr) {
Set("/:fired", /:fired - "1");
gotoAndPlay (5);
tellTarget ("/target") {
gotoAndPlay (3);
};
}
}
}
if (bulletypos < target2boxbot) {
if (target2boxl < bulletxpos) {
if (bulletxpos < target2boxr) {
Set("/:fired", /:fired - "1");
gotoAndPlay (5);
tellTarget ("/target2") {
gotoAndPlay (5);
};
}
}
}
if (_y < (-"50")) {
Set("/:output", ((((/:score add " - ") add /:hits) add " - ") add int((/:hits / /:shots) * "100")) add "%");
Set("/:fired", /:fired - "1");
removeMovieClip("");
}
Symbol 57 MovieClip Frame 2
gotoAndPlay (1);
Symbol 57 MovieClip Frame 12
Set("/:score", /:score + "10");
Set("/:hits", /:hits + "1");
Set("/:output", ((((/:score add " - ") add /:hits) add " - ") add int((/:hits / /:shots) * "100")) add "%");
removeMovieClip("");
Symbol 69 Button
on (release) {
gotoAndStop (4);
}
Symbol 70 MovieClip Frame 1
_y = (_y + "10");
Symbol 70 MovieClip Frame 2
_y = (_y + "10");
Symbol 70 MovieClip Frame 3
_y = (_y + "10");
Symbol 70 MovieClip Frame 4
bulletdist = ((getProperty("/launcher", _x) - _x) * (getProperty("/launcher", _x) - _x)) + ((getProperty("/launcher", _y) - _y) * (getProperty("/launcher", _y) - _y));
_y = (_y + "10");
_x = (_x - "2");
if (bulletdist < ((getProperty("/launcher", _width) / "2") * (getProperty("/launcher", _width) / "2"))) {
gotoAndPlay (8);
tellTarget ("/launcher") {
gotoAndPlay (5);
};
}
if ("310" < _y) {
gotoAndPlay (19);
}
Symbol 70 MovieClip Frame 5
gotoAndPlay (4);
Symbol 70 MovieClip Frame 18
tellTarget ("/") {
nextFrame();
};
removeMovieClip("");
Symbol 70 MovieClip Frame 20
removeMovieClip("");
stop();
Symbol 78 MovieClip Frame 1
bulletdist = ((getProperty("/launcher", _x) - _x) * (getProperty("/launcher", _x) - _x)) + ((getProperty("/launcher", _y) - _y) * (getProperty("/launcher", _y) - _y));
_y = (_y + "10");
if (bulletdist < ((getProperty("/launcher", _width) / "2") * (getProperty("/launcher", _width) / "2"))) {
gotoAndPlay (5);
}
if ("310" < _y) {
gotoAndPlay (13);
}
Symbol 78 MovieClip Frame 2
gotoAndPlay (1);
Symbol 78 MovieClip Frame 12
Set("/:score", /:score + "50");
Set("/:output", ((((/:score add " - ") add /:hits) add " - ") add int((/:hits / /:shots) * "100")) add "%");
removeMovieClip("");
Symbol 78 MovieClip Frame 13
_x = (_x + /move:roadspeed);
if ("650" < _x) {
removeMovieClip("");
}
tellTarget ("/sounds") {
gotoAndPlay (2);
}
Symbol 78 MovieClip Frame 14
_x = (_x + /move:roadspeed);
if ("650" < _x) {
removeMovieClip("");
}
Symbol 78 MovieClip Frame 15
gotoAndPlay (14);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 5
gotoAndStop (1);
Symbol 88 MovieClip Frame 11
gotoAndStop (1);
Symbol 88 MovieClip Frame 20
gotoAndStop (1);
Symbol 94 MovieClip Frame 1
count = count + "1";
startypos = _y;
randomno = random("100");
if ("600" < _x) {
movedir = "-4";
}
if (_x < "10") {
movedir = "4";
}
_x = (_x + movedir);
if (randomno == "88") {
duplicateMovieClip ("/target good", "target good" add count, count);
tellTarget ("/sounds") {
gotoAndPlay (6);
};
setProperty("/target good" add count, _x , getProperty("/target2", _x));
setProperty("/target good" add count, _y , getProperty("/target2", _y) + "130");
}
Symbol 94 MovieClip Frame 2
gotoAndPlay (1);
Symbol 94 MovieClip Frame 5
if ("150" < _y) {
tellTarget ("/") {
nextFrame();
};
}
_x = (_x + movedir);
_y = (_y + "10");
Symbol 94 MovieClip Frame 6
gotoAndPlay (5);
Symbol 100 MovieClip Frame 1
if (_x < (-"250")) {
if ((-"300") < _x) {
time = getTimer();
}
if (((time + "5000") + random("4000")) < getTimer()) {
setProperty("/target", _x , "680");
setProperty("/target", _y , "50");
}
}
setProperty("/target", _x , _x - "30");
randomno = random("100");
count = count + "1";
if (("0" < _x) and (_x < "660")) {
if ("90" < randomno) {
duplicateMovieClip ("/target bullet", "target bullet" add count, count);
setProperty("/target bullet" add count, _x , getProperty("/target", _x));
setProperty("/target bullet" add count, _y , getProperty("/target", _y));
}
}
Symbol 100 MovieClip Frame 2
gotoAndPlay (1);
Symbol 100 MovieClip Frame 3
if (_x < (-"250")) {
gotoAndPlay (1);
}
setProperty("/target", _x , _x - "30");
setProperty("/target", _y , _y + "5");
Symbol 100 MovieClip Frame 4
gotoAndPlay (3);
Symbol 104 Button
on (release) {
getURL ("http://www.whizzkids.co.nz", "_blank");
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 50
stop();
Symbol 117 Button
on (release) {
var gname = "alpineesc";
var gscore = score;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();
}
Symbol 122 Button
on (release) {
getURL ("http://www.whizzkids.co.nz", "_blank");
}