STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229593
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/89831708?noj=FRM89831708-21DC" width="1" height="1"></div>

Trick or Treat.swf

This is the info page for
Flash #22391

(Click the ID number above for more basic data on this flash file.)


Text
MUSIC BY CHESDERMAN

USE THE arrow keys to walk
space to ring the door bell
and watch out for the other
kids they may try and take
your sweets

NEWGROUNDS

+

0

0

0

0

0

0

0

0

0

0

0

0

ActionScript [AS1/AS2]

Frame 2
stop();
Frame 3
stop();
Frame 4
stop(); sweets = 0; house = 4; MovieClip.prototype.randomMove = function (a) { speed = 3; diagonalSpeed = 2.12; if (a == 0) { if ((this._x >= 0) && ((this._x + speed) < 600)) { this._x = this._x + speed; _root.vamp.gotoAndStop(2); } } else if (a == 1) { if (((this._x - speed) >= 0) && (this._x < 600)) { this._x = this._x - speed; _root.vamp.gotoAndStop(2); } } else if (a == 2) { if ((this._y > 0) && ((this._y + speed) <= 400)) { this._y = this._y + speed; _root.vamp.gotoAndStop(2); } } else if (a == 3) { if (((this._y - speed) >= 0) && (this._y < 400)) { this._y = this._y - speed; _root.vamp.gotoAndStop(2); } } else if (a == 4) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 5) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if ((this._y > 0) && ((this._y + diagonalSpeed) <= 400)) { this._y = this._y + diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 6) { if ((this._x >= 0) && ((this._x + DiagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 7) { if ((this._x >= 0) && ((this._x + diagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y + diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } };
Instance of Symbol 132 MovieClip "player" in Frame 4
onClipEvent (load) { speed = 5; speed2 = 3; scale = _xscale; radius = 7; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed2; this.gotoAndStop(4); } if (Key.isDown(40)) { this._y = this._y + speed2; this.gotoAndStop(3); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(2); _xscale = (-scale); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(2); _xscale = scale; } while (_root.wall.hitTest(_x, _y + radius, true)) { _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { _x = (_x-1); } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 650) { this._x = 650; } if (this._x < 0) { this._x = 0; } }
Instance of Symbol 137 MovieClip in Frame 4
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 143 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.house < 1) { this.nextFrame(); } }
Frame 5
stop();
Frame 6
stop(); sweets = 0; house = 4; MovieClip.prototype.randomMove = function (a) { speed = 3; diagonalSpeed = 2.12; if (a == 0) { if ((this._x >= 0) && ((this._x + speed) < 600)) { this._x = this._x + speed; _root.vamp.gotoAndStop(2); } } else if (a == 1) { if (((this._x - speed) >= 0) && (this._x < 600)) { this._x = this._x - speed; _root.vamp.gotoAndStop(2); } } else if (a == 2) { if ((this._y > 0) && ((this._y + speed) <= 400)) { this._y = this._y + speed; _root.vamp.gotoAndStop(2); } } else if (a == 3) { if (((this._y - speed) >= 0) && (this._y < 400)) { this._y = this._y - speed; _root.vamp.gotoAndStop(2); } } else if (a == 4) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 5) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if ((this._y > 0) && ((this._y + diagonalSpeed) <= 400)) { this._y = this._y + diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 6) { if ((this._x >= 0) && ((this._x + DiagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 7) { if ((this._x >= 0) && ((this._x + diagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y + diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } };
Instance of Symbol 137 MovieClip in Frame 6
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 143 MovieClip in Frame 6
onClipEvent (enterFrame) { if (_root.house < 1) { this.nextFrame(); } }
Instance of Symbol 137 MovieClip in Frame 6
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 137 MovieClip in Frame 6
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 132 MovieClip "player" in Frame 6
onClipEvent (load) { speed = 5; speed2 = 3; scale = _xscale; radius = 7; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed2; this.gotoAndStop(4); } if (Key.isDown(40)) { this._y = this._y + speed2; this.gotoAndStop(3); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(2); _xscale = (-scale); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(2); _xscale = scale; } while (_root.wall.hitTest(_x, _y + radius, true)) { _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { _x = (_x-1); } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 650) { this._x = 650; } if (this._x < 0) { this._x = 0; } }
Frame 7
stop();
Frame 8
stop(); sweets = 0; house = 5; MovieClip.prototype.randomMove = function (a) { speed = 3; diagonalSpeed = 2.12; if (a == 0) { if ((this._x >= 0) && ((this._x + speed) < 600)) { this._x = this._x + speed; _root.vamp.gotoAndStop(2); } } else if (a == 1) { if (((this._x - speed) >= 0) && (this._x < 600)) { this._x = this._x - speed; _root.vamp.gotoAndStop(2); } } else if (a == 2) { if ((this._y > 0) && ((this._y + speed) <= 400)) { this._y = this._y + speed; _root.vamp.gotoAndStop(2); } } else if (a == 3) { if (((this._y - speed) >= 0) && (this._y < 400)) { this._y = this._y - speed; _root.vamp.gotoAndStop(2); } } else if (a == 4) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 5) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if ((this._y > 0) && ((this._y + diagonalSpeed) <= 400)) { this._y = this._y + diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 6) { if ((this._x >= 0) && ((this._x + DiagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 7) { if ((this._x >= 0) && ((this._x + diagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y + diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } };
Instance of Symbol 176 MovieClip in Frame 8
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 137 MovieClip in Frame 8
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 8
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 8
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 143 MovieClip in Frame 8
onClipEvent (enterFrame) { if (_root.house < 1) { this.nextFrame(); } }
Instance of Symbol 132 MovieClip "player" in Frame 8
onClipEvent (load) { speed = 5; speed2 = 3; scale = _xscale; radius = 7; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed2; this.gotoAndStop(4); } if (Key.isDown(40)) { this._y = this._y + speed2; this.gotoAndStop(3); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(2); _xscale = (-scale); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(2); _xscale = scale; } while (_root.wall.hitTest(_x, _y + radius, true)) { _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { _x = (_x-1); } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 650) { this._x = 650; } if (this._x < 0) { this._x = 0; } }
Frame 9
stop();
Frame 10
stop(); sweets = 0; house = 8; MovieClip.prototype.randomMove = function (a) { speed = 3; diagonalSpeed = 2.12; if (a == 0) { if ((this._x >= 0) && ((this._x + speed) < 600)) { this._x = this._x + speed; _root.vamp.gotoAndStop(2); } } else if (a == 1) { if (((this._x - speed) >= 0) && (this._x < 600)) { this._x = this._x - speed; _root.vamp.gotoAndStop(2); } } else if (a == 2) { if ((this._y > 0) && ((this._y + speed) <= 400)) { this._y = this._y + speed; _root.vamp.gotoAndStop(2); } } else if (a == 3) { if (((this._y - speed) >= 0) && (this._y < 400)) { this._y = this._y - speed; _root.vamp.gotoAndStop(2); } } else if (a == 4) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 5) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if ((this._y > 0) && ((this._y + diagonalSpeed) <= 400)) { this._y = this._y + diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 6) { if ((this._x >= 0) && ((this._x + DiagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 7) { if ((this._x >= 0) && ((this._x + diagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y + diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } };
Instance of Symbol 137 MovieClip in Frame 10
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 10
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 10
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 10
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 143 MovieClip in Frame 10
onClipEvent (enterFrame) { if (_root.house < 1) { this.nextFrame(); } }
Instance of Symbol 176 MovieClip in Frame 10
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 132 MovieClip "player" in Frame 10
onClipEvent (load) { speed = 5; speed2 = 3; scale = _xscale; radius = 7; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed2; this.gotoAndStop(4); } if (Key.isDown(40)) { this._y = this._y + speed2; this.gotoAndStop(3); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(2); _xscale = (-scale); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(2); _xscale = scale; } while (_root.wall.hitTest(_x, _y + radius, true)) { _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { _x = (_x-1); } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 650) { this._x = 650; } if (this._x < 0) { this._x = 0; } }
Frame 11
stop();
Frame 12
stop(); sweets = 0; house = 5; MovieClip.prototype.randomMove = function (a) { speed = 3; diagonalSpeed = 2.12; if (a == 0) { if ((this._x >= 0) && ((this._x + speed) < 600)) { this._x = this._x + speed; _root.vamp.gotoAndStop(2); } } else if (a == 1) { if (((this._x - speed) >= 0) && (this._x < 600)) { this._x = this._x - speed; _root.vamp.gotoAndStop(2); } } else if (a == 2) { if ((this._y > 0) && ((this._y + speed) <= 400)) { this._y = this._y + speed; _root.vamp.gotoAndStop(2); } } else if (a == 3) { if (((this._y - speed) >= 0) && (this._y < 400)) { this._y = this._y - speed; _root.vamp.gotoAndStop(2); } } else if (a == 4) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 5) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if ((this._y > 0) && ((this._y + diagonalSpeed) <= 400)) { this._y = this._y + diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 6) { if ((this._x >= 0) && ((this._x + DiagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 7) { if ((this._x >= 0) && ((this._x + diagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y + diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } };
Instance of Symbol 176 MovieClip in Frame 12
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 137 MovieClip in Frame 12
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 12
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 12
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 143 MovieClip in Frame 12
onClipEvent (enterFrame) { if (_root.house < 1) { this.nextFrame(); } }
Instance of Symbol 132 MovieClip "player" in Frame 12
onClipEvent (load) { speed = 5; speed2 = 3; scale = _xscale; radius = 7; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed2; this.gotoAndStop(4); } if (Key.isDown(40)) { this._y = this._y + speed2; this.gotoAndStop(3); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(2); _xscale = (-scale); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(2); _xscale = scale; } while (_root.wall.hitTest(_x, _y + radius, true)) { _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { _x = (_x-1); } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 650) { this._x = 650; } if (this._x < 0) { this._x = 0; } }
Frame 13
stop();
Frame 14
stop(); sweets = 0; house = 8; MovieClip.prototype.randomMove = function (a) { speed = 3; diagonalSpeed = 2.12; if (a == 0) { if ((this._x >= 0) && ((this._x + speed) < 600)) { this._x = this._x + speed; _root.vamp.gotoAndStop(2); } } else if (a == 1) { if (((this._x - speed) >= 0) && (this._x < 600)) { this._x = this._x - speed; _root.vamp.gotoAndStop(2); } } else if (a == 2) { if ((this._y > 0) && ((this._y + speed) <= 400)) { this._y = this._y + speed; _root.vamp.gotoAndStop(2); } } else if (a == 3) { if (((this._y - speed) >= 0) && (this._y < 400)) { this._y = this._y - speed; _root.vamp.gotoAndStop(2); } } else if (a == 4) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 5) { if (((this._x - diagonalSpeed) >= 0) && (this._x < 600)) { if ((this._y > 0) && ((this._y + diagonalSpeed) <= 400)) { this._y = this._y + diagonalSpeed; this._x = this._x - diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 6) { if ((this._x >= 0) && ((this._x + DiagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y - diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } else if (a == 7) { if ((this._x >= 0) && ((this._x + diagonalSpeed) < 600)) { if (((this._y - diagonalSpeed) >= 0) && (this._y < 400)) { this._y = this._y + diagonalSpeed; this._x = this._x + diagonalSpeed; _root.vamp.gotoAndStop(2); } } } };
Instance of Symbol 137 MovieClip in Frame 14
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(5); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 14
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 14
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 176 MovieClip in Frame 14
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 143 MovieClip in Frame 14
onClipEvent (enterFrame) { if (_root.house < 1) { this.nextFrame(); } }
Instance of Symbol 176 MovieClip in Frame 14
onClipEvent (load) { c = 30; d = 0; hp = 1000; radius = 7; } onClipEvent (enterFrame) { distanceX = _root.player._x - _x; distanceY = _root.player._y - _y; distance = (distanceX * distanceX) + (distanceY * distanceY); if (distance <= 6900) { this.gotoAndStop(2); angle = (-Math.atan2(distanceX, distanceY)) / (Math.PI/180); if ((_root.hero._x != _x) || (_root.hero._y != _y)) { if (((distanceX * distanceX) + (distanceY * distanceY)) >= 25) { _y = (_y + (3 * Math.cos(angle * (Math.PI/180)))); _x = (_x - (3 * Math.sin(angle * (Math.PI/180)))); } else { c++; if (c > 15) { _root.sweets = _root.sweets - random(7); c = 0; this.gotoAndStop(1); } } } else { d++; if (d > 50) { b = random(8); d = 0; this.gotoAndStop(2); } randomMove(b); } } else { d++; if (d > 50) { b = random(8); d = 0; } randomMove(b); } while (_root.wall.hitTest(_x, _y + radius, true)) { this.gotoAndStop(1); _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { this.gotoAndStop(1); _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { this.gotoAndStop(1); _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { this.gotoAndStop(1); _x = (_x-1); } }
Instance of Symbol 132 MovieClip "player" in Frame 14
onClipEvent (load) { speed = 5; speed2 = 3; scale = _xscale; radius = 7; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed2; this.gotoAndStop(4); } if (Key.isDown(40)) { this._y = this._y + speed2; this.gotoAndStop(3); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(2); _xscale = (-scale); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(2); _xscale = scale; } while (_root.wall.hitTest(_x, _y + radius, true)) { _y = (_y-1); } while (_root.wall.hitTest(_x, _y - radius, true)) { _y = (_y+1); } while (_root.wall.hitTest(_x - radius, _y, true)) { _x = (_x+1); } while (_root.wall.hitTest(_x + radius, _y, true)) { _x = (_x-1); } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 650) { this._x = 650; } if (this._x < 0) { this._x = 0; } }
Frame 15
stop();
Symbol 27 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 29 MovieClip Frame 40
stop();
Symbol 41 Button
on (release) { _root.play(); }
Symbol 42 MovieClip Frame 1
function onEnterFrame() { if (!loaded) { var _local3 = _root.getBytesLoaded() / _root.getBytesTotal(); if (_local3 >= 1) { play(); bar._x = initX; loaded = true; } else { bar._x = initX + ((_local3 - 1) * bar._width); } } var _local4 = getTimer() - time; timeAccum = timeAccum + _local4; while (timeAccum >= FRAME_TIME) { var _local2 = 0; while (_local2 < timeClips.length) { if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) { timeClips[_local2].nextFrame(); } else { timeClips[_local2].gotoAndStop(1); } _local2++; } if (loaded && (_currentframe < _totalframes)) { nextFrame(); } timeAccum = timeAccum - FRAME_TIME; } time = time + _local4; } stop(); _root.stop(); var initX = bar._x; var time = getTimer(); var FRAME_TIME = 33.3333333333333; var timeAccum = 0; var loaded = false; timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0]; var i = 0; while (i < timeClips.length) { timeClips[i].stop(); i++; }
Symbol 42 MovieClip Frame 51
Symbol 52 MovieClip Frame 28
gotoAndPlay (1);
Symbol 53 MovieClip Frame 58
gotoAndPlay (1);
Symbol 63 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 75 Button
on (release) { _root.nextFrame(); }
Symbol 87 MovieClip Frame 8
stop();
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 114 MovieClip "sweety" in Symbol 115 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(Math.round(Math.random() * 10)); }
Symbol 120 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.player.hitTest(this)) { if (Key.isDown(32)) { _parent.play(); _parent.sweety.sw.gotoAndStop(Math.round(Math.random() * 10)); _root.aten.play(); } } }
Symbol 120 MovieClip Frame 2
_root.sweets = _root.sweets + random(10); _root.aten.play(); _root.house = _root.house - 1;
Symbol 120 MovieClip Frame 22
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 143 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.hitTest(_root.player)) { _root.nextFrame(); updateAfterEvent(); } }
Symbol 149 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 14
stop();
Symbol 159 Button
on (release) { _root.nextFrame(); }
Symbol 163 Button
on (release) { _root.gotoAndStop(1); stopAllSounds(); }
Symbol 176 MovieClip Frame 1
stop();

Library Items

Symbol 1 GraphicUsed by:42
Symbol 2 GraphicUsed by:42
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:42
Symbol 5 GraphicUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:5 6Used by:42
Symbol 8 GraphicUsed by:42
Symbol 9 GraphicUsed by:42
Symbol 10 GraphicUsed by:42
Symbol 11 GraphicUsed by:18 29
Symbol 12 GraphicUsed by:18 29
Symbol 13 GraphicUsed by:18 29
Symbol 14 GraphicUsed by:18 29
Symbol 15 GraphicUsed by:18 29
Symbol 16 GraphicUsed by:18 29
Symbol 17 GraphicUsed by:18 29
Symbol 18 MovieClipUses:11 12 13 14 15 16 17Used by:42
Symbol 19 GraphicUsed by:42
Symbol 20 GraphicUsed by:24
Symbol 21 GraphicUsed by:24
Symbol 22 GraphicUsed by:24
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:20 21 22 23Used by:42
Symbol 25 GraphicUsed by:42
Symbol 26 GraphicUsed by:27 152
Symbol 27 ButtonUses:26Used by:42
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:11 12 13 14 15 16 17 28Used by:42
Symbol 30 ShapeTweeningUsed by:42
Symbol 31 GraphicUsed by:42
Symbol 32 ShapeTweeningUsed by:42
Symbol 33 ShapeTweeningUsed by:42
Symbol 34 GraphicUsed by:42
Symbol 35 GraphicUsed by:41
Symbol 36 GraphicUsed by:41
Symbol 37 GraphicUsed by:41
Symbol 38 GraphicUsed by:40 41
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:38 39Used by:41
Symbol 41 ButtonUses:35 36 37 40 38Used by:42
Symbol 42 MovieClipUses:1 2 4 7 8 9 10 18 19 24 25 27 29 30 31 32 33 34 41Used by:Timeline
Symbol 43 FontUsed by:44
Symbol 44 TextUses:43Used by:Timeline
Symbol 45 BitmapUsed by:46 51
Symbol 46 GraphicUses:45Used by:47 56
Symbol 47 MovieClipUses:46Used by:48
Symbol 48 MovieClipUses:47Used by:78 154  Timeline
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:52 53
Symbol 51 GraphicUses:45Used by:52 53
Symbol 52 MovieClipUses:50 51Used by:78 154  Timeline
Symbol 53 MovieClipUses:50 51Used by:78 154  Timeline
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:54Used by:57
Symbol 56 MovieClipUses:46Used by:57
Symbol 57 MovieClipUses:55 56Used by:78  Timeline
Symbol 58 GraphicUsed by:64
Symbol 59 GraphicUsed by:63
Symbol 60 GraphicUsed by:63
Symbol 61 GraphicUsed by:63
Symbol 62 GraphicUsed by:63
Symbol 63 ButtonUses:59 60 61 62Used by:64
Symbol 64 MovieClipUses:58 63Used by:78  Timeline
Symbol 65 GraphicUsed by:75 77
Symbol 66 GraphicUsed by:75 77
Symbol 67 GraphicUsed by:74 75 77
Symbol 68 BitmapUsed by:69 70 71
Symbol 69 GraphicUses:68Used by:72 75 77
Symbol 70 GraphicUses:68Used by:72
Symbol 71 GraphicUses:68Used by:72
Symbol 72 MovieClipUses:69 70 71Used by:74 79
Symbol 73 GraphicUsed by:74 75 77
Symbol 74 MovieClipUses:67 72 73Used by:75 77
Symbol 75 ButtonUses:65 66 74 67 69 73Used by:86  Timeline
Symbol 76 SoundUsed by:Timeline
Symbol 77 ButtonUses:65 66 74 67 69 73Used by:78
Symbol 78 MovieClipUses:48 52 53 57 64 77Used by:87
Symbol 79 MovieClipUses:72Used by:87
Symbol 80 GraphicUsed by:86
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:86
Symbol 83 FontUsed by:84
Symbol 84 TextUses:83Used by:85
Symbol 85 MovieClipUses:84Used by:86
Symbol 86 MovieClipUses:80 82 75 85Used by:87
Symbol 87 MovieClipUses:78 79 86Used by:Timeline
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClipUses:89Used by:Timeline
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:93
Symbol 93 MovieClipUses:92Used by:Timeline
Symbol 94 BitmapUsed by:95 165 178 185 197
Symbol 95 GraphicUses:94Used by:98
Symbol 96 FontUsed by:97
Symbol 97 TextUses:96Used by:98 166 179 186
Symbol 98 MovieClipUses:95 97Used by:Timeline
Symbol 99 GraphicUsed by:120
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:100Used by:120
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:102Used by:114
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:104Used by:114
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:114
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:114
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:110Used by:114
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:112Used by:114
Symbol 114 MovieClipUses:103 105 107 109 111 113Used by:115
Symbol 115 MovieClipUses:114Used by:120
Symbol 116 FontUsed by:117
Symbol 117 TextUses:116Used by:118
Symbol 118 MovieClipUses:117Used by:120
Symbol 119 SoundUsed by:120
Symbol 120 MovieClipUses:99 101 115 118 119Used by:Timeline
Symbol 121 GraphicUsed by:127 132
Symbol 122 GraphicUsed by:124
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:122 123Used by:132
Symbol 125 GraphicUsed by:127
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClipUses:125 121 126Used by:132
Symbol 128 GraphicUsed by:131
Symbol 129 GraphicUsed by:131
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:128 129 130Used by:132
Symbol 132 MovieClipUses:121 124 127 131Used by:Timeline
Symbol 133 GraphicUsed by:136 137
Symbol 134 GraphicUsed by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:134 133 135Used by:137
Symbol 137 MovieClipUses:133 136Used by:Timeline
Symbol 138 FontUsed by:139 167 180 187 191 194
Symbol 139 EditableTextUses:138Used by:Timeline
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:140Used by:142
Symbol 142 MovieClipUses:141Used by:143
Symbol 143 MovieClipUses:142Used by:Timeline
Symbol 144 BitmapUsed by:145 156 157 158 160 161 162
Symbol 145 GraphicUses:144Used by:146
Symbol 146 MovieClipUses:145Used by:148
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:146 147Used by:149
Symbol 149 MovieClipUses:148Used by:Timeline
Symbol 150 FontUsed by:151 155 168 171 182 183 189 190 192 193 195 196
Symbol 151 EditableTextUses:150Used by:Timeline
Symbol 152 MovieClipUses:26Used by:153
Symbol 153 MovieClipUses:152Used by:Timeline
Symbol 154 MovieClipUses:48 52 53Used by:Timeline
Symbol 155 EditableTextUses:150Used by:Timeline
Symbol 156 GraphicUses:144Used by:159
Symbol 157 GraphicUses:144Used by:159
Symbol 158 GraphicUses:144Used by:159
Symbol 159 ButtonUses:156 157 158Used by:Timeline
Symbol 160 GraphicUses:144Used by:163
Symbol 161 GraphicUses:144Used by:163
Symbol 162 GraphicUses:144Used by:163
Symbol 163 ButtonUses:160 161 162Used by:Timeline
Symbol 164 GraphicUsed by:166
Symbol 165 GraphicUses:94Used by:166
Symbol 166 MovieClipUses:164 97 165Used by:Timeline
Symbol 167 EditableTextUses:138Used by:Timeline
Symbol 168 EditableTextUses:150Used by:Timeline
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:Timeline
Symbol 171 EditableTextUses:150Used by:Timeline
Symbol 172 GraphicUsed by:175 176
Symbol 173 GraphicUsed by:175
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:173 172 174Used by:176
Symbol 176 MovieClipUses:172 175Used by:Timeline
Symbol 177 GraphicUsed by:179
Symbol 178 GraphicUses:94Used by:179
Symbol 179 MovieClipUses:177 97 178Used by:Timeline
Symbol 180 EditableTextUses:138Used by:Timeline
Symbol 181 GraphicUsed by:Timeline
Symbol 182 EditableTextUses:150Used by:Timeline
Symbol 183 EditableTextUses:150Used by:Timeline
Symbol 184 GraphicUsed by:186
Symbol 185 GraphicUses:94Used by:186
Symbol 186 MovieClipUses:184 97 185Used by:Timeline
Symbol 187 EditableTextUses:138Used by:Timeline
Symbol 188 GraphicUsed by:Timeline
Symbol 189 EditableTextUses:150Used by:Timeline
Symbol 190 EditableTextUses:150Used by:Timeline
Symbol 191 EditableTextUses:138Used by:Timeline
Symbol 192 EditableTextUses:150Used by:Timeline
Symbol 193 EditableTextUses:150Used by:Timeline
Symbol 194 EditableTextUses:138Used by:Timeline
Symbol 195 EditableTextUses:150Used by:Timeline
Symbol 196 EditableTextUses:150Used by:Timeline
Symbol 197 GraphicUses:94Used by:198
Symbol 198 MovieClipUses:197Used by:199
Symbol 199 MovieClipUses:198Used by:200
Symbol 200 MovieClipUses:199Used by:Timeline

Instance Names

"wall"Frame 4Symbol 98 MovieClip
"player"Frame 4Symbol 132 MovieClip
"aten"Frame 4Symbol 149 MovieClip
"wall"Frame 6Symbol 166 MovieClip
"player"Frame 6Symbol 132 MovieClip
"wall"Frame 8Symbol 179 MovieClip
"player"Frame 8Symbol 132 MovieClip
"wall"Frame 10Symbol 186 MovieClip
"player"Frame 10Symbol 132 MovieClip
"wall"Frame 12Symbol 179 MovieClip
"player"Frame 12Symbol 132 MovieClip
"wall"Frame 14Symbol 186 MovieClip
"player"Frame 14Symbol 132 MovieClip
"bar"Symbol 42 MovieClip Frame 1Symbol 4 MovieClip
"bargfx"Symbol 42 MovieClip Frame 1Symbol 7 MovieClip
"tank"Symbol 42 MovieClip Frame 1Symbol 24 MovieClip
"bargfx"Symbol 42 MovieClip Frame 2Symbol 7 MovieClip
"bargfx"Symbol 42 MovieClip Frame 20Symbol 7 MovieClip
"sweety"Symbol 115 MovieClip Frame 1Symbol 114 MovieClip
"sw"Symbol 120 MovieClip Frame 1Symbol 115 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.

Labels

"LOAD"Symbol 42 MovieClip Frame 1
"COMPLETE_STOP"Symbol 42 MovieClip Frame 2

Dynamic Text Variables

houseSymbol 139 EditableText""
sweetsSymbol 151 EditableText"0"
sweetsSymbol 155 EditableText"0"
houseSymbol 167 EditableText""
sweetsSymbol 168 EditableText"0"
sweetsSymbol 171 EditableText"0"
houseSymbol 180 EditableText""
sweetsSymbol 182 EditableText"0"
sweetsSymbol 183 EditableText"0"
houseSymbol 187 EditableText""
sweetsSymbol 189 EditableText"0"
sweetsSymbol 190 EditableText"0"
houseSymbol 191 EditableText""
sweetsSymbol 192 EditableText"0"
sweetsSymbol 193 EditableText"0"
houseSymbol 194 EditableText""
sweetsSymbol 195 EditableText"0"
sweetsSymbol 196 EditableText"0"




http://swfchan.com/5/22391/info.shtml
Created: 26/5 -2019 22:51:52 Last modified: 26/5 -2019 22:51:52 Server time: 21/12 -2024 15:13:06