Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stage.showmenu = false;
var cricket = new Sound();
cricket.attachSound("crickets");
cricket.start(0, 0);
var buzz = new Sound();
buzz.attachSound("buzz");
var lick = new Sound();
lick.attachSound("tongue");
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
Frame 11
stop();
Frame 12
stop();
Frame 13
stopAllSounds();
Instance of Symbol 72 MovieClip in Frame 13
onClipEvent (load) {
play();
}
Frame 14
stop();
score = 0;
_quality = "low";
fly = 0;
wait = 10;
currentlevel = 13;
this.onEnterFrame = function () {
wait--;
if ((wait < 0) and (score == (fly * 10))) {
play();
}
};
Instance of Symbol 114 MovieClip in Frame 14
/* no clip actions */
Instance of Symbol 72 MovieClip in Frame 14
onClipEvent (load) {
play();
}
Frame 15
stop();
score = 0;
_quality = "low";
fly = 0;
wait = 10;
currentlevel = 14;
this.onEnterFrame = function () {
wait--;
if ((wait < 0) and (score == (fly * 10))) {
play();
}
};
Instance of Symbol 72 MovieClip in Frame 15
onClipEvent (load) {
play();
}
Frame 16
stop();
score = 0;
_quality = "low";
fly = 0;
wait = 10;
currentlevel = 15;
this.onEnterFrame = function () {
wait--;
if ((wait < 0) and (score == (fly * 10))) {
play();
}
};
Instance of Symbol 72 MovieClip in Frame 16
onClipEvent (load) {
play();
}
Frame 17
stop();
score = 0;
_quality = "low";
fly = 0;
wait = 10;
currentlevel = 16;
this.onEnterFrame = function () {
wait--;
if ((wait < 0) and (score == (fly * 10))) {
stopAllSounds();
nextFrame();
}
};
Instance of Symbol 72 MovieClip in Frame 17
onClipEvent (load) {
play();
}
Frame 18
stop();
score = 0;
_quality = "low";
currentlevel = 17;
Instance of Symbol 169 MovieClip in Frame 18
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(2 * _parent.game.frog.hp));
}
Instance of Symbol 169 MovieClip in Frame 18
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(0.2 * _parent.game.boss.hp));
}
Frame 19
stop();
Symbol 20 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 27 MovieClip Frame 81
_root.play();
_root.play();
Symbol 40 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("game");
}
Symbol 45 Button
on (release) {
_root.gotoAndStop("howto");
}
Symbol 49 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 57 Button
on (release) {
gotoAndPlay (5);
}
Symbol 70 Button
on (release) {
_root.gotoAndStop(_root.currentlevel + 1);
}
Symbol 72 MovieClip Frame 11
stop();
Symbol 76 MovieClip Frame 1
_alpha = 0;
Symbol 95 MovieClip Frame 12
_parent.gotoAndStop("stand");
Symbol 102 MovieClip Frame 6
stop();
Instance of Symbol 78 MovieClip "ground" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 103 MovieClip "frog" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
gotoAndStop ("stand");
memory = new _parent.memory();
}
onClipEvent (mouseDown) {
shift = true;
}
onClipEvent (enterFrame) {
left = Key.isDown(65);
right = Key.isDown(68);
jump = Key.isDown(87);
if (this.hitTest(_parent.death)) {
_root.gotoAndStop("dead");
}
if (shift and (_parent.tongue.alive == false)) {
_root.lick.start(0, 0);
_parent.tongue._x = _x;
_parent.tongue._y = _y;
angle = ((-Math.atan2(_y - _parent._ymouse, _parent._xmouse - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle;
_parent.tongue.rot = angle;
_parent.tongue.alive = true;
_parent.tongue.myspeed = 50;
_parent.tongue.cooldown = 15;
shift = false;
}
yspeed++;
if (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 20, true)) {
while (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 19, true)) {
_y = (_y-1);
}
yspeed = 0;
if (jump) {
gotoAndStop ("jump");
} else if (left or right) {
gotoAndStop ("move");
} else {
gotoAndStop ("stand");
}
if (jump) {
yspeed = yspeed - 15;
}
}
xspeed = xspeed / 1.5;
if (left) {
xspeed = xspeed - 3;
}
if (right) {
xspeed = xspeed + 3;
}
if (xspeed > 1) {
_xscale = 100;
} else if (xspeed < -1) {
_xscale = -100;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
_parent._x = _parent._x - (((_parent._x + _x) - 300) / 25);
_parent._y = _parent._y - (((_parent._y + _y) - 250) / 25);
}
Instance of Symbol 105 MovieClip "tongue" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
myspeed = 50;
alive = false;
rot = 0;
cooldown = 15;
}
onClipEvent (enterFrame) {
if (alive) {
angle = ((-Math.atan2(_y - _parent.frog._y, _parent.frog._x - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle - 180;
if (myspeed < 0) {
rot = angle - 180;
myspeed = myspeed - 1;
}
_alpha = 100;
myspeed = myspeed - 5;
_x = (_x + (Math.cos((rot * Math.PI) / 180) * myspeed));
_y = (_y + (Math.sin((rot * Math.PI) / 180) * myspeed));
_parent.line.clear();
_parent.line.lineStyle(2, 16711680);
_parent.line.moveTo(_parent.frog._x, _parent.frog._y);
_parent.line.lineTo(_x, _y);
cooldown--;
if (this.hitTest(_parent.frog) and (cooldown < 0)) {
_parent.line.clear();
alive = false;
_alpha = 0;
_parent.line.clear();
}
} else {
_alpha = 0;
_parent.line.clear();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 113 MovieClip "foreground" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
sx = 0;
}
onClipEvent (enterFrame) {
sx = sx - (_parent.frog.xspeed * 2);
_x = (_x - (((-sx) + _x) / 8));
if (sx < (-_width)) {
sx = sx + (_width * 2);
_x = (_x + (_width * 2));
}
if (sx > _width) {
sx = sx - (_width * 2);
_x = (_x - (_width * 2));
}
}
Instance of Symbol 118 MovieClip "ground" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 103 MovieClip "frog" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
gotoAndStop ("stand");
memory = new _parent.memory();
}
onClipEvent (mouseDown) {
shift = true;
}
onClipEvent (enterFrame) {
left = Key.isDown(65);
right = Key.isDown(68);
jump = Key.isDown(87);
if (this.hitTest(_parent.death)) {
_root.gotoAndStop("dead");
}
if (shift and (_parent.tongue.alive == false)) {
_root.lick.start(0, 0);
_parent.tongue._x = _x;
_parent.tongue._y = _y;
angle = ((-Math.atan2(_y - _parent._ymouse, _parent._xmouse - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle;
_parent.tongue.rot = angle;
_parent.tongue.alive = true;
_parent.tongue.myspeed = 50;
_parent.tongue.cooldown = 15;
shift = false;
}
yspeed++;
if (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 20, true)) {
while (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 19, true)) {
_y = (_y-1);
}
yspeed = 0;
if (jump) {
gotoAndStop ("jump");
} else if (left or right) {
gotoAndStop ("move");
} else {
gotoAndStop ("stand");
}
if (jump) {
yspeed = yspeed - 15;
}
}
xspeed = xspeed / 1.5;
if (left) {
xspeed = xspeed - 3;
}
if (right) {
xspeed = xspeed + 3;
}
if (xspeed > 1) {
_xscale = 100;
} else if (xspeed < -1) {
_xscale = -100;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
_parent._x = _parent._x - (((_parent._x + _x) - 300) / 25);
_parent._y = _parent._y - (((_parent._y + _y) - 250) / 25);
}
Instance of Symbol 105 MovieClip "tongue" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
myspeed = 50;
alive = false;
rot = 0;
cooldown = 15;
}
onClipEvent (enterFrame) {
if (alive) {
angle = ((-Math.atan2(_y - _parent.frog._y, _parent.frog._x - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle - 180;
if (myspeed < 0) {
rot = angle - 180;
myspeed = myspeed - 1;
}
_alpha = 100;
myspeed = myspeed - 5;
_x = (_x + (Math.cos((rot * Math.PI) / 180) * myspeed));
_y = (_y + (Math.sin((rot * Math.PI) / 180) * myspeed));
_parent.line.clear();
_parent.line.lineStyle(2, 16711680);
_parent.line.moveTo(_parent.frog._x, _parent.frog._y);
_parent.line.lineTo(_x, _y);
cooldown--;
if (this.hitTest(_parent.frog) and (cooldown < 0)) {
_parent.line.clear();
alive = false;
_alpha = 0;
_parent.line.clear();
}
} else {
_alpha = 0;
_parent.line.clear();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 113 MovieClip "foreground" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
sx = 0;
}
onClipEvent (enterFrame) {
sx = sx - (_parent.frog.xspeed * 2);
_x = (_x - (((-sx) + _x) / 8));
if (sx < (-_width)) {
sx = sx + (_width * 2);
_x = (_x + (_width * 2));
}
if (sx > _width) {
sx = sx - (_width * 2);
_x = (_x - (_width * 2));
}
}
Instance of Symbol 123 MovieClip "ground" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 103 MovieClip "frog" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
gotoAndStop ("stand");
memory = new _parent.memory();
}
onClipEvent (mouseDown) {
shift = true;
}
onClipEvent (enterFrame) {
left = Key.isDown(65);
right = Key.isDown(68);
jump = Key.isDown(87);
if (this.hitTest(_parent.death)) {
_root.gotoAndStop("dead");
}
if (shift and (_parent.tongue.alive == false)) {
_root.lick.start(0, 0);
_parent.tongue._x = _x;
_parent.tongue._y = _y;
angle = ((-Math.atan2(_y - _parent._ymouse, _parent._xmouse - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle;
_parent.tongue.rot = angle;
_parent.tongue.alive = true;
_parent.tongue.myspeed = 50;
_parent.tongue.cooldown = 15;
shift = false;
}
yspeed++;
if (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 20, true)) {
while (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 19, true)) {
_y = (_y-1);
}
yspeed = 0;
if (jump) {
gotoAndStop ("jump");
} else if (left or right) {
gotoAndStop ("move");
} else {
gotoAndStop ("stand");
}
if (jump) {
yspeed = yspeed - 15;
}
}
xspeed = xspeed / 1.5;
if (left) {
xspeed = xspeed - 3;
}
if (right) {
xspeed = xspeed + 3;
}
if (xspeed > 1) {
_xscale = 100;
} else if (xspeed < -1) {
_xscale = -100;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
_parent._x = _parent._x - (((_parent._x + _x) - 300) / 25);
_parent._y = _parent._y - (((_parent._y + _y) - 250) / 25);
}
Instance of Symbol 105 MovieClip "tongue" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
myspeed = 50;
alive = false;
rot = 0;
cooldown = 15;
}
onClipEvent (enterFrame) {
if (alive) {
angle = ((-Math.atan2(_y - _parent.frog._y, _parent.frog._x - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle - 180;
if (myspeed < 0) {
rot = angle - 180;
myspeed = myspeed - 1;
}
_alpha = 100;
myspeed = myspeed - 5;
_x = (_x + (Math.cos((rot * Math.PI) / 180) * myspeed));
_y = (_y + (Math.sin((rot * Math.PI) / 180) * myspeed));
_parent.line.clear();
_parent.line.lineStyle(2, 16711680);
_parent.line.moveTo(_parent.frog._x, _parent.frog._y);
_parent.line.lineTo(_x, _y);
cooldown--;
if (this.hitTest(_parent.frog) and (cooldown < 0)) {
_parent.line.clear();
alive = false;
_alpha = 0;
_parent.line.clear();
}
} else {
_alpha = 0;
_parent.line.clear();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 113 MovieClip "foreground" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
sx = 0;
}
onClipEvent (enterFrame) {
sx = sx - (_parent.frog.xspeed * 2);
_x = (_x - (((-sx) + _x) / 8));
if (sx < (-_width)) {
sx = sx + (_width * 2);
_x = (_x + (_width * 2));
}
if (sx > _width) {
sx = sx - (_width * 2);
_x = (_x - (_width * 2));
}
}
Instance of Symbol 128 MovieClip "ground" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 103 MovieClip "frog" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
gotoAndStop ("stand");
memory = new _parent.memory();
}
onClipEvent (mouseDown) {
shift = true;
}
onClipEvent (enterFrame) {
left = Key.isDown(65);
right = Key.isDown(68);
jump = Key.isDown(87);
if (this.hitTest(_parent.death)) {
_root.gotoAndStop("dead");
}
if (shift and (_parent.tongue.alive == false)) {
_root.lick.start(0, 0);
_parent.tongue._x = _x;
_parent.tongue._y = _y;
angle = ((-Math.atan2(_y - _parent._ymouse, _parent._xmouse - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle;
_parent.tongue.rot = angle;
_parent.tongue.alive = true;
_parent.tongue.myspeed = 50;
_parent.tongue.cooldown = 15;
shift = false;
}
yspeed++;
if (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 20, true)) {
while (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 19, true)) {
_y = (_y-1);
}
yspeed = 0;
if (jump) {
gotoAndStop ("jump");
} else if (left or right) {
gotoAndStop ("move");
} else {
gotoAndStop ("stand");
}
if (jump) {
yspeed = yspeed - 15;
}
}
xspeed = xspeed / 1.5;
if (left) {
xspeed = xspeed - 3;
}
if (right) {
xspeed = xspeed + 3;
}
if (xspeed > 1) {
_xscale = 100;
} else if (xspeed < -1) {
_xscale = -100;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
_parent._x = _parent._x - (((_parent._x + _x) - 300) / 25);
_parent._y = _parent._y - (((_parent._y + _y) - 250) / 25);
}
Instance of Symbol 105 MovieClip "tongue" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
myspeed = 50;
alive = false;
rot = 0;
cooldown = 15;
}
onClipEvent (enterFrame) {
if (alive) {
angle = ((-Math.atan2(_y - _parent.frog._y, _parent.frog._x - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle - 180;
if (myspeed < 0) {
rot = angle - 180;
myspeed = myspeed - 1;
}
_alpha = 100;
myspeed = myspeed - 5;
_x = (_x + (Math.cos((rot * Math.PI) / 180) * myspeed));
_y = (_y + (Math.sin((rot * Math.PI) / 180) * myspeed));
_parent.line.clear();
_parent.line.lineStyle(2, 16711680);
_parent.line.moveTo(_parent.frog._x, _parent.frog._y);
_parent.line.lineTo(_x, _y);
cooldown--;
if (this.hitTest(_parent.frog) and (cooldown < 0)) {
_parent.line.clear();
alive = false;
_alpha = 0;
_parent.line.clear();
}
} else {
_alpha = 0;
_parent.line.clear();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
tx = _x;
ty = _y;
snap = false;
_root.fly++;
}
onClipEvent (enterFrame) {
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
_x = (_x - (((-tx) + _x) / 25));
_y = (_y - (((-ty) + _y) / 25));
if (this.hitTest(_parent.tongue)) {
snap = true;
}
distance = Math.abs(_x - _parent.frog._x) + Math.abs(_y - _parent.frog._y);
if (snap) {
this._x = _parent.tongue._x;
this._y = _parent.tongue._y;
}
if (this.hitTest(_parent.frog)) {
this.swapDepths(_root.getNextHighestDepth());
_root.score = _root.score + 10;
if (Math.random() < 0.5) {
_root.croak.start(0, 0);
}
this.removeMovieClip();
}
}
Instance of Symbol 132 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
sx = 0;
}
onClipEvent (enterFrame) {
sx = sx - (_parent.frog.xspeed * 2);
_x = (_x - (((-sx) + _x) / 8));
if (sx < (-_width)) {
sx = sx + (_width * 2);
_x = (_x + (_width * 2));
}
if (sx > _width) {
sx = sx - (_width * 2);
_x = (_x - (_width * 2));
}
}
Symbol 137 MovieClip Frame 1
_alpha = 0;
Symbol 153 MovieClip Frame 59
_parent.gotoAndStop(1);
Symbol 162 MovieClip Frame 16
if ((_parent._x > 0) and (_parent._parent.frog._x < _parent._x)) {
if ((_parent._x - _parent._parent.frog._x) < 100) {
_parent._parent.frog.xspeed = _parent._parent.frog.xspeed - 70;
} else if ((_parent._x - _parent._parent.frog._x) < 500) {
_parent._parent.frog.xspeed = _parent._parent.frog.xspeed - 20;
}
}
if ((_parent._x < 0) and (_parent._parent.frog._x > _parent._x)) {
if ((_parent._parent.frog._x - _parent._x) < 100) {
_parent._parent.frog.xspeed = _parent._parent.frog.xspeed + 70;
} else if ((_parent._parent.frog._x - _parent._x) < 500) {
_parent._parent.frog.xspeed = _parent._parent.frog.xspeed + 20;
}
}
Symbol 162 MovieClip Frame 49
_parent.gotoAndStop(1);
Symbol 163 MovieClip Frame 67
stopAllSounds();
_root.gotoAndStop("win");
Instance of Symbol 135 MovieClip "ground" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 103 MovieClip "frog" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
gotoAndStop ("stand");
memory = new _parent.memory();
}
onClipEvent (mouseDown) {
shift = true;
}
onClipEvent (enterFrame) {
left = Key.isDown(65);
right = Key.isDown(68);
jump = Key.isDown(87);
if (this.hitTest(_parent.death)) {
_root.gotoAndStop("dead");
}
if (shift and (_parent.tongue.alive == false)) {
_root.lick.start(0, 0);
_parent.tongue._x = _x;
_parent.tongue._y = _y;
angle = ((-Math.atan2(_y - _parent._ymouse, _parent._xmouse - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle;
_parent.tongue.rot = angle;
_parent.tongue.alive = true;
_parent.tongue.myspeed = 50;
_parent.tongue.cooldown = 15;
shift = false;
}
yspeed++;
if (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 20, true)) {
while (_parent.ground.hitTest(_x + _parent._x, (_y + _parent._y) + 19, true)) {
_y = (_y-1);
}
yspeed = 0;
if (jump) {
gotoAndStop ("jump");
} else if (left or right) {
gotoAndStop ("move");
} else {
gotoAndStop ("stand");
}
if (jump) {
yspeed = yspeed - 15;
}
}
xspeed = xspeed / 1.5;
if (left) {
xspeed = xspeed - 3;
}
if (right) {
xspeed = xspeed + 3;
}
if (xspeed > 1) {
_xscale = 100;
} else if (xspeed < -1) {
_xscale = -100;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
_parent._x = _parent._x - (((_parent._x + _x) - 300) / 25);
_parent._y = _parent._y - (((_parent._y + _y) - 250) / 25);
}
Instance of Symbol 105 MovieClip "tongue" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
myspeed = 50;
alive = false;
rot = 0;
cooldown = 15;
}
onClipEvent (enterFrame) {
if (alive) {
angle = ((-Math.atan2(_y - _parent.frog._y, _parent.frog._x - _x)) * 180) / Math.PI;
_parent.tongue._rotation = angle - 180;
if (myspeed < 0) {
rot = angle - 180;
myspeed = myspeed - 1;
}
_alpha = 100;
myspeed = myspeed - 5;
_x = (_x + (Math.cos((rot * Math.PI) / 180) * myspeed));
_y = (_y + (Math.sin((rot * Math.PI) / 180) * myspeed));
_parent.line.clear();
_parent.line.lineStyle(2, 16711680);
_parent.line.moveTo(_parent.frog._x, _parent.frog._y);
_parent.line.lineTo(_x, _y);
cooldown--;
if (this.hitTest(_parent.frog) and (cooldown < 0)) {
_parent.line.clear();
alive = false;
_alpha = 0;
_parent.line.clear();
}
} else {
_alpha = 0;
_parent.line.clear();
}
}
Instance of Symbol 164 MovieClip "boss" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
hp = 500;
attacking = false;
xspeed = 0;
redness = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (hp <= 0) {
dead = true;
this.gotoAndStop(4);
myColor = new Color(this);
myColor.setTint(0, 0, 0, 50);
}
if (!dead) {
if (_parent.tongue.alive and this.hitTest(_parent.tongue._x + _parent._x, _parent.tongue._y + _parent._y, true)) {
hp--;
redness = 255;
}
myColor = new Color(this);
myColor.setTint(redness, 0, 0, 50);
redness = redness / 1.2;
if (_currentframe == 1) {
attacking = false;
if ((Math.random() * 700) < 5) {
this.gotoAndStop(2);
attacking = true;
}
if ((Math.random() * 700) < 5) {
this.gotoAndStop(3);
}
xspeed = xspeed + (Math.random() - 0.5);
if (_x > 0) {
_xscale = 100;
}
if (_x < 0) {
_xscale = -100;
}
xspeed / 1.1;
if ((_x > 700) or (_x < -700)) {
xspeed = 0;
}
_x = (_x + xspeed);
}
}
}
Instance of Symbol 113 MovieClip "foreground" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
sx = 0;
}
onClipEvent (enterFrame) {
sx = sx - (_parent.frog.xspeed * 2);
_x = (_x - (((-sx) + _x) / 8));
if (sx < (-_width)) {
sx = sx + (_width * 2);
_x = (_x + (_width * 2));
}
if (sx > _width) {
sx = sx - (_width * 2);
_x = (_x - (_width * 2));
}
}
Symbol 175 Button
on (release) {
_root.gotoAndStop("game");
}