Frame 1
stop();
Frame 2
stop();
Instance of Symbol 10 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.main.hitTest(_root.turt)) {
_alpha = 0;
} else {
_alpha = 40;
}
}
Instance of Symbol 15 MovieClip "turt" in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.main) && (Key.isDown(40))) {
_root.nextFrame();
}
}
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.main.hitTest(_root.turt)) {
_alpha = 40;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
_x = _root.main._x;
_y = (_root.main._y - 70);
}
Instance of Symbol 20 MovieClip "rg" in Frame 2
onClipEvent (enterFrame) {
_alpha = 0;
}
onClipEvent (enterFrame) {
hit = false;
for (i in _root.feet.perimeter) {
point = new Object();
point.x = _root.feet.perimeter[i]._x;
point.y = _root.feet.perimeter[i]._y;
_root.feet.localToGlobal(point);
if (this.hitTest(point.x, point.y, true)) {
hit = true;
}
if (this.hitTest(_root.feet._x, _root.feet._y, true)) {
_root.feet._y = _root.feet._y - 1;
}
}
if (hit) {
_root.feet.land = true;
} else {
_root.feet.land = false;
}
if (hit && (Key.isDown(38))) {
_root.feet.land = false;
_root.feet.fall = _root.feet.fall - 8;
}
}
Instance of Symbol 23 MovieClip "main" in Frame 2
onClipEvent (load) {
may = 5;
}
onClipEvent (enterFrame) {
this._x = _root.feet._x;
this._y = _root.feet._y;
}
onClipEvent (enterFrame) {
if (_root.feet.dead) {
gotoAndStop (4);
} else if (_root.feet.land) {
gotoAndStop (2);
may = 8;
} else if (may <= 1) {
this.gotoAndStop(1);
} else if (may >= 0) {
gotoAndStop (2);
may--;
}
}
Instance of Symbol 28 MovieClip "feet" in Frame 2
onClipEvent (load) {
land = false;
fall = 0;
speed = 0.3;
dcel = 1.1;
maxAcel = 8;
}
onClipEvent (enterFrame) {
if (land) {
fall = 0;
} else {
fall = fall + 0.4;
_y = (_y + fall);
}
}
onClipEvent (enterFrame) {
if (dead) {
_y = _y;
} else {
if (acel > maxAcel) {
acel = maxAcel;
}
if (acel < (-maxAcel)) {
acel = -maxAcel;
}
}
}
onClipEvent (enterFrame) {
if (dead) {
_x = _x;
} else {
this._x = this._x + acel;
if (Key.isDown(39)) {
acel = acel + speed;
} else if (Key.isDown(37)) {
acel = acel - speed;
} else {
acel = acel / dcel;
if (Math.abs(acel) <= 0.01) {
acel = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_y > 600) {
fall = 0;
acel = 0;
_x = 530;
_y = 340;
}
}
onClipEvent (enterFrame) {
if (fall < -8) {
fall = -8;
}
}
Instance of Symbol 23 MovieClip "main" in Frame 4
onClipEvent (load) {
may = 5;
}
onClipEvent (enterFrame) {
this._x = _root.feet._x;
this._y = _root.feet._y;
}
onClipEvent (enterFrame) {
if (_root.feet.dead) {
gotoAndStop (4);
} else if (_root.feet.land) {
gotoAndStop (2);
may = 8;
} else if (may <= 1) {
this.gotoAndStop(1);
} else if (may >= 0) {
gotoAndStop (2);
may--;
}
}
Instance of Symbol 28 MovieClip "feet" in Frame 4
onClipEvent (load) {
land = false;
fall = 0;
speed = 0.3;
dcel = 1.1;
maxAcel = 8;
}
onClipEvent (enterFrame) {
if (land) {
fall = 0;
} else {
fall = fall + 0.4;
_y = (_y + fall);
}
}
onClipEvent (enterFrame) {
if (dead) {
_y = _y;
} else {
if (acel > maxAcel) {
acel = maxAcel;
}
if (acel < (-maxAcel)) {
acel = -maxAcel;
}
}
}
onClipEvent (enterFrame) {
if (dead) {
_x = _x;
} else {
this._x = this._x + acel;
if (Key.isDown(39)) {
acel = acel + speed;
} else if (Key.isDown(37)) {
acel = acel - speed;
} else {
acel = acel / dcel;
if (Math.abs(acel) <= 0.01) {
acel = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_y > 600) {
fall = 0;
acel = 0;
_x = 530;
_y = 340;
}
}
onClipEvent (enterFrame) {
if (fall < -8) {
fall = -8;
}
}
Instance of Symbol 50 MovieClip "rg" in Frame 4
onClipEvent (enterFrame) {
_alpha = 0;
}
onClipEvent (enterFrame) {
hit = false;
for (i in _root.feet.perimeter) {
point = new Object();
point.x = _root.feet.perimeter[i]._x;
point.y = _root.feet.perimeter[i]._y;
_root.feet.localToGlobal(point);
if (this.hitTest(point.x, point.y, true)) {
hit = true;
}
if (this.hitTest(_root.feet._x, _root.feet._y, true)) {
_root.feet._y = _root.feet._y - 1;
}
}
if (hit) {
_root.feet.land = true;
} else {
_root.feet.land = false;
}
if (hit && (Key.isDown(38))) {
_root.feet.land = false;
_root.feet.fall = _root.feet.fall - 8;
}
}
Symbol 5 Button
on (release) {
_root.play();
}
Symbol 23 MovieClip Frame 1
stop();
Instance of Symbol 22 MovieClip in Symbol 23 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + _root.feet.acel);
}
Symbol 46 MovieClip Frame 220
_root.nextFrame();
Symbol 53 MovieClip Frame 1
k = 0;
while (k < 50) {
duplicateMovieClip (this.snow, "snow" + k, k);
k++;
}
Instance of Symbol 52 MovieClip "snow" in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
movieWidth = 550;
movieHeight = 400;
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;
}
}