Frame 1
Stage.showMenu = false;
Frame 2
play();
Frame 121
k = 0;
while (k < 50) {
duplicateMovieClip (_root.snow, "snow" + k, k);
k++;
}
totalscore = 0;
stop();
_x = 0;
_y = 0;
Instance of Symbol 117 MovieClip "snow" in Frame 121
onClipEvent (load) {
movieWidth = 3550;
movieHeight = 570;
i = 1 + (Math.random() * 2);
k = -3.14159265358979 + (Math.random() * Math.PI);
this._xscale = (this._yscale = 50 + (Math.random() * 100));
this._alpha = 75 + (Math.random() * 100);
this._x = -10 + (Math.random() * movieWidth);
this._y = -10 + (Math.random() * movieHeight);
}
onClipEvent (enterFrame) {
rad = rad + ((k / 180) * Math.PI);
this._x = this._x - Math.cos(rad);
this._y = this._y + i;
if (this._y >= movieHeight) {
this._y = -5;
}
if ((this._x >= movieWidth) || (this._x <= 0)) {
this._x = -10 + (Math.random() * movieWidth);
this._y = -5;
}
}
Frame 122
stop();
Instance of Symbol 139 MovieClip in Frame 122
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 154 MovieClip in Frame 122
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
unloadMovie (this);
}
}
Frame 123
k = 0;
while (k < 50) {
duplicateMovieClip (_root.snow, "snow" + k, k);
k++;
}
stop();
score.text = 0;
totalscore = 0;
health.text = 100;
present.text = 0;
Instance of Symbol 165 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 186 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 139 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 204 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 219 MovieClip "char" in Frame 123
onClipEvent (load) {
jumping = false;
speed = 0;
healthX = _root.health._x;
scoreX = _root.score._x;
twooneX = _root.twoone._x;
Xpos = this._x;
Ypos = this._y;
maxmove = 15;
_root.maxshoottime = 100;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.twoone._x = twooneX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (!_root.shooting) {
_root.timer = 0;
_root.mvsp = _xscale / 20;
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.twoone._x = _root.twoone._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.twoone._x = _root.twoone._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if (Key.isDown(83)) {
this.gotoAndStop("attack");
attacking = true;
speed = 0;
} else if (Key.isDown(68)) {
if ((_root.gotgun == true) && (!_root.shooting)) {
_root.attachMovie("bullet", "bulleter", 1, {_x:_root.char._x, _y:_root.char._y - 25});
_root.shooting = true;
with (_root.bulleter) {
onEnterFrame = function () {
var _local1 = _root;
if (_local1.timer > _local1.maxshoottime) {
_local1.shooting = false;
unloadMovie(this);
}
_local1.timer++;
_x = _x + _local1.mvsp;
};
}
attacking = true;
speed = 0;
this.gotoAndStop("shoot");
}
} else if (((speed < 1) && (speed > -1)) && (!attacking)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(65) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
}
if (jump < -15) {
jump = -15;
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 12;
jumping = false;
falling = false;
}
}
}
onClipEvent (keyUp) {
if (Key.getCode(65)) {
attacking = false;
}
}
Instance of Symbol 186 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 204 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 165 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 223 MovieClip in Frame 123
onClipEvent (load) {
espeed = 3;
}
onClipEvent (enterFrame) {
distance = 200;
tx = this._x;
ty = this._y;
sx = _root.char._x;
sy = _root.char._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
}
if (tx > sx) {
this._x = this._x - espeed;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 223 MovieClip in Frame 123
onClipEvent (load) {
espeed = 3;
}
onClipEvent (enterFrame) {
distance = 200;
tx = this._x;
ty = this._y;
sx = _root.char._x;
sy = _root.char._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
}
if (tx > sx) {
this._x = this._x - espeed;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 226 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 241 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 241 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 241 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 241 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 241 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root._x = 0;
_root.health.text = _root.health.text - 5;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
}
}
}
Instance of Symbol 243 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.gotoAndStop("game2menu");
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 154 MovieClip in Frame 123
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text++;
_root.totalscore = _root.totalscore + 5;
_root.present = _root.present + 5;
unloadMovie (this);
}
}
Instance of Symbol 117 MovieClip "snow" in Frame 123
onClipEvent (load) {
movieWidth = 3750;
movieHeight = 550;
i = 1 + (Math.random() * 2);
k = -3.14159265358979 + (Math.random() * Math.PI);
this._xscale = (this._yscale = 50 + (Math.random() * 100));
this._alpha = 75 + (Math.random() * 100);
this._x = -10 + (Math.random() * movieWidth);
this._y = -10 + (Math.random() * movieHeight);
}
onClipEvent (enterFrame) {
rad = rad + ((k / 180) * Math.PI);
this._x = this._x - Math.cos(rad);
this._y = this._y + i;
if (this._y >= movieHeight) {
this._y = -5;
}
if ((this._x >= movieWidth) || (this._x <= 0)) {
this._x = -10 + (Math.random() * movieWidth);
this._y = -5;
}
}
Frame 124
lives = 3;
score = 0;
stop();
_x = 0;
_y = 0;
Frame 125
function countdown() {
if (time_left <= 0) {
gotoAndStop ("game3menu");
}
}
time_left = 80;
setInterval(countdown, 1000);
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
stop();
var notallowedtoduplicate = false;
var int1 = 0;
box.onEnterFrame = function () {
var _local1 = this;
tx = _local1._x;
mx = _root.gun._x;
rx = tx - mx;
if (_local1.hitTest(_root.gun)) {
_local1.gotoAndStop(2);
} else {
if ((rx >= 1) && (rx < 300)) {
_local1._x = _local1._x - 1;
}
if ((rx <= -1) && (rx > -300)) {
_local1._x = _local1._x + 1;
}
_local1.gotoAndStop(1);
}
};
box.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box2.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box3.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box4.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box5.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box6.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box7.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box9.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box10.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
box11.onEnterFrame = function () {
var _local1 = this;
var adj = (gun._X - _local1._X);
var _local3 = gun._Y - _local1._Y;
var rot = Math.atan2(_local3, adj);
_local1._rotation = convert(rot);
var xs = (1 * Math.cos((_local1._rotation * Math.PI) / 180));
var _local2 = 1 * Math.sin((_local1._rotation * Math.PI) / 180);
_local1._x = _local1._x + xs;
_local1._y = _local1._y + _local2;
};
Instance of Symbol 269 MovieClip "gun" in Frame 125
onClipEvent (enterFrame) {
rx = _root.ball._x;
ry = _root.ball._y;
cx = _root.gun._x;
cy = _root.gun._y;
angle = Math.atan2(ry - cy, rx - cx) / (Math.PI/180);
_rotation = angle;
}
onClipEvent (load) {
_root.shot._visible = false;
shotcount = 1;
}
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root._ymouse - this._y);
_root.xChange = Math.round(_root._xmouse - this._x);
this._rotation = myDegrees + 90;
}
onClipEvent (mouseDown) {
_root.shot.duplicateMovieClip("shot" + shotcount, shotcount + 7000);
_root["shot" + shotcount]._visible = true;
shotcount++;
if (shotcount > 1000) {
shotcount = 1E24;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box2)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box3)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box4)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box5)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box6)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box7)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box9)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box10)) {
_root.gotoAndStop("submitscore");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box11)) {
_root.gotoAndStop("submitscore");
}
}
Instance of Symbol 272 MovieClip "shot" in Frame 125
onClipEvent (load) {
if (this._name == "shot") {
this._visible = false;
} else {
this._visible = true;
}
this._x = _root.gun._x;
this._y = _root.gun._y;
shotxspeed = 40 * Math.sin(_root.gun._rotation * (Math.PI/180));
shotyspeed = 40 * Math.cos(_root.gun._rotation * (Math.PI/180));
}
onClipEvent (enterFrame) {
this._x = this._x + shotxspeed;
this._y = this._y - shotyspeed;
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
if (this._y > 400) {
this.removeMovieClip();
}
if (this._y < 0) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box)) {
_root.box.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box2)) {
_root.box2.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box3)) {
_root.box3.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box4)) {
_root.box4.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box5)) {
_root.box5.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box6)) {
_root.box6.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box7)) {
_root.box7.gotoAndStop("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box8.box81)) {
_root.box8.box81.gotoAndPlay("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box9)) {
_root.box9.gotoAndPlay("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box10)) {
_root.box10.gotoAndPlay("dead")();
this.gotoAndPlay("happy");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.box11)) {
_root.box11.gotoAndPlay("dead")();
this.gotoAndPlay("happy");
}
}
Frame 126
stop();
time_left = 1E64;
scores = 0;
lives = 10;
Frame 127
stop();
Mouse.hide();
onEnterFrame = function () {
if (lives <= 0) {
gotoAndStop ("submitscore");
}
};
Instance of Symbol 8 MovieClip [Enemy] "mmm5" in Frame 127
onClipEvent (load) {
function reset() {
this._y = Math.random() * 400;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
} else if (dir == 2) {
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 8 MovieClip [Enemy] "mmm3" in Frame 127
onClipEvent (load) {
function reset() {
this._y = Math.random() * 400;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
} else if (dir == 2) {
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 8 MovieClip [Enemy] "mmm6" in Frame 127
onClipEvent (load) {
function reset() {
this._y = Math.random() * 400;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
} else if (dir == 2) {
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 8 MovieClip [Enemy] "mmm4" in Frame 127
onClipEvent (load) {
function reset() {
this._y = Math.random() * 400;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
} else if (dir == 2) {
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 8 MovieClip [Enemy] "mmm7" in Frame 127
onClipEvent (load) {
function reset() {
this._y = Math.random() * 400;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
} else if (dir == 2) {
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 311 MovieClip "santa" in Frame 127
onClipEvent (enterFrame) {
startDrag (this, true);
}
Instance of Symbol 8 MovieClip [Enemy] "mmm8" in Frame 127
onClipEvent (load) {
function reset() {
this._y = Math.random() * 400;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
} else if (dir == 2) {
}
if (this._x < -10) {
reset();
}
}
Frame 128
stop();
Mouse.show();
_root.lives = 5;
Frame 129
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
stop();
bXlnYW1lX25hbWVfdmFyaWFibGU = myname;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = totalscore;
__rankz_send__("MzE5OGolZSVhJW4lcw==", "c2tWc1ZnTHo=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
Symbol 74 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 76 MovieClip Frame 40
stop();
Symbol 87 Button
on (release) {
startMovie();
}
Symbol 88 Button
on (release) {
_root.nextFrame();
}
Symbol 89 MovieClip Frame 1
function timerHandler() {
var _local2 = this;
if (!loadingComplete) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local3;
if (_local3 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return;
}
} else {
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local1 = 0;
while ((frameAccum >= FRAME_TIME) && (_local1 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(_local2, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local1++;
}
updateAfterEvent();
}
}
function advanceFrame(clip, recurse, loop) {
var _local1 = clip;
var _local2 = loop;
var _local3 = recurse;
if (!_local1) {
} else {
_local1.stop();
if (_local1._currentframe == _local1._totalframes) {
if (_local2) {
_local1.gotoAndStop(1);
}
} else {
_local1.nextFrame();
}
if (_local3) {
for (childName in _local1) {
if (typeof(_local1[childName]) == "movieclip") {
advanceFrame(_local1[childName], _local3, _local2);
}
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 90 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
gotoAndStop ("game1menu");
}
Symbol 115 Button
on (release) {
getURL ("http://rankz.armorbot.com /santavsrobots/", "_blank");
}
Symbol 119 Button
on (release) {
gotoAndStop ("game1");
}
Symbol 164 MovieClip Frame 40
this.gotoAndPlay("1");
Symbol 164 MovieClip Frame 41
stop();
Symbol 218 Button
on (release) {
_root.gotoAndStop("submit score");
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 3
stop();
Symbol 219 MovieClip Frame 4
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Instance of Symbol 154 MovieClip in Symbol 232 MovieClip Frame 1
/* no clip actions */
Symbol 252 Button
on (release) {
gotoAndStop ("game2");
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
play();
Symbol 257 MovieClip Frame 10
_root.score = _root.score + 1;
_root.totalscore = _root.totalscore + 1;
this._x = random(550);
this._y = -50;
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 4
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
play();
_root.totalscore = _root.totalscore + 3;
_root.score = _root.score + 1;
Symbol 282 MovieClip Frame 10
stop();
_root.removeMovieClip("box 8");
Symbol 285 MovieClip Frame 60
_root.box8._x = Math.random() * 550;
Symbol 287 MovieClip Frame 30
_root.time_left = _root.time_left - 1;
Symbol 294 Button
on (release) {
gotoAndStop ("game3");
}
Symbol 311 MovieClip Frame 1
stop();
Instance of Symbol 308 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mmm1.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm2.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm3.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm4.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm5.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm6.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm7.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm8.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm9.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm10.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
onClipEvent (enterFrame) {
if (_root.mmm11.hitTest(_root.santa)) {
_root.santa.gotoAndPlay("death");
}
}
Symbol 311 MovieClip Frame 10
_root.lives--;
Symbol 315 MovieClip Frame 30
_root.totalscore = _root.totalscore + 1;
Symbol 317 MovieClip Frame 30
_root.scores = _root.scores + 1;
Symbol 333 Button
on (release) {
gotoAndStop ("sm");
}
Symbol 341 MovieClip Frame 58
stop();