Frame 4
stop();
Frame 8
stop();
Frame 13
stop();
Frame 14
stopAllSounds();
Frame 23
stop();
Frame 24
stopAllSounds();
Frame 33
stop();
Frame 34
function KillMan() {
var _local1 = _root;
_local1.Moving = false;
_local1.Jumping = false;
_local1.Lives = _local1.Lives - 1;
if (_local1.Lives < 0) {
_local1.gotoAndPlay("End");
} else {
_local1.LivesMC.gotoAndStop(4 - _local1.Lives);
_local1.Man._x = _local1.Startx;
_local1.Man._y = _local1.Starty;
_local1.Man.gotoAndStop(1);
_local1.Panel._x = _local1.Man._x + 20;
_local1.Panel._y = _local1.Man._y - 70;
_local1.Panel._visible = true;
}
}
function JumpMan() {
var _local1 = _root;
_local1.Panel._visible = false;
_local1.Moving = false;
_local1.Startx = _local1.Man._x;
_local1.Starty = _local1.Man._y;
speed0 = ((_local1.Power / 2.5) + 6) + Math.random();
cosA = Math.cos((_local1.Alpha * Math.PI) / 180);
_l2 = Math.sin(((-_local1.Alpha) * Math.PI) / 180);
_local1.xVelocity = speed0 * cosA;
_local1.yVelocity = speed0 * _l2;
_local1.Man.play();
}
_root.RootDy = 0;
lx1 = [];
lx2 = [];
ly1 = [];
ly2 = [];
_root.BirdDepth = 6000;
_root.FlyEnemyDelay = 50;
_root.Lives = 3;
_root.Startx = _root.Man._x;
_root.Starty = _root.Man._y;
_root.Moving = false;
_root.Jumping = false;
_root.Power = 0;
_root.Alpha = 0;
_root.Gravity = 1.8;
xVelocity = 0;
xAccel = 0;
xPos = _root.Man._x;
k = 0.08;
x1 = _root.Man._x;
m = 0.9;
Decay = 0.8;
_root.Panel._x = _root.Man._x + 20;
_root.Panel._y = _root.Man._y - 70;
_root.Panel._visible = true;
Land._x = 106;
Land._y = 170;
Man._x = 162;
Man._y = 407;
MovieClip.prototype.InitLand = function (yspace) {
var _local2 = _root;
_local2.lx1.push(Math.floor(this._x));
_local2.lx2.push(Math.floor(this._x + this._width));
_local2.ly1.push(Math.floor((this._y + yspace) + _local2.RootDy));
_local2.ly2.push(Math.floor(((this._y + yspace) + this._height) + _local2.RootDy));
var _local1 = _local2.lx1.length - 1;
while (_local1 > 0) {
var temp1 = _local2.lx1[_local1];
var _local3 = _local2.lx1[_local1 - 1];
if (temp1 < _local3) {
_local2.lx1[_local1] = _local3;
_local2.lx1[_local1 - 1] = temp1;
var temp = _local2.lx2[_local1];
_local2.lx2[_local1] = _local2.lx2[_local1 - 1];
_local2.lx2[_local1 - 1] = temp;
var temp = _local2.ly1[_local1];
_local2.ly1[_local1] = _local2.ly1[_local1 - 1];
_local2.ly1[_local1 - 1] = temp;
var temp = _local2.ly2[_local1];
_local2.ly2[_local1] = _local2.ly2[_local1 - 1];
_local2.ly2[_local1 - 1] = temp;
} else {
return;
}
_local1--;
}
};
MovieClip.prototype.MoveScene = function () {
var _local1 = _root;
if ((_local1.Land._width - _local1.Land._x) > 300) {
_local1.Moving = true;
}
};
Instance of Symbol 194 MovieClip "Man" in Frame 34
onClipEvent (load) {
Downed = false;
Landed = false;
}
onClipEvent (enterFrame) {
if (_root.Moving == true) {
Dx = (this._x - _root.Startx) / 2;
this._x = this._x - Dx;
_root.Land._x = _root.Land._x - Dx;
if (this._x <= _root.Startx) {
this._x = _root.Startx;
_root.Moving = false;
_root.Startx = _root.Man._x;
_root.Starty = _root.Man._y;
_root.Panel._x = this._x + 20;
_root.Panel._y = this._y - 70;
_root.Panel._visible = true;
}
return(undefined);
}
if (_root.Jumping == false) {
return(undefined);
}
if (Landed == true) {
Landed = false;
_root.Jumping = false;
gotoAndPlay ("Land");
return(undefined);
}
_root.yVelocity = _root.yVelocity + _root.Gravity;
if ((_root.yVelocity > 0) && (Downed == false)) {
Downed = true;
play();
}
_x = (_x + _root.xVelocity);
_root.xVelocity = _root.xVelocity - _root.Gravity;
if (_root.xVelocity < 0) {
_root.xVelocity = 0;
}
_y = (_y + _root.yVelocity);
if ((_x > 550) || (_x < 0)) {
_root.Jumping = false;
this.gotoAndPlay("Fall");
}
if (_y > 450) {
_root.Jumping = false;
this.gotoAndPlay("Fall");
}
}
Instance of Symbol 211 MovieClip "KeyMC" in Frame 34
onClipEvent (mouseUp) {
_root.JumpMan();
}
Frame 38
stop();
Symbol 8 MovieClip [Bird2] Frame 1
if (random(2) == 0) {
_xscale = (30 + random(20));
_yscale = Math.abs(_xscale);
_x = -50;
Dx = (10 + random(5)) + (0.1 * random(20));
} else {
_xscale = (-(30 + random(20)));
_yscale = Math.abs(_xscale);
_x = 600;
Dx = -((10 + random(5)) + (0.1 * random(20)));
}
_y = (_root.Man._y - 26);
Symbol 8 MovieClip [Bird2] Frame 3
delete onEnterFrame;
_visible = true;
Hitted = false;
onEnterFrame = function () {
var _local1 = _root;
if ((Hitted == false) && (hitTest(_local1.Man))) {
Hitted = true;
_local1.Man.gotoAndPlay("Collide1");
} else {
_x = (_x + Dx);
if (Math.abs(_local1.Man._x - _x) > 600) {
removeMovieClip("");
}
}
};
stop();
Symbol 8 MovieClip [Bird2] Frame 5
delete onEnterFrame;
Symbol 8 MovieClip [Bird2] Frame 25
a._visible = false;
Symbol 8 MovieClip [Bird2] Frame 26
a._visible = true;
Symbol 8 MovieClip [Bird2] Frame 27
a._visible = false;
Symbol 8 MovieClip [Bird2] Frame 28
a._visible = true;
Symbol 8 MovieClip [Bird2] Frame 29
stop();
Symbol 40 MovieClip [Bird1] Frame 1
if (random(2) == 0) {
_xscale = (-(30 + random(20)));
_yscale = Math.abs(_xscale);
_x = -50;
Dx = (5 + random(5)) + (0.1 * random(20));
} else {
_xscale = (30 + random(20));
_yscale = Math.abs(_xscale);
_x = 600;
Dx = -((5 + random(5)) + (0.1 * random(20)));
}
_y = (_root.Man._y - 26);
Symbol 40 MovieClip [Bird1] Frame 3
delete onEnterFrame;
_visible = true;
Hitted = false;
onEnterFrame = function () {
var _local1 = _root;
if ((Hitted == false) && (hitTest(_local1.Man))) {
Hitted = true;
_local1.Man.gotoAndPlay("Collide2");
} else {
_x = (_x + Dx);
if (Math.abs(_local1.Man._x - _x) > 600) {
removeMovieClip("");
}
}
};
stop();
Symbol 40 MovieClip [Bird1] Frame 5
delete onEnterFrame;
Symbol 40 MovieClip [Bird1] Frame 25
a._visible = false;
Symbol 40 MovieClip [Bird1] Frame 26
a._visible = true;
Symbol 40 MovieClip [Bird1] Frame 27
a._visible = false;
Symbol 40 MovieClip [Bird1] Frame 28
a._visible = true;
Symbol 40 MovieClip [Bird1] Frame 29
stop();
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () {
var _local2 = _parent;
var _local1 = _local2.getBytesLoaded() / _local2.getBytesTotal();
loading_mc.bar_mc._width = Math.round(236 * _local1);
if (_local1 == 1) {
_local2.loadDone = true;
delete this.onEnterFrame;
}
};
Symbol 95 MovieClip Frame 25
if (!loadDone) {
gotoAndPlay (1);
} else {
_parent.play();
}
Symbol 106 Button
on (release) {
_root.gotoAndPlay("Start");
}
Symbol 109 Button
on (release) {
fscommand ("quit");
}
Symbol 112 Button
on (release) {
_root.gotoAndPlay("Help");
}
Symbol 127 MovieClip Frame 1
stopAllSounds();
Symbol 127 MovieClip Frame 2
stop();
Symbol 132 Button
on (release) {
_root.gotoAndPlay("Main");
}
Symbol 140 Button
on (release) {
_root.MusicMC.gotoAndPlay(1);
_root.gotoAndPlay("Start");
}
Symbol 142 Button
on (release) {
fscommand ("quit");
}
Symbol 143 MovieClip Frame 30
stop();
Symbol 147 Button
on (release) {
_root.MusicMC.gotoAndPlay(1);
_root.gotoAndPlay("Start");
}
Symbol 148 MovieClip Frame 40
stop();
Symbol 151 MovieClip Frame 1
StartTime = getTimer();
DelayTime = 60000;
this.onEnterFrame = function () {
if ((getTimer() - StartTime) > DelayTime) {
StartTime = getTimer();
play();
}
};
Symbol 151 MovieClip Frame 20
stop();
Symbol 151 MovieClip Frame 53
stop();
Symbol 151 MovieClip Frame 63
stop();
delete onEnterFrame;
Symbol 171 MovieClip Frame 1
_visible = false;
Hitted = false;
Symbol 171 MovieClip Frame 2
if (this.hitTest(_root.Man.Bottom)) {
if (Hitted == false) {
Bounds = getBounds(_root);
Hitted = true;
_root.Man.Landed = true;
_root.Man._y = Bounds.yMin;
}
} else {
Hitted = false;
}
Symbol 171 MovieClip Frame 3
gotoAndPlay (2);
Symbol 173 MovieClip Frame 1
_visible = false;
Hitted = false;
Symbol 173 MovieClip Frame 2
if ((Hitted == false) && (this.hitTest(_root.Man.Bottom))) {
Hitted = true;
_root.Man.gotoAndPlay("Win");
_parent.SanSam._visible = false;
}
Symbol 173 MovieClip Frame 3
gotoAndPlay (2);
Symbol 189 MovieClip Frame 1
_visible = false;
Symbol 194 MovieClip Frame 1
_root.Jumping = false;
stop();
Symbol 194 MovieClip Frame 5
_root.Jumping = true;
stop();
Symbol 194 MovieClip Frame 7
stop();
Symbol 194 MovieClip Frame 12
gotoAndStop (1);
_root.MoveScene();
Symbol 194 MovieClip Frame 17
stop();
_root.KillMan();
Symbol 194 MovieClip Frame 21
stop();
_root.KillMan();
Symbol 194 MovieClip Frame 25
stop();
_root.KillMan();
Symbol 194 MovieClip Frame 40
stop();
_root.Jumping = false;
_root.gotoAndPlay("Win");
Symbol 210 MovieClip Frame 1
this.onLoad = function () {
_visible = false;
this.swapDepths(9999);
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcrossf = 1;
oldercrossf = 1;
oldcrossfi = 1;
oldercrossf = 1;
};
this.onEnterFrame = function () {
var _local1 = _root;
ok = 1;
if (_visible) {
if (_xscale > 0) {
cross._x = _local1._xmouse - _x;
cross._y = _local1._ymouse - _y;
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt((cross._x * cross._x) + (cross._y * cross._y));
rot = 360 - ((Math.atan2(-cross._x, -cross._y) * 180) / 3.141593);
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * 3.141593) / 180);
cross._y = 100 * Math.sin(((rot - 90) * 3.141593) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(cross._x, 2) + Math.pow(cross._y, 2));
} else {
cross._x = _x - _local1._xmouse;
cross._y = _local1._ymouse - _y;
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = 360 - ((Math.atan2(-cross._x, -cross._y) * 180) / 3.141593);
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * 3.141593) / 180);
cross._y = 100 * Math.sin(((rot - 90) * 3.141593) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(cross._x, 2) + Math.pow(cross._y, 2));
}
pd = Math.floor(90 - (rot - 360));
pv = Math.floor(Math.min(dist, 100));
power._xscale = _xscale;
if (_xscale < 0) {
power._x = power.a._x;
pd = -pd;
} else {
power._x = 0;
}
power.deg = pd;
power.pow = pv;
_local1.Power = pv;
_local1.Alpha = pd;
}
};
Symbol 221 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
d = _root.FlyEnemyDelay + random(100);
Symbol 222 MovieClip Frame 2
d = d - 1;
Symbol 222 MovieClip Frame 3
if (d) {
prevFrame();
play();
} else {
if (random(10) < 5) {
attachMovie("Bird1", _root.FlyEnemy, _root.BirdDepth);
} else {
attachMovie("Bird2", _root.FlyEnemy, _root.BirdDepth);
}
_root.BirdDepth++;
if (_root.BirdDepth > 6100) {
_root.BirdDepth = 6000;
}
gotoAndPlay (1);
}