Frame 1
function GetAngle(a, o) {
angle = Math.atan(o / a) + (Math.PI/2);
if (a < 0) {
angle = angle + Math.PI;
}
return(angle);
}
function GetDegrees(r) {
return((r / Math.PI) * 180);
}
function LoseStar() {
iStars--;
_root.mSounds.gotoAndPlay("Buzzer");
mStars.gotoAndStop(_root.iStars + 1);
if (iStars == 0) {
if (!isGameover) {
isGameover = true;
gotoAndPlay (88);
}
}
}
function AddStar() {
if (iStars < 5) {
iStars++;
_root.mSounds.gotoAndPlay("Bell");
mStars.gotoAndStop(_root.iStars + 1);
}
}
function UpdateAccuracy() {
if (iHits > 0) {
iAccuracy = Math.floor((iHits / (iHits + iMisses)) * 100) + "%";
}
}
iScore = 0;
Frame 6
if (getBytesLoaded() > (getBytesTotal() * 0.9)) {
gotoAndPlay (24);
}
Frame 14
mBar._xscale = (getBytesLoaded() / getBytesTotal()) * 100;
if (getBytesLoaded() < getBytesTotal()) {
gotoAndPlay(_currentframe - 1);
}
Instance of Symbol 78 MovieClip "mScore" in Frame 63
onClipEvent (enterFrame) {
iCount2++;
if (iCount2 == 4) {
iCount2 = 1;
}
if (((iCount2 == 1) || (iCount2 == 2)) || (iCount2 == 3)) {
iDigit100 = Math.floor(_root.iScore / 100);
iDigit10 = Math.floor((_root.iScore - (iDigit100 * 100)) / 10);
iDigit1 = (_root.iScore - (iDigit100 * 100)) - (iDigit10 * 10);
if ((iCount2 == 3) && (mDigit100.iVal != iDigit100)) {
mDigit100.gotoAndPlay((iDigit100 * 3) + 2);
}
if ((iCount2 == 2) && (mDigit10.iVal != iDigit10)) {
mDigit10.gotoAndPlay((iDigit10 * 3) + 2);
}
if ((iCount2 == 1) && (mDigit1.iVal != iDigit1)) {
mDigit1.gotoAndPlay((iDigit1 * 3) + 2);
}
}
}
Instance of Symbol 83 MovieClip "mArm" in Frame 64
onClipEvent (enterFrame) {
a = _root.GetAngle(_root._xmouse - _x, _root._ymouse - _y);
if ((a > 4.5) && (a < 5.8)) {
_rotation = _root.GetDegrees(a);
}
}
Instance of Symbol 84 MovieClip "mHead" in Frame 64
onClipEvent (enterFrame) {
d = _rotation - _root.mArm._rotation;
_rotation = (_rotation - (d * 0.3));
}
Frame 65
iCount = 0;
Frame 72
if (iCount < 60) {
iCount++;
gotoAndPlay(_currentframe - 1);
}
Frame 81
iScore = 0;
iBullets = 6;
mBullets.gotoAndPlay(7);
iSpeed = 1;
iStars = 5;
isGameover = false;
iHits = 0;
iMisses = 0;
iAccuracy = "0%";
isWalkenFrenzy = false;
Frame 85
stop();
Frame 95
iBonus = Math.Floor((iHits / (iHits + iMisses)) * 100);
iNewScore = iScore + iBonus;
Frame 106
iScore = iScore + 6;
if (iScore < iNewScore) {
gotoAndPlay(_currentframe - 4);
} else {
iScore = iNewScore;
}
Frame 112
stop();
Frame 120
gotoAndPlay (65);
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 15
stop();
Symbol 7 MovieClip Frame 25
stop();
Symbol 7 MovieClip Frame 35
stop();
Symbol 7 MovieClip Frame 45
stop();
Symbol 7 MovieClip Frame 55
stop();
Symbol 7 MovieClip Frame 65
stop();
Symbol 77 MovieClip Frame 2
iVal = 0;
play();
Symbol 77 MovieClip Frame 4
stop();
Symbol 77 MovieClip Frame 5
iVal = 1;
play();
Symbol 77 MovieClip Frame 7
stop();
Symbol 77 MovieClip Frame 8
iVal = 2;
Symbol 77 MovieClip Frame 10
stop();
Symbol 77 MovieClip Frame 11
iVal = 3;
Symbol 77 MovieClip Frame 13
stop();
Symbol 77 MovieClip Frame 14
iVal = 4;
Symbol 77 MovieClip Frame 16
stop();
Symbol 77 MovieClip Frame 17
iVal = 5;
Symbol 77 MovieClip Frame 19
stop();
Symbol 77 MovieClip Frame 20
iVal = 6;
Symbol 77 MovieClip Frame 22
stop();
Symbol 77 MovieClip Frame 23
iVal = 7;
Symbol 77 MovieClip Frame 25
stop();
Symbol 77 MovieClip Frame 26
iVal = 8;
Symbol 77 MovieClip Frame 28
stop();
Symbol 77 MovieClip Frame 29
iVal = 9;
Symbol 77 MovieClip Frame 31
stop();
Symbol 77 MovieClip Frame 32
iVal = 10;
Symbol 77 MovieClip Frame 34
stop();
Symbol 77 MovieClip Frame 35
iVal = 11;
Symbol 77 MovieClip Frame 37
stop();
Symbol 77 MovieClip Frame 38
iVal = 12;
Symbol 77 MovieClip Frame 40
stop();
Symbol 77 MovieClip Frame 41
iVal = 13;
Symbol 77 MovieClip Frame 43
stop();
Symbol 77 MovieClip Frame 44
iVal = 14;
Symbol 77 MovieClip Frame 46
stop();
Symbol 77 MovieClip Frame 47
iVal = 15;
Symbol 77 MovieClip Frame 49
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 4
stop();
Symbol 80 MovieClip Frame 5
stop();
Symbol 80 MovieClip Frame 6
stop();
Symbol 80 MovieClip Frame 7
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 5
gotoAndStop (1);
Symbol 93 MovieClip Frame 6
stop();
Symbol 95 Button
on (release) {
if (_root.iBullets < 6) {
_root.iBullets = 6;
mBullets.gotoAndPlay(7);
}
}
Symbol 96 Button
on (release) {
if (_root.iBullets > 0) {
_root.mArm.gotoAndPlay(2);
with (eval ("_root.mBullethole" + _root.iBullets)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay(1);
}
_root.iBullets--;
_root.mBullets.gotoAndStop(_root.iBullets + 1);
_root.iMisses++;
UpdateAccuracy();
} else {
_root.mArm.gotoAndPlay("Click");
}
}
Symbol 98 MovieClip Frame 51
stop();
Symbol 103 Button
on (release) {
isHit = true;
isBadHit = true;
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 6
stop();
Symbol 109 Button
on (release) {
isHit = true;
}
Symbol 113 Button
on (release) {
isHit = true;
}
Symbol 115 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 24
gotoAndPlay (5);
Symbol 119 Button
on (release) {
isHit = true;
}
Symbol 123 Button
on (release) {
isHit = true;
}
Symbol 127 Button
on (release) {
isHit = true;
}
Symbol 131 Button
on (release) {
isHit = true;
}
Symbol 135 Button
on (release) {
isHit = true;
}
Symbol 139 Button
on (release) {
isHit = true;
}
Symbol 143 Button
on (release) {
isHit = true;
}
Symbol 147 Button
on (release) {
isHit = true;
}
Symbol 151 Button
on (release) {
isHit = true;
}
Symbol 155 Button
on (release) {
isHit = true;
}
Symbol 159 Button
on (release) {
isHit = true;
}
Symbol 161 MovieClip Frame 1
mTarget.state = "down";
Symbol 161 MovieClip Frame 2
if (mTarget.isHit && (!_root.isGameOver)) {
if (_root.iBullets > 0) {
_root.mArm.gotoAndPlay(2);
_root.iBullets--;
_root.mBullets.gotoAndStop(_root.iBullets + 1);
if (mTarget.state == "live") {
mTarget.state = "down";
if (mTarget.isBadHit) {
_root.iMisses++;
_root.LoseStar();
_root.mNo._x = _root._xmouse;
_root.mNo._y = _root._ymouse;
_root.mNo.gotoAndPlay(1);
mTarget.isBadHit = false;
} else {
_root.iHits++;
if (_root.isWalkenFrenzy && (mTarget._currentframe == 10)) {
iPoints = 50;
} else {
iPoints = Math.floor(_root.iSpeed);
}
if (mTarget._currentframe == 2) {
iMultiplier = 1;
i = 1;
while (i <= 6) {
with (eval ("_root.mTrack" + i)) {
if (mTarget.state == "live") {
iMultiplier++;
}
}
i++;
}
iPoints = iPoints * iMultiplier;
isBombHit = true;
}
i = 1;
while (i <= iPoints) {
_root.iScore++;
if ((_root.iScore % 100) == 0) {
_root.AddStar();
}
if ((_root.iScore == 250) && (_root.iMisses == 0)) {
_root.mWalken.play();
_root.isWalkenFrenzy = true;
}
i++;
}
if (mTarget.hasStar) {
_root.AddStar();
}
if (_root.iScore > 10) {
_root.iSpeed = _root.iSpeed + 0.2;
}
with (eval ("_root.mNum" + (_root.iBullets + 1))) {
iVal = iPoints;
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay(2);
}
}
}
} else {
_root.mArm.gotoAndPlay("Click");
}
_root.UpdateAccuracy();
mTarget.isHit = false;
}
if (mTarget.state == "pause") {
mTarget.iPause--;
if (mTarget.iPause < 0) {
mTarget.state = "init";
}
}
if (mTarget.state == "init") {
if (_root.isWalkenFrenzy) {
mTarget.gotoAndStop(10);
} else {
mTarget.gotoAndStop(Math.floor(Math.random() * 14) + 1);
}
mTarget._x = 0;
mTarget._yscale = 0;
mTarget.state = "live";
mTarget.speed = (_root.iSpeed * 0.8) + ((Math.random() * _root.iSpeed) * 0.4);
if ((mTarget._currentframe == 6) && (Math.random() < 0.1)) {
_root.mSounds.gotoAndPlay("Trap");
}
if ((mTarget._currentframe == 10) && (Math.random() < 0.1)) {
_root.mSounds.gotoAndPlay("Cowbell");
}
if ((mTarget._currentframe == 1) && (Math.random() < 0.1)) {
_root.mSounds.gotoAndPlay("Meow");
}
mTarget.mStar.gotoAndStop(1);
mTarget.hasStar = false;
if (((_root.iStars < 5) && (mTarget._currentframe > 2)) && (Math.random() < 0.05)) {
mTarget.mStar.gotoAndPlay(5);
mTarget.hasStar = true;
}
}
if (mTarget.state == "live") {
if (mTarget._yscale < 100) {
mTarget._yscale = mTarget._yscale + 20;
} else {
mTarget._x = mTarget._x + mTarget.speed;
}
}
if ((mTarget._x > 400) && (mTarget.state == "live")) {
mTarget.state = "down";
if (mTarget._currentframe > 2) {
_root.LoseStar();
_root.iMisses++;
_root.UpdateAccuracy();
}
}
if ((mTarget.state == "down") || (_root.isGameover)) {
if (mTarget._yscale > 0) {
mTarget._yscale = mTarget._yscale - 25;
} else {
if (isBombHit) {
isExploded = false;
i = 1;
while (i <= 6) {
with (eval ("_root.mTrack" + i)) {
if (mTarget.state == "live") {
isExploded = true;
mTarget.state = "down";
mTarget.mExplode.gotoAndPlay(2);
}
}
i++;
}
if (isExploded) {
_root.mSounds.gotoAndPlay("Bomb");
}
isBombHit = false;
}
mTarget.iPause = Math.floor(Math.random() * (300 / _root.iSpeed)) + 30;
mTarget.state = "pause";
}
}
Symbol 161 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
iCount = 0;
Symbol 163 MovieClip Frame 4
if (iCount < 30) {
iCount++;
gotoAndPlay(_currentframe - 1);
}
Symbol 163 MovieClip Frame 10
iCount = 0;
Symbol 163 MovieClip Frame 12
if (iCount < 200) {
iCount++;
gotoAndPlay(_currentframe - 1);
}
Symbol 163 MovieClip Frame 13
_root.isWalkenFrenzy = false;
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 6
stop();
Symbol 168 MovieClip Frame 14
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 19
stop();
Symbol 180 Button
on (release) {
gname = "cliche";
gscore = _level0.iNewScore;
if (_level0.iNewScore != 0) {
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
}
}
Symbol 177 Button
on (release) {
play();
}