Frame 1 (8 B)
stop();
Instance of Symbol 2 MovieClip "preloader" in Frame 1 (212 B)
onClipEvent (enterFrame) {
if (_root._framesloaded >= _root._totalframes) {
_root.gotoAndPlay(2);
} else {
setProperty("_root.preloader", _xscale , (_root._framesloaded / _root._totalframes) * 100);
}
}
Frame 2 (8 B)
stop();
Frame 5 (69 B)
maxsize = 700;
maxheight = 700;
lscroll = false;
rscroll = false;
Frame 6 (8 B)
stop();
Instance of Symbol 54 MovieClip "Island1" in Frame 6 (398 B)
onClipEvent (enterFrame) {
if ((_root.lscroll == true) and (_root.Player1.hashit == false)) {
_x = (_x + 1);
}
if ((_root.rscroll == true) and (_root.Player1.hashit == false)) {
_x = (_x - 1);
}
if ((this._x < -50) and (_root.Player1.hashit == false)) {
_x = (_root.maxsize + 20);
}
if ((this._x > (_root.maxsize + 20)) and (_root.Player1.hashit == false)) {
_x = -50;
}
}
Instance of Symbol 54 MovieClip "Island1" in Frame 6 (398 B)
onClipEvent (enterFrame) {
if ((_root.lscroll == true) and (_root.Player1.hashit == false)) {
_x = (_x + 1);
}
if ((_root.rscroll == true) and (_root.Player1.hashit == false)) {
_x = (_x - 1);
}
if ((this._x < -50) and (_root.Player1.hashit == false)) {
_x = (_root.maxsize + 20);
}
if ((this._x > (_root.maxsize + 20)) and (_root.Player1.hashit == false)) {
_x = -50;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 60 MovieClip "midground1" in Frame 6 (364 B)
onClipEvent (enterFrame) {
if ((_root.lscroll == true) and (_root.Player1.hashit == false)) {
_x = (_x + 3);
}
if ((_root.rscroll == true) and (_root.Player1.hashit == false)) {
_x = (_x - 3);
}
if (this._x < -200) {
_x = (_root.maxsize + 100);
}
if ((this._x > (_root.maxsize + 100)) and (_root.Player1.hashit == false)) {
_x = -200;
}
}
Instance of Symbol 70 MovieClip "Splash1" in Frame 6 (292 B)
onClipEvent (load) {
this._visible = false;
firsthit = false;
}
onClipEvent (enterFrame) {
if (_root.Player1.hashit == true) {
this._visible = true;
_y = (_root.Player1._y - 40);
_x = _root.Player1._x;
if (firsthit == false) {
this.gotoAndPlay(2);
firsthit = true;
}
}
}
Instance of Symbol 76 MovieClip "Player1" in Frame 6 (4.31 KiB) ●
onClipEvent (load) {
Angle = 0;
VelMax = 50;
Vel = 20;
VelX = 0;
VelY = 0;
Thrust = 15;
stalled = false;
timer = 0;
hashit = false;
hookdown = false;
touchdown = false;
flipped = false;
}
onClipEvent (enterFrame) {
if (this.hook1.hitTest(_root.deck1) and (hookdown == true)) {
_x = finalpos;
_y = (_root.deck1 - 1);
touchdown = true;
Vel = 0;
VelX = 0;
VelY = 0;
}
if (Key.isDown(81) and (touchdown == true)) {
_root.gotoAndPlay(45);
}
if (Key.isDown(81) and (hashit == true)) {
_root.gotoAndPlay(45);
}
if (Key.isDown(32) and (touchdown == false)) {
this._yscale = this._yscale * -1;
if (flipped == false) {
flipped = true;
} else {
flipped = false;
}
}
if (Key.isDown(76) and (touchdown == false)) {
if (hookdown == false) {
hookdown = true;
this.gotoAndStop(30);
} else {
hookdown = false;
this.gotoAndStop(1);
}
}
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
this.gotoAndStop(1);
}
if ((Key.isDown(39) and (touchdown == false)) and (hashit == false)) {
if (Angle >= 360) {
Angle = 15;
} else {
Angle = Angle + 15;
}
this._rotation = Angle;
if (flipped == false) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
if ((Key.isDown(37) and (touchdown == false)) and (hashit == false)) {
this.gotoAndStop(2);
if (Angle <= 0) {
Angle = 345;
} else {
Angle = Angle - 15;
}
this._rotation = Angle;
if (flipped == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
if (Key.isDown(38) and (touchdown == false)) {
if (Thrust < 30) {
Thrust = Thrust + 5;
Vel = Thrust;
}
}
if (Key.isDown(40) and (touchdown == false)) {
if (Thrust > 0) {
Thrust = Thrust - 5;
Vel = Thrust;
}
}
if ((Angle < 330) and (Angle > 300)) {
Vel = Vel - 1;
} else if ((Angle <= 300) and (Angle > 240)) {
Vel = Vel - 2;
} else if ((Angle <= 240) and (Angle > 210)) {
Vel = Vel - 1;
} else if (Vel < Thrust) {
Vel = Vel + 1;
}
if (Vel > VelMax) {
Vel = VelMax;
} else if ((Angle < 75) and (Angle > 30)) {
Vel = Vel + 1;
} else if ((Angle >= 75) and (Angle < 120)) {
Vel = Vel + 2;
} else if ((Angle >= 120) and (Angle < 165)) {
Vel = Vel + 1;
} else if (Vel > Thrust) {
Vel = Vel - 1;
}
if (Vel < 0) {
Vel = 0;
}
radAngle = (Angle * 3.14) / 180;
VelX = Math.round(Math.cos(radAngle) * Vel);
VelY = Math.round(Math.sin(radAngle) * Vel);
if (touchdown == true) {
VelX = 0;
VelY = 0;
Vel = 0;
}
if ((this._x > (_root.maxsize - 200)) and (VelX > 0)) {
_root.rscroll = true;
_root.lscroll = false;
_x = _x;
} else if ((this._x >= (_root.maxsize - 200)) and (VelX <= 0)) {
_x = (_x + VelX);
_root.lscroll = false;
_root.rscroll = false;
} else if ((this._x <= (_root.maxsize - 200)) and (VelX >= 0)) {
_x = (_x + VelX);
_root.lscroll = false;
_root.rscroll = false;
} else if ((this._x <= 200) and (VelX <= 0)) {
_root.lscroll = true;
_root.rscroll = false;
_x = _x;
} else {
_x = (_x + VelX);
_root.lscroll = false;
_root.rscroll = false;
}
if (((Vel == 0) and (hashit == false)) and (touchdown == false)) {
timer = timer + 1;
if (timer == 1) {
this.gotoAndStop(10);
}
if (timer == 2) {
this.gotoAndStop(11);
}
if (timer == 3) {
this.gotoAndStop(12);
}
if (timer == 4) {
this.gotoAndStop(13);
}
if (timer >= 5) {
this.gotoAndStop(11);
}
if ((timer >= 3) and (timer <= 10)) {
VelY = VelY + 5;
} else {
VelY = VelY + 1;
}
if (timer > 10) {
Angle = 75;
this._rotation = Angle;
this.gotoAndStop(1);
}
} else if (hookdown == false) {
timer = 0;
} else {
timer = 0;
this.gotoAndStop(30);
}
_y = (_y + VelY);
if (this._x > _root.maxsize) {
_x = 0;
}
if (this._x < 0) {
_x = _root.maxsize;
}
if ((this._y > _root.maxheight) and (hashit == false)) {
_y = 0;
}
if (this._y <= 0) {
_y = 0;
}
if (hashit == false) {
finalpos = this._x;
}
if (this.hitTest(_root.ocean)) {
_x = finalpos;
_y = _root.maxheight;
Vel = 0;
VelY = 0;
VelX = 0;
Thrust = 0;
hashit = true;
this._visible = false;
}
if (this.hitTest(_root.deck1) and (touchdown == false)) {
if (VelX > 0) {
Angle = 345;
this._rotation = Angle;
} else {
Angle = 195;
this._rotation = Angle;
}
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 58 MovieClip "dots1" in Frame 6 (280 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -20) {
_x = (_root.maxsize + 20);
}
if (this._x > (_root.maxsize + 20)) {
_x = -20;
}
}
Instance of Symbol 80 MovieClip "deck1" in Frame 6 (284 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -300) {
_x = (_root.maxsize + 300);
}
if (this._x > (_root.maxsize + 300)) {
_x = -300;
}
}
Instance of Symbol 83 MovieClip in Frame 6 (139 B)
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.Player1.hashit == true) {
this._visible = true;
}
}
Instance of Symbol 85 MovieClip in Frame 6 (142 B)
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.Player1.touchdown == true) {
this._visible = true;
}
}
Frame 10 (8 B)
stop();
Instance of Symbol 80 MovieClip "deck1" in Frame 30 (284 B)
onClipEvent (enterFrame) {
if (_root.lscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (_root.rscroll == true) {
_x = (_x - _root.Player1.VelX);
}
if (this._x < -300) {
_x = (_root.maxsize + 300);
}
if (this._x > (_root.maxsize + 300)) {
_x = -300;
}
}
Frame 60 (17 B)
gotoAndPlay (5);
Symbol 8 Button (35 B)
on (release) {
gotoAndPlay (45);
}
Symbol 9 Button (35 B)
on (release) {
gotoAndPlay (10);
}
Symbol 70 MovieClip Frame 1 (8 B)
stop();
Symbol 70 MovieClip Frame 8 (8 B)
stop();
Symbol 76 MovieClip Frame 1 (8 B)
stop();
Symbol 76 MovieClip Frame 20 (8 B)
stop();
Symbol 76 MovieClip Frame 30 (8 B)
stop();