Frame 1
stop();
stop();
this.onEnterFrame = function () {
fLoaded = Math.round(_root.getBytesLoaded());
fTotal = Math.round(_root.getBytesTotal());
fPercent = fLoaded / fTotal;
preloader.fBar._width = fPercent * 200;
preloader.fText.text = Math.round(fPercent * 100) + "%";
if (fLoaded >= fTotal) {
this.onEnterFrame = null;
preloader._visible = false;
logo._visible = true;
logo.gotoAndStop(2);
}
};
ver = $version;
var alsnd = new Sound();
_root.sfx = true;
_root.musfx = true;
stop();
fscommand ("showMenu", false);
Frame 10
stop();
Instance of Symbol 514 MovieClip in Frame 10
on (release) {
getURL ("http://www.flonga.com/", "_blank");
}
Frame 20
stop();
var gameLevel = 3;
var currentlevel = 1;
var gamescore1 = 0;
var levelscore = 1500;
var dieCount = 0;
var sndon = true;
Instance of Symbol 564 MovieClip "pops" in Frame 29
onClipEvent (load) {
_root.inst = "gameplay1";
this.pop.gotoAndStop(5);
}
Frame 30
function getAngle(param) {
var _local1;
_local1 = param;
if (_local1 <= 0) {
_local1 = _local1 + 360;
}
_local1 = 360 - _local1;
return(_local1);
}
function deccelerate() {
if (velocity > (terminal_velocity + currentboostAmount)) {
velocity = terminal_velocity + currentboostAmount;
}
if (velocity >= min_velocity) {
velocity = velocity - friction;
}
if (velocity < min_velocity) {
velocity = min_velocity;
}
}
function checkDeath1() {
_root.updateFuel();
if (_root.ready && (Math.floor(this.y) > (_root.fgMC.height - 70))) {
_root.playerDies();
}
}
function fireani() {
i++;
var _local2 = fire.duplicateMovieClip("fire" + i, 10 + i);
var _local3 = new Sound();
_local3.attachSound("hellfire");
_local3.start();
_local2._x = random(700) + 100;
_local2._y = -10;
var _local5 = random(5);
if (_local5 == 0) {
_local3.setVolume(100);
_local2._xscale = 100;
_local2._yscale = 100;
} else {
_local3.setVolume(80);
_local2._xscale = 50;
_local2._yscale = 50;
}
_local2.onEnterFrame = function () {
if (this.hit.hitTest(plane.hit)) {
if (this._xscale == 100) {
gameflag = true;
life1 = 0;
} else {
var _local2 = new Sound();
_local2.attachSound("effect");
_local2.start();
life1 = life1 + 1;
plane["fire" + life1]._visible = true;
if (life1 == 5) {
gameflag = true;
}
this.gotoAndPlay(2);
}
}
this._y = this._y + 8;
if (offsetX >= 0) {
this._x = this._x - (offsetX / 2);
} else {
this._x = this._x - ((-offsetX) / 2);
}
if (this._y > 470) {
this.gotoAndPlay(2);
this.onEnterFrame = null;
}
if (gameflag) {
this.unloadMovie();
this.onEnterFrame = null;
}
};
}
function tim() {
if (!timer_starts) {
sec--;
if (sec < 10) {
sec = "0" + sec;
}
if (sec == 0) {
trace("Interval changed");
sec = 59;
mi--;
if (mi == -1) {
space.gameover = true;
space.gameOn = false;
space.gotoAndPlay(2);
clearInterval(timer_id1);
timer.text = "00:00";
}
}
if ((mi == 0) && (hr == 0)) {
timer.text = "00:" + sec;
} else if (mi == 0) {
timer.text = "00:" + sec;
} else if (hr == 0) {
timer.text = (mi + ":") + sec;
} else {
timer.text = (mi + ":") + sec;
}
}
}
stop();
fscommand ("allowscale", false);
fscommand ("trapallkeys", true);
var wait = false;
var currentRotation = 0;
var velocity = 4;
var acc = 2;
var offsetX = 0;
var offsetY = 0;
var braking_speed = 4;
var min_velocity = 7;
var cloudEffect = false;
var terminal_velocity = 18;
var currentboostAmount = 0;
var maxboost = 10;
var friction = 1;
var setint;
var life1 = 0;
this.onEnterFrame = function () {
if (_root.musfx && (_root.sfx)) {
_root.alsnd.setVolume(100);
} else {
_root.alsnd.setVolume(0);
}
if (!_root.wait) {
for (var _local4 in worldMC.levelupper) {
if (plane.hit.hitTest(worldMC.levelupper[_local4].hit)) {
var _local3 = worldMC.levelupper[_local4];
worldMC.levelupper[_local4].gotoAndStop(2);
life1 = 0;
gameflag = true;
}
}
curx = worldMC._x * -1;
if (curx < (worldMC._width - 1000)) {
if (worldMC._x < 0) {
worldMC._x = worldMC._x - offsetX;
} else {
worldMC._x = -10;
}
if (worldMC._y > 500) {
if (plane.down || (plane.up)) {
worldMC._y = worldMC._y - (-offsetY);
} else {
worldMC._y = worldMC._y - (-offsetY);
}
} else {
worldMC._y = 502;
}
if ((bg._y > 500) && (bg._y < 1300)) {
if (plane.down || (plane.up)) {
bg._y = bg._y + offsetY;
sky._y = sky._y + offsetY;
} else {
bg._y = bg._y + offsetY;
sky._y = sky._y + offsetY;
}
} else if (bg._y < 550) {
bg._y = 502;
sky._y = 502;
} else if (bg._y > 1000) {
bg._y = 1298;
sky._y = 1298;
}
} else {
clearInterval(setint);
this.onEnterFrame = null;
}
}
if (gameflag) {
clearInterval(timer_id1);
clearInterval(setint);
plane.gotoAndStop("dead");
lev2.stop();
_root.wait = true;
_root.createEmptyMovieClip("emp", _root.getNextHighestDepth());
emp._x = Stage.width / 2;
emp._y = Stage.height / 2;
var emp = emp.attachMovie("popup1", "popup", 1);
emp.gotoAndStop("die");
this.onEnterFrame = null;
}
if (plane.hitTest(worldMC.lasthit1) && (!gameflag)) {
worldMC._y = 744;
}
if (plane.hitTest(worldMC.lasthit) && (!gameflag)) {
plane._visible = false;
worldMC._y = 744;
worldMC.lasthit._visible = false;
worldMC.plane.gotoAndPlay(2);
worldMC.plane._visible = true;
clearInterval(setint);
_root.wait = true;
}
if (_root.wait && (!gameflag)) {
cnt++;
clearInterval(timer_id1);
worldMC._x = worldMC._x - 20;
if (cnt > 60) {
lev2.stop();
this.onEnterFrame = null;
_root.gotoAndStop("level3");
}
}
if (plane._y > 320) {
gameflag = true;
}
};
var cnt = 0;
var i = 0;
var gameflag = false;
fireani();
setint = setInterval(fireani, 3500);
var lev2 = new Sound();
lev2.attachSound("bg_snd2");
lev2.start();
lev2.onSoundComplete = function () {
lev2.start();
};
if ((((!_root.musfx) && (!_root.sfx)) || ((!_root.musfx) && (_root.sfx))) || (_root.musfx && (!_root.sfx))) {
music.gotoAndStop(2);
_root.alsnd.setVolume(0);
} else {
music.gotoAndStop(1);
_root.musfx = true;
_root.sfx = true;
_root.alsnd.setVolume(100);
}
music.onRelease = function () {
if (this._currentframe == 1) {
_root.musfx = false;
_root.sfx = false;
_root.alsnd.setVolume(0);
this.gotoAndStop(2);
} else {
_root.musfx = true;
_root.sfx = true;
_root.alsnd.setVolume(100);
this.gotoAndStop(1);
}
};
reset_btn.onRelease = function () {
clearInterval(setint);
clearInterval(timer_id1);
lev2.stop();
this.onEnterFrame = null;
nextFrame();
};
var timer_starts;
timer_starts = false;
var mi = 2;
var hr = 0;
var sec = 30;
timer_id1 = setInterval(tim, 1000);
Instance of Symbol 761 MovieClip "plane" in Frame 30
onClipEvent (load) {
var moving = false;
var unmoving = false;
var boosting = false;
var up = false;
var down = false;
left = false;
right = false;
var Ang = 0;
plane = {x:_x, y:_y};
shipspeed = 4;
shipspeed1 = 6;
leftBoundry = 100;
rightBoundry = 560;
topBoundry = 60;
bottomBoundry = 360;
gravity = 0.3;
}
onClipEvent (keyUp) {
if (!_root.gameflag) {
param = Key.getCode();
switch (param) {
case 40 :
down = false;
break;
case 38 :
up = false;
break;
case 39 :
left = false;
break;
case 37 :
right = false;
break;
case 32 :
boosting = false;
break;
default :
break;
}
}
}
onClipEvent (keyDown) {
if (!_root.gameflag) {
param = Key.getCode();
switch (param) {
case 40 :
down = true;
up = false;
break;
case 38 :
up = true;
down = false;
break;
case 39 :
left = true;
right = false;
moving = true;
break;
case 37 :
right = true;
left = false;
moving = true;
break;
case 32 :
if (!boosting) {
boosting = false;
break;
}
default :
break;
}
}
}
onClipEvent (enterFrame) {
if (!_root.wait) {
if (!_root.gameflag) {
} else {
if (up || (down)) {
_root.velocity = 1;
}
boosting = false;
up = false;
down = false;
moving = false;
_root.velocity = _root.velocity + 2;
if ((Ang > 90) && (Ang < 240)) {
_root.currentRotation = _root.currentRotation - 5;
} else if ((Ang < 90) || (Ang > 290)) {
_root.currentRotation = _root.currentRotation + 5;
}
}
if (left) {
plane.x = plane.x + shipspeed;
}
if (right) {
plane.x = plane.x - (shipspeed * 1.2);
}
dX = (plane.x - _x) * 0.2;
_x = (_x + dX);
if (_x < leftBoundry) {
_x = leftBoundry;
ship.x = leftBoundry;
} else if (rightBoundry < _x) {
_x = rightBoundry;
ship.x = rightBoundry;
}
_root.deccelerate();
if (down) {
plane.y = plane.y + (shipspeed1 * 0.3);
}
if (up) {
plane.y = plane.y - (shipspeed1 * 0.3);
} else {
plane.y = plane.y + (shipspeed1 * 0.3);
}
dY = (plane.y - _y) * 0.2;
_y = (_y + dY);
if (_y < topBoundry) {
_y = topBoundry;
plane.y = topBoundry;
} else if (bottomBoundry < _y) {
_y = bottomBoundry;
plane.y = bottomBoundry;
}
tilt = (plane.y - _y) * 1.52;
_rotation = tilt;
var angles = (tilt * 4);
if (angles <= 0) {
angles = angles + 360;
}
angles = 360 - angles;
_root.offsetY = Math.round(Math.sin(angles * (Math.PI/180)) * _root.velocity);
_root.offsetX = Math.round(Math.cos(angles * (Math.PI/180)) * _root.velocity);
if ((Ang >= 240) && (Ang < 255)) {
gotoAndStop ("r5");
} else if ((Ang >= 255) && (Ang < 265)) {
gotoAndStop ("r4");
} else if ((Ang >= 265) && (Ang < 275)) {
gotoAndStop ("r3");
} else if ((Ang >= 275) && (Ang < 285)) {
gotoAndStop ("r2");
} else if ((Ang >= 285) && (Ang < 305)) {
gotoAndStop ("r1");
} else if ((Ang > 105) && (Ang <= 120)) {
gotoAndStop ("r5");
} else if ((Ang > 95) && (Ang <= 105)) {
gotoAndStop ("r4");
} else if ((Ang > 85) && (Ang <= 95)) {
gotoAndStop ("r3");
} else if ((Ang > 75) && (Ang <= 85)) {
gotoAndStop ("r2");
} else if ((Ang > 60) && (Ang <= 75)) {
gotoAndStop ("r1");
} else if ((Ang > 90) && (Ang < 280)) {
gotoAndStop ("backward");
} else {
gotoAndStop ("forward");
}
}
}
Instance of Symbol 527 MovieClip "music" in Frame 30
/* no clip actions */
Instance of Symbol 530 MovieClip "reset_btn" in Frame 30
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Frame 31
play();
Frame 32
play();
Frame 34
gotoAndStop ("level2");
Instance of Symbol 564 MovieClip "pops" in Frame 39
onClipEvent (load) {
_root.inst = "gameplay2";
this.pop.gotoAndStop(6);
}
Frame 40
function tim() {
if (!timer_starts) {
sec--;
if (sec < 10) {
sec = "0" + sec;
}
if (sec == 0) {
trace("Interval changed");
sec = 59;
mi--;
if (mi == -1) {
space.gameover = true;
space.gameOn = false;
space.gotoAndPlay(2);
clearInterval(timer_id);
timer.text = "00:00";
}
}
if ((mi == 0) && (hr == 0)) {
timer.text = "00:" + sec;
} else if (mi == 0) {
timer.text = "00:" + sec;
} else if (hr == 0) {
timer.text = (mi + ":") + sec;
} else {
timer.text = (mi + ":") + sec;
}
}
}
var sndbg = new Sound();
sndbg.attachSound("bgsnd3");
sndbg.start();
sndbg.onSoundComplete = function () {
sndbg.start();
};
if ((((!_root.musfx) && (!_root.sfx)) || ((!_root.musfx) && (_root.sfx))) || (_root.musfx && (!_root.sfx))) {
music.gotoAndStop(2);
_root.alsnd.setVolume(0);
} else {
music.gotoAndStop(1);
_root.musfx = true;
_root.sfx = true;
_root.alsnd.setVolume(100);
}
music.onRelease = function () {
if (this._currentframe == 1) {
_root.musfx = false;
_root.sfx = false;
_root.alsnd.setVolume(0);
this.gotoAndStop(2);
} else {
_root.musfx = true;
_root.sfx = true;
_root.alsnd.setVolume(100);
this.gotoAndStop(1);
}
};
reset_btn.onRelease = function () {
clearInterval(timer_id);
nextFrame();
};
var timer_starts;
timer_starts = false;
var mi = 3;
var hr = 0;
var sec = 59;
timer_id = setInterval(tim, 1000);
Instance of Symbol 1015 MovieClip "space" in Frame 40
onClipEvent (enterFrame) {
if (gameOn) {
controlship();
if (this.hitTest(_root.bg.lasthit)) {
gameOn = false;
_root.sndbg.stop();
trace("------hit--------");
_root.createEmptyMovieClip("emp", _root.getNextHighestDepth());
_root.emp._x = Stage.width / 2;
_root.emp._y = Stage.height / 2;
var emp = _root.emp.attachMovie("popup1", "popup", 1);
emp.gotoAndStop("congrats");
}
}
if (gameover && (!gameOn)) {
_root.timer_starts = true;
cnt++;
if (cnt > 6) {
gameover = false;
_root.createEmptyMovieClip("emp", _root.getNextHighestDepth());
_root.emp._x = Stage.width / 2;
_root.emp._y = Stage.height / 2;
var emp1 = _root.emp.attachMovie("popup1", "popup", 1);
emp1.gotoAndStop("die");
}
}
}
onClipEvent (load) {
function shipcontrol() {
if (Key.isDown(39) && (!hitWall)) {
ship.x = ship.x + (shipspeed * 1.2);
_root.bg._x = _root.bg._x - 4;
_root.bg1._x = _root.bg1._x - 4;
} else if (Key.isDown(37)) {
ship.x = ship.x - shipspeed;
}
if (Key.isDown(38) && (!hitWall)) {
ship.y = ship.y - (shipspeed * 0.2);
} else if (Key.isDown(40)) {
ship.y = ship.y + (shipspeed * 0.2);
} else {
ship.y = ship.y + (shipspeed * 0.2);
}
dX = (ship.x - _x) * 0.2;
dY = (ship.y - _y) * 0.2;
_y = (_y + dY);
_x = (_x + dX);
if (_x < leftBoundry) {
_x = leftBoundry;
ship.x = leftBoundry;
} else if (rightBoundry < _x) {
_x = rightBoundry;
ship.x = rightBoundry;
}
if (_y < topBoundry) {
_y = topBoundry;
ship.y = topBoundry;
} else if (bottomBoundry < _y) {
_y = bottomBoundry;
ship.y = bottomBoundry;
}
tilt = (ship.y - _y) * 1.52;
_rotation = tilt;
var _local2 = tilt * 2;
if (_local2 <= 0) {
_local2 = _local2 + 360;
}
_local2 = 360 - _local2;
_root.offsetY = Math.round(Math.sin(_local2 * (Math.PI/180)) * shipspeed);
_root.offsetX = Math.round(Math.cos(_local2 * (Math.PI/180)) * shipspeed1);
_root.bg._x = _root.bg._x - shipspeed1;
_root.bg1._x = _root.bg1._x - shipspeed1;
_root.bg._y = _root.bg._y - (_root.offsetY * -1.2);
_root.bg1._y = _root.bg1._y - (_root.offsetY * -1.2);
if (_root.bg._y < 420) {
_root.bg._y = 420;
_root.bg1._y = 420;
} else if (_root.bg._y > 680) {
_root.bg._y = 680;
_root.bg1._y = 680;
}
}
function hits(mc) {
for (i in this.perim) {
this.perim.localToGlobal((p = {x:this.perim[i]._x, y:this.perim[i]._y}));
if (mc.hitTest(p.x, p.y, true)) {
_root.sndbg.stop();
var _local3 = new Sound();
_local3.attachSound("shipblast");
if (_root.sfx) {
_local3.start();
}
gameover = true;
gameOn = false;
gotoAndPlay (2);
return(true);
}
}
}
function hits1(mc) {
for (i in this.perim) {
this.perim.localToGlobal((p = {x:this.perim[i]._x, y:this.perim[i]._y}));
if (mc.hitTest(p.x, p.y, true)) {
return(true);
}
}
}
function hits2(mc) {
for (i in this.perim) {
this.perim.localToGlobal((p = {x:this.perim[i]._x, y:this.perim[i]._y}));
if (mc.hitTest(p.x, p.y, true)) {
_y = (_y - dY);
_x = (_x - dX);
}
}
}
this._x = 179.3;
this._y = 188.45;
var cnt = 0;
gameover = false;
gameOn = true;
originalX = _x;
originalY = _y;
leftBoundry = 200;
rightBoundry = 560;
topBoundry = 170;
bottomBoundry = 360;
ship = {x:_x, y:_y};
shipspeed1 = 3;
shipspeed = 5;
controlship = shipcontrol;
}
Instance of Symbol 527 MovieClip "music" in Frame 40
/* no clip actions */
Instance of Symbol 530 MovieClip "reset_btn" in Frame 40
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
fscommand ("quit");
}
Frame 41
clearInterval(timer_id);
gotoAndStop ("level3");
Symbol 16 MovieClip [bg] Frame 1
#initclip 12
Object.registerClass("bg", com.UI.Game);
#endinitclip
Instance of Symbol 15 MovieClip "hitspace" in Symbol 16 MovieClip [bg] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 25 MovieClip Frame 40
stop();
if (_root._currentframe == 30) {
_root.gotoAndStop("level2");
_root.emp.removeMovieClip();
} else if (_root._currentframe == 40) {
_root.nextFrame();
_root.emp.removeMovieClip();
} else {
_root.gamescore = _root.gamescore - _root.levelscore;
_root.game.gotoAndPlay(2);
_parent._parent.removeMovieClip();
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 10
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 10
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 10
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 10
stop();
Instance of Symbol 37 MovieClip in Symbol 44 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.dieCount = 0;
_root.gamescore1 = 0;
_root.currentlevel = 1;
_root.game.gotoAndPlay(2);
_parent._parent.removeMovieClip();
}
Instance of Symbol 39 MovieClip in Symbol 44 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
fscommand ("quit");
}
Instance of Symbol 42 MovieClip in Symbol 44 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
getURL ("http://www.animantz.com/games/products.html", "_blank");
}
Symbol 44 MovieClip Frame 60
stop();
Symbol 45 MovieClip Frame 39
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 10
stop();
Instance of Symbol 47 MovieClip in Symbol 52 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.inst = "gameplay1";
_root.gotoAndStop("level2");
_parent._parent.removeMovieClip();
}
Instance of Symbol 39 MovieClip in Symbol 52 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
fscommand ("quit");
}
Instance of Symbol 42 MovieClip in Symbol 52 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
getURL ("http://www.animantz.com", "_blank");
}
Symbol 53 MovieClip Frame 39
stop();
Symbol 75 MovieClip Frame 1
stop();
gotoAndStop(_root.currentlevel);
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 90
stop();
Symbol 85 MovieClip Frame 81
_parent.gotoAndStop("die");
Symbol 86 MovieClip [popup] Frame 1
stop();
Symbol 86 MovieClip [popup] Frame 8
stop();
Instance of Symbol 20 MovieClip in Symbol 86 MovieClip [popup] Frame 8
on (release, keyPress "<Space>") {
_parent._parent.pauseOn = false;
_parent.removeMovieClip();
}
Symbol 86 MovieClip [popup] Frame 14
stop();
Symbol 86 MovieClip [popup] Frame 20
stop();
Symbol 86 MovieClip [popup] Frame 27
stop();
Symbol 86 MovieClip [popup] Frame 33
stop();
Symbol 86 MovieClip [popup] Frame 39
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 10
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 10
stop();
Instance of Symbol 94 MovieClip in Symbol 97 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
if (_root._currentframe == 30) {
_root.gotoAndStop("level3");
} else {
_root.gotoAndStop("start");
}
_root.emp.removeMovieClip();
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
getURL ("http://www.animantz.com/games/products.html", "_blank");
}
Symbol 97 MovieClip Frame 60
stop();
Symbol 98 MovieClip Frame 39
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 10
stop();
Instance of Symbol 99 MovieClip in Symbol 103 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.inst = "gameplay2";
_root.gotoAndStop("level3");
_root.emp.removeMovieClip();
}
Instance of Symbol 100 MovieClip in Symbol 103 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
fscommand ("quit");
}
Instance of Symbol 96 MovieClip in Symbol 103 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
getURL ("http://www.animantz.com", "_blank");
}
Symbol 104 MovieClip Frame 39
stop();
Symbol 105 MovieClip [popup1] Frame 1
stop();
Symbol 105 MovieClip [popup1] Frame 8
stop();
Instance of Symbol 89 MovieClip in Symbol 105 MovieClip [popup1] Frame 8
on (release, keyPress "<Space>") {
_parent._parent.pauseOn = false;
_parent.removeMovieClip();
}
Symbol 105 MovieClip [popup1] Frame 14
stop();
Symbol 105 MovieClip [popup1] Frame 20
stop();
Symbol 105 MovieClip [popup1] Frame 27
stop();
Symbol 108 Button
on (release) {
getURL ("http://www.flonga.com/", "_blank");
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 13
stop();
Symbol 120 MovieClip Frame 23
gotoAndStop ("turnhead_stop");
Symbol 131 MovieClip Frame 1
function doNormal() {
this.gotoAndPlay("normal");
}
function doFly() {
this.gotoAndPlay("flying_start");
}
function doEndFly() {
this.gotoAndPlay("flying_end");
}
function doTurnhead() {
this.fbHead.gotoAndPlay("turnhead");
}
function doWink() {
this.fbHead.gotoAndPlay("wink_start");
}
function doNormalHead() {
this.fbHead.gotoAndPlay("normal");
}
Symbol 131 MovieClip Frame 76
gotoAndPlay ("normal");
Symbol 131 MovieClip Frame 89
gotoAndPlay ("flying");
Symbol 131 MovieClip Frame 100
gotoAndPlay ("normal");
Symbol 137 MovieClip Frame 30
flobot.doFly();
Symbol 137 MovieClip Frame 63
flobot.doEndFly();
Symbol 137 MovieClip Frame 73
flobot.doTurnhead();
Symbol 137 MovieClip Frame 93
flobot.doWink();
Symbol 137 MovieClip Frame 201
flobot.doWink();
Symbol 137 MovieClip Frame 285
stop();
_root.gotoAndStop("start");
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 1022 MovieClip [__Packages.com.UI.Game] Frame 0
class com.UI.Game extends MovieClip
{
static var m_instance;
var inPostGame, m_pauseOn, hitcount, speedboolean, snd, display, m_level, attachMovie, _parent, m_pEngine, endposition, stopid, totaldis, seconds, minutes, m_car, inProcess, score, scen, xdis, bodyCrash, speedsec, onEnterFrame, _scrPause;
function Game () {
super();
m_instance = this;
}
function set pauseOn(pauseState) {
if (inPostGame) {
return;
}
m_pauseOn = pauseState;
enableProcess(!m_pauseOn);
//return(pauseOn);
}
function get pauseOn() {
return(m_pauseOn);
}
function onLoad() {
init();
pauseOn = (false);
}
function init() {
_root.levelscore = 0;
_root.bonusscore = 0;
hitcount = 0;
speedboolean = false;
snd = new com.sound.Sounds(String("bgsnd" + _root.currentlevel), false);
display = 120;
m_level = attachMovie("level" + _root.currentlevel, "_Level", 1001);
m_level.mcHit._alpha = 0;
_parent.scorepanel.innerscorepanel.gotoAndStop(_root.currentlevel);
_parent.b.scen.gotoAndStop(_root.currentlevel);
m_pEngine = new com.ACA.DynamicsEngine(m_level.mcHit, 5);
endposition = m_level._width;
newRace();
stopid = setInterval(this, "timerfts", 1000);
totaldis = Math.sqrt(endposition + m_level._x) - distArray[_root.currentlevel];
}
function TimeStr(sec) {
var _local3;
var _local4;
if (sec.toString().indexOf(".") > -1) {
seconds = sec.toString().substr(0, sec.toString().lastIndexOf("."));
} else {
seconds = sec;
}
minutes = 0;
while ((seconds >= 60) && (!isNaN(seconds))) {
seconds = seconds - 60;
minutes++;
}
_local3 = ((seconds < 10) ? "0" : "") + seconds;
_local4 = ((minutes < 10) ? "0" : "") + minutes;
return((_local4 + ":") + _local3);
}
function timerfts() {
display--;
_parent.scorepanel.timer.text = TimeStr(display);
if (display == 0) {
clearInterval(stopid);
var _local2 = m_car.getHitForBonus();
if (_local2.hitTest(m_level.end)) {
if (inProcess) {
levelupORcongfts();
}
} else {
diefts();
}
}
}
function newRace() {
_root.currentOn = false;
inPostGame = false;
inProcess = true;
score = 0;
updatescore(0);
scen._x = 0;
scen._y = 0;
m_pEngine.clear();
m_car = new com.UI.Truck();
acclerateset(25, 40, -15, -25, 8);
m_car.init(m_level.mcVehiclePlace, m_pEngine);
setObstruct_mc();
setPosition(true);
}
function setObstruct_mc() {
for (var _local2 in m_level.obstruct) {
m_level.obstruct[_local2].gotoAndStop(1);
}
}
function processRace() {
m_pEngine.process();
m_car.process();
setPosition();
if ((m_level.mcFinish._x < (m_car.__get__backWheel().pos.x - 50)) && (!inPostGame)) {
inPostGame = true;
}
var _local3 = m_car.getHitForBonus();
if (_local3.hitTest(m_level.end)) {
if (inProcess && (_root.currentOn == true)) {
_root.currentOn = false;
levelupORcongfts();
if (m_level.currentlight.onceplay == undefined) {
m_level.currentlight.onceplay = true;
m_level.currentlight.play();
}
if (m_level.currentlight._currentframe >= m_level.currentlight._totalframes) {
_root.currentOn = false;
levelupORcongfts();
}
}
}
xdis = Math.sqrt(endposition + m_level._x) - distArray[_root.currentlevel];
_parent.scorepanel.distancetxt.text = Math.floor(xdis) * 20;
if (((totaldis - xdis) * 20) > score) {
score = Math.floor((totaldis - xdis) * 20);
_parent.scorepanel.score = score;
}
for (var _local4 in m_level.cars) {
if (_local3.hitTest(m_level["distroy_" + m_level.cars[_local4]._name.substr(1)]) && (m_level["distroy_" + m_level.cars[_local4]._name.substr(1)].hitted == undefined)) {
m_level["distroy_" + m_level.cars[_local4]._name.substr(1)].hitted = true;
m_level["distroy_" + m_level.cars[_local4]._name.substr(1)].onEnterFrame = function () {
this.id++;
if (this.id == 35) {
if (this._currentframe == 1) {
this.play();
this._parent.cars["d" + this._name.split("_")[1]].play();
this._parent.mcHit["distroy_" + this._name.split("_")[1]].play();
}
delete this.onEnterFrame;
}
};
}
if (_local3.hitTest(m_level.cars[_local4].hit) && (m_level.cars[_local4].hitted == undefined)) {
m_level.cars[_local4].hitted = true;
m_level.cars[_local4].play();
_local3.boo = _parent.scorepanel.music._currentframe - 1;
if (m_level.cars[_local4]._name.substr(0, 1) == "c") {
if (m_level.cars[_local4]._name == "c29") {
m_level.distroy_8.distroy_8.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c30") {
m_level.distroy_8.distroy_8.car1.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c31") {
m_level.distroy_9.distroy_9.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c39") {
m_level.distroy_6.distroy_7.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c40") {
m_level.distroy_7.distroy_7.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c41") {
m_level.distroy_11.distroy_11.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c42") {
m_level.distroy_11.distroy_11.car1.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c43") {
m_level.distroy_12.distroy_11.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c44") {
m_level.distroy_12.distroy_11.car1.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c45") {
m_level.distroy_13.distroy_11.car.gotoAndStop(2);
}
if (m_level.cars[_local4]._name == "c46") {
m_level.distroy_13.distroy_11.car1.gotoAndStop(2);
}
snd.bitsound(_local3.boo, "cardestroy");
} else if ((m_level.cars[_local4]._name.substr(0, 1) == "l") && (m_level.cars[_local4].ok == undefined)) {
snd.bitsound(_local3.boo, "effect");
m_level.cars[_local4].ok = false;
lifeincrease();
} else if (m_level.cars[_local4]._name.substr(0, 1) == "d") {
m_level["distroy_" + m_level.cars[_local4]._name.substr(1)].play();
m_level.mcHit["distroy_" + m_level.cars[_local4]._name.substr(1)].play();
snd.bitsound(_local3.boo, String("dinoeff" + m_level.cars[_local4]._name.substr(1)));
} else if (m_level.cars[_local4]._name.substr(0, 1) == "s") {
snd.bitsound(_local3.boo, "boosEff");
boosterfts();
} else {
snd.bitsound(_local3.boo, "cardestroy");
}
}
}
if (_local3.hitTest(m_level.deadpoint) && (m_level.deadpoint.hitted == undefined)) {
m_level.deadpoint.hitted = true;
bodyCrash = true;
diefts();
}
if (_local3.hitTest(m_level.stophit) && (m_level.stophit.ok == undefined)) {
m_level.stophit.ok = true;
_root.currentOn = true;
}
if (((Key.getCode() == 32) && (m_level.stophit.ok)) && (!_root.currentOn)) {
_root.currentOn = true;
}
if (inProcess && ((getTimer() - m_car.bornTime) > 200)) {
if (!inPostGame) {
if (m_car.checkDeathPoints(m_level.mcHit)) {
bodyCrash = true;
if (inProcess) {
hitcount++;
if (hitcount >= 1) {
hitcount = 0;
_parent.sbar.nextFrame();
}
}
} else {
bodyCrash = false;
}
if (_parent.sbar._currentframe >= 100) {
}
}
}
}
function lifeincrease() {
if (_parent.sbar._currentframe >= 40) {
_parent.sbar.gotoAndStop(_parent.sbar._currentframe - 40);
} else {
_parent.sbar.gotoAndStop(1);
}
}
function boosterfts() {
acclerateset(35, 55, -15, -25, 8);
speedboolean = true;
speedsec = setInterval(this, "delayfts", 3000);
}
function delayfts() {
speedboolean = false;
acclerateset(25, 40, -15, -25, 8);
clearInterval(speedsec);
}
function acclerateset(a, b, c, d, g) {
var _local2 = com.ACA.Vehicle.getDefaultVehicleParam();
_local2.accelerateForwardWheel = a;
_local2.accelerateBackWheel = b;
_local2.brakeForwardWheel = c;
_local2.brakeBackWheel = d;
_local2.accPercMult = m_pEngine.__get__gravity() * g;
_local2.normalYLimit = 0.9;
m_car.setVehicleParam(_local2);
}
function Endfn() {
trace("End of the Function calling ");
clearInterval(speedsec);
m_car.inProcess = false;
inProcess = false;
inPostGame = true;
_root.gamescore = _root.gamescore - _root.levelscore;
_root.game.gotoAndPlay(2);
clearInterval(stopid);
_parent.scorepanel._visible = false;
}
function levelupORcongfts() {
clearInterval(speedsec);
snd.soundstop();
m_car.inProcess = false;
inProcess = false;
inPostGame = true;
_parent.scorepanel._visible = false;
_parent.sbar._visible = false;
clearInterval(stopid);
updatescore(display);
if (_root.currentlevel >= _root.gameLevel) {
} else {
_root.inst = "gameplay1";
_root.gotoAndStop("level2");
}
}
function diefts() {
clearInterval(speedsec);
m_car.inProcess = false;
inProcess = false;
inPostGame = true;
var _local3 = attachMovie("popup", "dieMessage", 1002);
_local3.gotoAndStop("die");
trace("mc cur :" + _local3._currentframe);
_local3.val = 2;
_local3.timer = TimeStr(display);
clearInterval(stopid);
_parent.scorepanel._visible = false;
_local3.level = _root.currentlevel;
_root.levelscore = score;
_root.gamescore = _root.gamescore + _root.levelscore;
snd.soundstop();
_local3.boo = _parent.scorepanel.music._currentframe - 1;
snd.bitsound(_local3.boo, "blast");
_local3._x = 350;
_local3._y = 200;
}
function updatescore(no) {
trace((_root.levelscore + " updatescore ") + _root.gamescore);
_root.levelscore = score;
if (no != 0) {
_root.bonusscore = (160 - no) * 10;
}
_root.gamescore = _root.gamescore + (_root.levelscore + _root.bonusscore);
}
function enableProcess(enable) {
if (enable) {
onEnterFrame = processRace;
_scrPause.removeMovieClip();
} else {
onEnterFrame = function () {
};
attachMovie("popup", "_scrPause", 32001);
_scrPause.gotoAndStop("pause");
_scrPause._x = 350;
_scrPause._y = 200;
}
}
function setPosition(b) {
var _local4 = m_car.__get__image()._x;
var _local3 = m_car.__get__image()._y;
var _local5 = leftOffset;
var _local6 = rightOffset;
if (!m_car.mode) {
_local5 = rightOffset;
_local6 = leftOffset;
}
var _local2 = m_level._x;
if (_local2 < (_local5 - _local4)) {
_local2 = _local5 - _local4;
}
if (_local2 > ((550 - _local6) - _local4)) {
_local2 = (550 - _local6) - _local4;
}
if (b) {
m_level._x = _local2;
} else if (m_level.stophit.ok == undefined) {
m_level._x = m_level._x + ((_local2 - m_level._x) / xScrollFactor);
}
if (m_level._y < (topOffset - _local3)) {
m_level._y = topOffset - _local3;
}
if (m_level._y > ((400 - bottomOffset) - _local3)) {
m_level._y = (400 - bottomOffset) - _local3;
}
}
static function get instance() {
return(m_instance);
}
function endOfLevel(n) {
if (n == 1) {
} else if (n == 2) {
}
}
var leftOffset = 150;
var rightOffset = 270;
var topOffset = 200;
var bottomOffset = 150;
var xScrollFactor = 4;
var distArray = [" ", 30, 43, 30, 30, 30, 30];
}
Symbol 1023 MovieClip [__Packages.com.ACA.DynamicsEngine] Frame 0
class com.ACA.DynamicsEngine
{
var m_particles, m_constraints, m_gravity, m_hitMovie, m_koeffDamp;
function DynamicsEngine (hitMovie, nGravity, koeffDamp) {
m_particles = new Array();
m_constraints = new Array();
setHitMovie(hitMovie);
init(nGravity, koeffDamp);
}
function set gravity(nGravity) {
m_gravity = nGravity;
//return(gravity);
}
function get gravity() {
return(m_gravity);
}
function setHitMovie(hitMovie) {
if (hitMovie == undefined) {
hitMovie = null;
}
m_hitMovie = hitMovie;
}
function getHitMovie() {
return(m_hitMovie);
}
function init(nGravity, koeffDamp) {
if (nGravity == undefined) {
nGravity = 9.8;
}
if (koeffDamp == undefined) {
koeffDamp = 0.99;
}
gravity = (nGravity);
trace((("--------" + koeffDamp) + " ") + gravity);
m_koeffDamp = koeffDamp;
}
function addParticle(p) {
m_particles.push(p);
}
function process() {
var _local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].accelerate.plusXY(0, m_gravity * m_particles[_local2].mass);
m_particles[_local2].accelerate.mult(1 / REPEAT_COUNT);
_local2++;
}
var _local3 = 0;
while (_local3 < REPEAT_COUNT) {
_local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].verlet(D_TIME, m_koeffDamp);
_local2++;
}
_local2 = 0;
while (_local2 < m_constraints.length) {
m_constraints[_local2].resolve();
_local2++;
}
_local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].checkCollision(m_hitMovie);
_local2++;
}
_local3++;
}
_local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].accelerate.init(0, 0);
_local2++;
}
}
function addConstraint(c) {
m_constraints.push(c);
}
function clear() {
while (m_particles.pop() != undefined) {
}
clearConstraints();
}
function clearConstraints() {
while (m_constraints.pop() != undefined) {
}
}
static var SEC_PER_FRAME = 0.04;
static var REPEAT_COUNT = 3;
static var D_TIME = SEC_PER_FRAME / REPEAT_COUNT;
}
Symbol 1024 MovieClip [__Packages.com.ACA.Vehicle] Frame 0
class com.ACA.Vehicle
{
var m_vehicleDir, m_vehicleNormal, m_vehicleParam, m_vehicleAngle, m_vehicleMovie, m_bodyMovie, m_backWheel, m_forwardWheel, m_accPercMultForTurn, m_normalYLimitForTurn, m_koeffPrimaryForTurn, m_koeffSecondaryForTurn, m_accPercBaseForTurn, m_accForwardWheel, m_accBackWheel, m_brakeForwardWheel, m_brakeBackWheel, t_turnToPerc;
function Vehicle () {
m_vehicleDir = new com.ACA.util.Vector(0, 0);
m_vehicleNormal = new com.ACA.util.Vector(0, 0);
}
function get vehicleParam() {
return(m_vehicleParam);
}
function set vehicleParam(nParam) {
m_vehicleParam = nParam;
//return(vehicleParam);
}
function get vehicleAngle() {
return(m_vehicleAngle);
}
function get vehicleDir() {
return(m_vehicleDir);
}
function getVehiclePoint(mc) {
var _local2 = new Object();
_local2.x = mc._x;
_local2.y = mc._y;
mc._parent.localToGlobal(_local2);
m_vehicleMovie._parent.globalToLocal(_local2);
return(_local2);
}
function moveMovieToMovieGlobal(movie, moviePos) {
var _local1 = {x:movie._x, y:movie._y};
movie._parent.localToGlobal(_local1);
moviePos._parent.globalToLocal(_local1);
moviePos._x = _local1.x;
moviePos._y = _local1.y;
}
function rotateMovieToMovieLocal(movie, moviePos) {
movie._rotation = Math.atan2(moviePos._y - movie._y, moviePos._x - movie._x) * VAL_180_DIV_PI;
}
function construct(vehicleParam, bodyMovie, vehicleMovie, mcWBack, mcWForward) {
m_vehicleParam = vehicleParam;
m_bodyMovie = bodyMovie;
m_vehicleMovie = vehicleMovie;
m_vehicleParam.changeGeometry(getVehiclePoint(m_bodyMovie.mcA), getVehiclePoint(m_bodyMovie.mcB), getVehiclePoint(m_bodyMovie.mcC), getVehiclePoint(m_bodyMovie.mcD));
m_backWheel = m_vehicleParam.A;
m_forwardWheel = m_vehicleParam.D;
if (mcWBack != undefined) {
m_backWheel.setMovie(mcWBack);
m_backWheel.setRotationMovie(mcWBack.mcSpoke);
}
if (mcWForward != undefined) {
m_forwardWheel.setMovie(mcWForward);
m_forwardWheel.setRotationMovie(mcWForward.mcSpoke);
}
setVehicleParam(getDefaultVehicleParam());
}
static function getDefaultVehicleParam() {
var _local1 = new Object();
_local1.accPercMult = 39.2;
_local1.normalYLimit = 0.4;
_local1.koeffPrimary = 1.3;
_local1.koeffSecondary = 0.7;
_local1.accPercBase = 0.6;
_local1.accelerateForwardWheel = 0;
_local1.accelerateBackWheel = 50;
_local1.brakeForwardWheel = 0;
_local1.brakeBackWheel = 0;
return(_local1);
}
function setVehicleParam(param) {
m_accPercMultForTurn = param.accPercMult;
m_normalYLimitForTurn = param.normalYLimit;
m_koeffPrimaryForTurn = param.koeffPrimary;
m_koeffSecondaryForTurn = param.koeffSecondary;
m_accPercBaseForTurn = param.accPercBase;
m_accForwardWheel = param.accelerateForwardWheel;
m_accBackWheel = param.accelerateBackWheel;
m_brakeForwardWheel = param.brakeForwardWheel;
m_brakeBackWheel = param.brakeBackWheel;
}
function processKey(mask) {
if ((mask & KM_ACCELERATE) != 0) {
accelerate();
} else if ((mask & KM_BRAKE) != 0) {
brake();
} else {
stopAccelerate();
}
if ((mask & KM_MOVE_BODY_FORWARD) != 0) {
turnTo(DIR_RIGHT, m_accPercMultForTurn);
} else if ((mask & KM_MOVE_BODY_BACK) != 0) {
turnTo(DIR_LEFT, m_accPercMultForTurn);
}
}
function process() {
m_vehicleDir.init(m_forwardWheel.__get__pos().x - m_backWheel.__get__pos().x, m_forwardWheel.__get__pos().y - m_backWheel.__get__pos().y);
m_vehicleNormal.init(m_vehicleDir.x, m_vehicleDir.y);
m_vehicleNormal.normalize();
var _local4 = m_vehicleNormal.x;
m_vehicleNormal.x = -m_vehicleNormal.y;
m_vehicleNormal.y = _local4;
m_vehicleAngle = Math.atan2(m_vehicleDir.y, m_vehicleDir.x) * VAL_180_DIV_PI;
m_vehicleMovie._rotation = m_vehicleAngle;
var _local3 = new Object();
_local3.x = m_bodyMovie.mcB._x;
_local3.y = m_bodyMovie.mcB._y;
m_bodyMovie.localToGlobal(_local3);
m_vehicleMovie._parent.globalToLocal(_local3);
var _local2 = new Object();
_local2.x = m_bodyMovie.mcC._x;
_local2.y = m_bodyMovie.mcC._y;
m_bodyMovie.localToGlobal(_local2);
m_vehicleMovie._parent.globalToLocal(_local2);
m_vehicleMovie._x = m_vehicleMovie._x + ((((m_vehicleParam.__get__B().__get__pos().x - _local3.x) + m_vehicleParam.__get__C().__get__pos().x) - _local2.x) / 2);
m_vehicleMovie._y = m_vehicleMovie._y + ((((m_vehicleParam.__get__B().__get__pos().y - _local3.y) + m_vehicleParam.__get__C().__get__pos().y) - _local2.y) / 2);
}
function drawSuspension() {
if (!m_vehicleMovie._parent.sus_mc) {
m_vehicleMovie._parent.createEmptyMovieClip("sus_mc", 1015);
m_vehicleMovie._parent.sus_mc._x = (m_vehicleMovie._parent.sus_mc._y = 0);
}
var _local2 = m_vehicleMovie._parent.sus_mc;
_local2.clear();
_local2.lineStyle(5, 16777215, 100);
_local2.moveTo(m_vehicleParam.__get__A().__get__pos().x, m_vehicleParam.__get__A().__get__pos().y);
_local2.lineTo(m_vehicleParam.__get__B().__get__pos().x, m_vehicleParam.__get__B().__get__pos().y);
_local2.lineTo(m_vehicleParam.__get__C().__get__pos().x, m_vehicleParam.__get__C().__get__pos().y);
_local2.lineTo(m_vehicleParam.__get__A().__get__pos().x, m_vehicleParam.__get__A().__get__pos().y);
_local2.moveTo(m_vehicleParam.__get__D().__get__pos().x, m_vehicleParam.__get__D().__get__pos().y);
_local2.lineTo(m_vehicleParam.__get__B().__get__pos().x, m_vehicleParam.__get__B().__get__pos().y);
_local2.lineTo(m_vehicleParam.__get__C().__get__pos().x, m_vehicleParam.__get__C().__get__pos().y);
_local2.lineTo(m_vehicleParam.__get__D().__get__pos().x, m_vehicleParam.__get__D().__get__pos().y);
}
function turnTo(dir, turnPower) {
t_turnToPerc = ((Math.abs(m_vehicleNormal.y) * (1 - m_accPercBaseForTurn)) + m_accPercBaseForTurn) * turnPower;
var _local3;
var _local2;
_local3 = m_vehicleNormal.x * t_turnToPerc;
_local2 = m_vehicleNormal.y * t_turnToPerc;
if (m_vehicleNormal.y > (-m_normalYLimitForTurn)) {
if (dir == DIR_RIGHT) {
if (!m_forwardWheel.hasIntersection()) {
m_forwardWheel.__get__accelerate().plusXY(_local3 * m_koeffPrimaryForTurn, _local2 * m_koeffPrimaryForTurn);
}
m_backWheel.__get__accelerate().plusXY((-_local3) * m_koeffSecondaryForTurn, (-_local2) * m_koeffSecondaryForTurn);
} else {
m_forwardWheel.__get__accelerate().plusXY((-_local3) * m_koeffSecondaryForTurn, (-_local2) * m_koeffSecondaryForTurn);
if (!m_backWheel.hasIntersection()) {
m_backWheel.__get__accelerate().plusXY(_local3 * m_koeffPrimaryForTurn, _local2 * m_koeffPrimaryForTurn);
}
}
}
}
function accelerate() {
if (!m_vehicleMovie._parent._parent._parent.bodyCrash) {
m_backWheel.setAccelerate(m_accBackWheel);
m_forwardWheel.setAccelerate(m_accForwardWheel);
}
}
function brake() {
if (!m_vehicleMovie._parent._parent._parent.bodyCrash) {
m_backWheel.setAccelerate(m_brakeBackWheel);
m_forwardWheel.setAccelerate(m_brakeForwardWheel);
}
}
function stopAccelerate() {
m_backWheel.setAccelerate(0);
m_forwardWheel.setAccelerate(0);
}
function get backWheel() {
return(m_backWheel);
}
function get forwardWheel() {
return(m_forwardWheel);
}
function onGround() {
return(m_backWheel.hasIntersection() || (m_forwardWheel.hasIntersection()));
}
static var VAL_180_DIV_PI = 57.2957795130823;
static var DIR_RIGHT = 0;
static var DIR_LEFT = 1;
static var KM_NONE = 0;
static var KM_ACCELERATE = 1;
static var KM_BRAKE = 2;
static var KM_MOVE_BODY_FORWARD = 4;
static var KM_MOVE_BODY_BACK = 8;
}
Symbol 1025 MovieClip [__Packages.com.ACA.util.Vector] Frame 0
class com.ACA.util.Vector
{
var x, y;
function Vector (nx, ny) {
init(nx, ny);
}
function init(nx, ny) {
x = nx;
y = ny;
}
function copyFrom(v) {
x = v.x;
y = v.y;
}
function copyTo(v) {
v.x = x;
v.y = y;
}
function plusXY(nx, ny) {
x = x + nx;
y = y + ny;
}
static function getDistanceBetween(p1, p2) {
var _local2 = p1.x - p2.x;
var _local1 = p1.y - p2.y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function duplicate() {
return(new com.ACA.util.Vector(x, y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
}
function minusNew(v) {
return(new com.ACA.util.Vector(x - v.x, y - v.y));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
}
function reverseNew() {
return(new com.ACA.util.Vector(-x, -y));
}
function scalar(v) {
return((x * v.x) + (y * v.y));
}
function modul() {
return(Math.sqrt((x * x) + (y * y)));
}
function rotate(u) {
var _local4 = x;
var _local3 = y;
x = (_local4 * Math.cos(u)) - (_local3 * Math.sin(u));
y = (_local4 * Math.sin(u)) + (_local3 * Math.cos(u));
}
function rotateNew(u) {
return(new com.ACA.util.Vector((x * Math.cos(u)) - (y * Math.sin(u)), (x * Math.sin(u)) + (y * Math.cos(u))));
}
function mult(k) {
x = x * k;
y = y * k;
return(this);
}
function multNew(k) {
return(new com.ACA.util.Vector(x * k, y * k));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
}
function plusNew(v) {
return(new com.ACA.util.Vector(x + v.x, y + v.y));
}
function getDistanceTo(p1, p2) {
var _local2 = p1.y - p2.y;
var _local3 = p2.x - p1.x;
var _local5 = (p1.x * (p2.y - p1.y)) - (p1.y * (p2.x - p1.x));
var _local6 = Math.sqrt((_local2 * _local2) + (_local3 * _local3));
_local2 = _local2 / _local6;
_local3 = _local3 / _local6;
_local5 = _local5 / _local6;
return(((_local2 * x) + (_local3 * y)) + _local5);
}
}
Symbol 1026 MovieClip [__Packages.com.ACA.composites.Composite] Frame 0
class com.ACA.composites.Composite
{
var m_A, m_B, m_C, m_D, m_AB, m_AC, m_AD, m_BC, m_BD, m_CD, m_ABC, m_DCB;
function Composite () {
}
function get A() {
return(m_A);
}
function get B() {
return(m_B);
}
function get C() {
return(m_C);
}
function get D() {
return(m_D);
}
function get AB() {
return(m_AB);
}
function get AC() {
return(m_AC);
}
function get AD() {
return(m_AD);
}
function get BC() {
return(m_BC);
}
function get BD() {
return(m_BD);
}
function get CD() {
return(m_CD);
}
function init(a, b, c, d, ab, ac, ad, bc, bd, cd) {
m_A = a;
m_B = b;
m_C = c;
m_D = d;
m_AB = ab;
m_AB.__set__p1(a);
m_AB.__set__p2(b);
m_AC = ac;
m_AC.__set__p1(a);
m_AC.__set__p2(c);
m_AD = ad;
m_AD.__set__p1(a);
m_AD.__set__p2(d);
m_BC = bc;
m_BC.__set__p1(b);
m_BC.__set__p2(c);
m_BD = bd;
m_BD.__set__p1(b);
m_BD.__set__p2(d);
m_CD = cd;
m_CD.__set__p1(c);
m_CD.__set__p2(d);
m_ABC = new com.ACA.constraints.AngularConstraint(m_D, m_C, m_B);
m_DCB = new com.ACA.constraints.AngularConstraint(m_A, m_B, m_C);
return(this);
}
function changeGeometry(pA, pB, pC, pD) {
m_A.moveTo(pA.x, pA.y);
m_B.moveTo(pB.x, pB.y);
m_C.moveTo(pC.x, pC.y);
m_D.moveTo(pD.x, pD.y);
m_AB.fixDistance();
m_AC.fixDistance();
m_AD.fixDistance();
m_BC.fixDistance();
m_BD.fixDistance();
m_CD.fixDistance();
m_ABC.fixDistance();
m_DCB.fixDistance();
}
function addToEngine(engine) {
engine.addParticle(m_A);
engine.addParticle(m_B);
engine.addParticle(m_C);
engine.addParticle(m_D);
engine.addConstraint(m_AB);
engine.addConstraint(m_AC);
engine.addConstraint(m_AD);
engine.addConstraint(m_BC);
engine.addConstraint(m_BD);
engine.addConstraint(m_CD);
engine.addConstraint(m_ABC);
engine.addConstraint(m_DCB);
}
}
Symbol 1027 MovieClip [__Packages.com.ACA.primitives.Particle] Frame 0
class com.ACA.primitives.Particle
{
var m_curPosition, m_prevPosition, m_accelerate, m_buckup, m_mass, m_mc;
function Particle () {
m_curPosition = new com.ACA.util.Vector();
m_prevPosition = new com.ACA.util.Vector();
m_accelerate = new com.ACA.util.Vector();
m_buckup = new com.ACA.util.Vector();
}
function get mass() {
return(m_mass);
}
function set mass(nMass) {
m_mass = nMass;
//return(mass);
}
function get accelerate() {
return(m_accelerate);
}
function set accelerate(acc) {
m_accelerate = acc;
//return(accelerate);
}
function get prevPos() {
return(m_prevPosition);
}
function set prevPos(pos) {
m_prevPosition = pos;
//return(prevPos);
}
function get pos() {
return(m_curPosition);
}
function set pos(pos) {
m_curPosition = pos;
//return(this.pos);
}
function initParticle(x, y, mass, mc) {
if (x == undefined) {
x = 0;
}
if (y == undefined) {
y = 0;
}
if (mass == undefined) {
mass = 1;
}
moveTo(x, y);
m_mass = mass;
m_accelerate.x = 0;
m_accelerate.y = 0;
if (mc) {
setMovie(mc);
}
return(this);
}
function moveTo(nx, ny) {
m_curPosition.x = (m_prevPosition.x = nx);
m_curPosition.y = (m_prevPosition.y = ny);
synchronizeMovie();
}
function verlet(dTime, koeffDamp) {
m_buckup.copyFrom(m_curPosition);
m_curPosition.x = m_curPosition.x + (((m_curPosition.x - m_prevPosition.x) * koeffDamp) + (m_accelerate.x * dTime));
m_curPosition.y = m_curPosition.y + (((m_curPosition.y - m_prevPosition.y) * koeffDamp) + (m_accelerate.y * dTime));
m_buckup.copyTo(m_prevPosition);
synchronizeMovie();
}
function checkCollision(hitMovie) {
}
function synchronizeMovie() {
}
function moveMovieToCurentPosition() {
m_mc._x = m_curPosition.x;
m_mc._y = m_curPosition.y;
}
function setMovie(mc) {
if ((mc == null) || (mc == undefined)) {
synchronizeMovie = function () {
};
m_mc = null;
} else {
m_mc = mc;
synchronizeMovie = moveMovieToCurentPosition;
}
}
function getMovie() {
return(m_mc);
}
}
Symbol 1028 MovieClip [__Packages.com.ACA.primitives.Wheel] Frame 0
class com.ACA.primitives.Wheel extends com.ACA.primitives.Particle
{
var m_rim, rot, m_radius, m_speed, m_acceleration, initParticle, m_koeffSpring, m_koeffSlip, m_maxAccSpeed, m_accSpeed, intersectionFlag, lastIntersPoint, lastN, hitPointArray, normalArray, hitArray, intersArray, n_part, oldPos, _p, _n, p3, m_prevPosition, synchronizeMovie, m_mc, m_curPosition;
function Wheel () {
super();
}
function setRotationMovie(rotationMovie) {
if ((rotationMovie == undefined) || (rotationMovie == null)) {
rotateMovie = function () {
};
m_rim = null;
} else {
rotateMovie = rmovie;
m_rim = rotationMovie;
}
}
function rmovie() {
rot.rotate(m_speed / m_radius);
m_rim._rotation = Math.atan2(rot.y, rot.x) * ANGLE_180_DIV_PI;
}
function setAccelerate(nAccelerate) {
m_acceleration = nAccelerate;
}
function getAccelerate() {
return(m_acceleration);
}
function initWheel(x, y, mass, rad, maxAccSpeed, mc, rotationMovie, koeffSpring, koeffSlip) {
_innerInit();
initParticle(x, y, mass, mc);
if (koeffSpring == undefined) {
koeffSpring = 0.1;
}
if (koeffSlip == undefined) {
koeffSlip = 0.1;
}
m_koeffSpring = koeffSpring;
m_koeffSlip = koeffSlip;
rotationMovie._visible = false;
setRotationMovie(rotationMovie);
m_radius = rad;
m_maxAccSpeed = maxAccSpeed;
m_speed = 0;
m_accSpeed = 0;
rot = new com.ACA.util.Vector(1, 0);
intersectionFlag = false;
lastIntersPoint = new com.ACA.util.Vector(0, 0);
lastN = new com.ACA.util.Vector(0, 0);
var _local3 = (Math.PI*2) / m_hitCount;
hitPointArray = new Array(m_hitCount);
normalArray = new Array(m_hitCount);
hitArray = new Array(m_hitCount);
intersArray = new Array();
var _local2 = 0;
while (_local2 < m_hitCount) {
hitPointArray[_local2] = new com.ACA.util.Vector(Math.sin(_local3 * _local2) * m_radius, (-Math.cos(_local3 * _local2)) * m_radius);
normalArray[_local2] = hitPointArray[_local2].multNew(-1);
normalArray[_local2].normalize();
_local2++;
}
m_acceleration = 0;
return(this);
}
function verlet(dTime, koeffDamp) {
super.verlet(dTime, koeffDamp);
m_accSpeed = Math.max(-m_maxAccSpeed, Math.min(m_maxAccSpeed, m_accSpeed + (m_acceleration * dTime)));
m_speed = Math.max((-m_maxSpeed) * dTime, Math.min((m_speed * koeffDamp) + m_accSpeed, m_maxSpeed * dTime));
rotateMovie();
}
function rotateMovie() {
rmovie();
}
function _innerInit() {
n_part = new com.ACA.util.Vector(0, 0);
oldPos = new com.ACA.util.Vector(0, 0);
_p = new com.ACA.util.Vector(0, 0);
_n = new com.ACA.util.Vector(0, 0);
p3 = new com.ACA.util.Vector(0, 0);
}
function checkCollision(hit_mc) {
var _local14 = false;
var _local3 = 0;
var _local4 = 0;
var _local15 = 0;
_p.init(0, 0);
oldPos.init(m_prevPosition.x, m_prevPosition.y);
_n.init(0, 0);
n_part.init(0, 0);
synchronizeMovie();
var _local6 = 0;
while (_local6 < m_hitCount) {
hitPointArray[_local6].copyTo(_p);
m_mc.localToGlobal(_p);
hitArray[_local6] = hit_mc.hitTest(_p.x, _p.y, true);
if (hitArray[_local6]) {
_local14 = true;
_local3 = _local6;
_local15++;
}
_local6++;
}
if (_local15 == m_hitCount) {
m_curPosition.x = m_prevPosition.x + ((m_curPosition.x - m_prevPosition.x) * 0.3);
m_curPosition.y = m_prevPosition.y + ((m_curPosition.y - m_prevPosition.y) * 0.3);
synchronizeMovie();
return(undefined);
}
if (_local14) {
var _local2 = 0;
while (true) {
_local2++;
if (_local2 == m_hitCount) {
_local2 = 0;
}
if (!hitArray[_local2]) {
_local3 = -1;
var _local5 = 0;
while (_local5 < m_hitCount) {
_local2++;
if (_local2 == m_hitCount) {
_local2 = 0;
}
if (_local3 == -1) {
if (hitArray[_local2]) {
_local3 = _local2;
_n.plus(normalArray[_local2]);
normalArray[_local2].copyTo(n_part);
}
} else if (!hitArray[_local2]) {
_local4 = _local2 - 1;
if (_local4 < 0) {
_local4 = m_hitCount - 1;
}
intersArray.push({k1:_local3, k2:_local4, n:new com.ACA.util.Vector(n_part.x, n_part.y)});
_local3 = -1;
} else {
_n.plus(normalArray[_local2]);
n_part.plus(normalArray[_local2]);
}
_local5++;
}
break;
}
}
p3.init(0, 0);
if (intersArray.length > 0) {
_n.normalize();
if (intersectionFlag) {
_n.x = _n.x + lastN.x;
_n.y = _n.y + lastN.y;
_n.x = _n.x / 2;
_n.y = _n.y / 2;
}
var _local16 = intersArray.length;
var _local7;
var _local10 = 0;
while (_local10 < _local16) {
_local7 = intersArray.pop();
_local3 = _local7.k1;
_local4 = _local7.k2;
_local7.n.copyTo(n_part);
m_curPosition.minusNew(m_prevPosition).copyTo(p3);
if (_n.scalar(p3) < 0) {
var _local12 = Math.atan2(_n.y, _n.x);
p3.rotate(-_local12);
p3.x = (-p3.x) * m_koeffSpring;
p3.rotate(_local12);
pushOut(_local3, _local4, n_part, hit_mc);
m_prevPosition.x = m_curPosition.x - p3.x;
m_prevPosition.y = m_curPosition.y - p3.y;
} else {
pushOut(_local3, _local4, n_part, hit_mc);
}
_local10++;
}
validateRotation(_n, oldPos);
intersectionFlag = true;
m_curPosition.copyTo(lastIntersPoint);
_n.copyTo(lastN);
}
} else if (intersectionFlag) {
validateRotation(lastN, oldPos);
intersectionFlag = false;
}
synchronizeMovie();
}
function pushOut(k1, k2, n, hit_mc) {
n.normalize();
if (k1 != k2) {
var _local9 = new com.ACA.util.Vector(0, 0);
var _local8 = _local9.getDistanceTo(hitPointArray[k1], hitPointArray[k2]);
_local8 = m_radius - Math.abs(_local8);
m_curPosition.plus(n.multNew(_local8));
m_prevPosition.plus(n.multNew(_local8));
} else {
var _local6 = n.multNew(-m_radius);
var _local4 = new com.ACA.util.Vector(0, 0);
var _local5 = 0;
var _local3 = 0.03;
if (true) {
_local6.copyTo(_local4);
m_mc.localToGlobal(_local4);
if (hit_mc.hitTest(_local4.x, _local4.y, true)) {
_local5++;
m_curPosition.x = m_curPosition.x + (n.x * _local3);
m_curPosition.y = m_curPosition.y + (n.y * _local3);
synchronizeMovie();
// unexpected jump
}
_local5--;
m_curPosition.x = m_curPosition.x - (n.x * _local3);
m_curPosition.y = m_curPosition.y - (n.y * _local3);
m_prevPosition.plus(n.multNew(_local3 * _local5));
}
}
}
function validateRotation(n, oldPos) {
if ((!intersectionFlag) && (Math.abs(m_accSpeed) > 0.01)) {
if (Math.abs(m_accSpeed) < ((m_maxAccSpeed * 0.02) / 2)) {
m_accSpeed = 0;
} else if (m_accSpeed > 0) {
m_accSpeed = m_maxAccSpeed * 0.02;
} else {
m_accSpeed = (-m_maxAccSpeed) * 0.02;
}
}
var _local3 = new com.ACA.util.Vector(-n.y, n.x);
var _local6 = m_curPosition.minusNew(oldPos);
var _local5 = Math.atan2(_local3.y, _local3.x);
var _local2 = _local6.rotateNew(-_local5);
m_speed = _local2.x + m_accSpeed;
_local2.y = 0;
_local2.rotate(_local5);
var _local4 = 1 - m_koeffSlip;
m_curPosition.x = (m_curPosition.x + ((_local3.x * m_accSpeed) * _local4)) - (m_koeffFriction * _local2.x);
m_curPosition.y = (m_curPosition.y + ((_local3.y * m_accSpeed) * _local4)) - (m_koeffFriction * _local2.y);
m_accSpeed = m_accSpeed * m_koeffSlip;
}
function hasIntersection() {
return(intersectionFlag);
}
static var m_maxSpeed = 180;
static var m_hitCount = 16;
static var m_koeffFriction = 0.03;
static var ANGLE_180_DIV_PI = 57.2957795130823;
}
Symbol 1029 MovieClip [__Packages.com.ACA.constraints.SpringConstraint] Frame 0
class com.ACA.constraints.SpringConstraint
{
var _p1, _p2, coeffV, coeffH, restLen;
function SpringConstraint () {
}
function set p1(nP1) {
_p1 = nP1;
//return(p1);
}
function get p1() {
return(_p1);
}
function set p2(nP2) {
_p2 = nP2;
//return(p2);
}
function get p2() {
return(_p2);
}
function init(cV, cH, p1, p2) {
if (p1) {
_p1 = p1;
_p2 = p2;
}
if (cV) {
coeffV = cV;
coeffH = cH;
}
fixDistance();
return(this);
}
function fixDistance() {
restLen = com.ACA.util.Vector.getDistanceBetween(_p1.__get__pos(), _p2.__get__pos());
}
function resolve() {
var _local9 = _p1.__get__pos().minusNew(_p2.__get__pos());
var _local2 = com.ACA.util.Vector.getDistanceBetween(_p1.__get__pos(), _p2.__get__pos());
var _local8 = (_local2 - restLen) / _local2;
var _local3;
if (_local2 > restLen) {
_local3 = coeffH;
} else {
_local3 = coeffV;
}
var _local6 = _p1.__get__mass();
var _local5 = _p2.__get__mass();
var _local7 = (_local8 * _local3) / (_local6 + _local5);
var _local4 = _local9.multNew(_local7);
_p1.__get__pos().minus(_local4.multNew(_local6));
_p2.__get__pos().plus(_local4.multNew(_local5));
}
}
Symbol 1030 MovieClip [__Packages.com.ACA.constraints.AngularConstraint] Frame 0
class com.ACA.constraints.AngularConstraint
{
var p0, p1, p2, sign;
function AngularConstraint (np0, np1, np2) {
p0 = np0;
p1 = np1;
p2 = np2;
fixDistance();
}
function fixDistance() {
sign = p0.__get__pos().getDistanceTo(p1.__get__pos(), p2.__get__pos());
if (sign < 0) {
sign = -1;
} else {
sign = 1;
}
}
function resolve() {
var _local3 = p0.__get__pos().getDistanceTo(p1.__get__pos(), p2.__get__pos());
if ((sign * _local3) <= 1) {
var _local2 = new com.ACA.util.Vector(p2.__get__pos().x, p2.__get__pos().y);
_local2.minus(p1.__get__pos());
_local2.normalize();
_local2.rotate(PI2 * sign);
_local2.mult(Math.abs(_local3) + 1);
p1.__get__pos().minus(_local2);
}
}
static var PI2 = (Math.PI/2);
}
Symbol 1031 MovieClip [__Packages.com.UI.Truck] Frame 0
class com.UI.Truck extends com.ACA.Vehicle
{
var bornTime, inProcess, mode, getKeys, m_vehicleMovie, flipTime, construct, setVehicleParam, processKey, m_backWheel, m_forwardWheel;
function Truck () {
super();
bornTime = getTimer();
inProcess = true;
mode = true;
getKeys = true;
}
function get image() {
return(m_vehicleMovie);
}
function init(carPlace, engine) {
flipTime = getTimer();
if (carPlace.xx == undefined) {
carPlace.xx = carPlace._x;
}
if (carPlace.yy == undefined) {
carPlace.yy = carPlace._y;
}
carPlace._x = (carPlace._y = 0);
var _local4 = carPlace.attachMovie("truckbody", "_dmCarBody", 100);
var _local15 = carPlace.attachMovie("wheel", "_dmWheel1", 1010);
var _local12 = carPlace.attachMovie("wheel", "_dmWheel2", 1020);
carPlace._parent.dino.car = _local4;
_local4._x = carPlace.xx;
_local4._y = carPlace.yy;
var _local16 = new com.ACA.primitives.Wheel();
var _local13 = new com.ACA.primitives.Wheel();
var _local10 = new com.ACA.primitives.Particle();
var _local9 = new com.ACA.primitives.Particle();
var _local8 = new com.ACA.constraints.SpringConstraint();
var _local7 = new com.ACA.constraints.SpringConstraint();
var _local6 = new com.ACA.constraints.SpringConstraint();
var _local18 = new com.ACA.constraints.SpringConstraint();
var _local17 = new com.ACA.constraints.SpringConstraint();
var _local14 = new com.ACA.constraints.SpringConstraint();
var _local5 = new com.ACA.composites.Composite();
_local5.init(_local16.initWheel(0, 0, 5, 11, 160), _local10.initParticle(0, 0, 4), _local9.initParticle(0, 0, 4), _local13.initWheel(0, 0, 5, 11, 180), _local8.init(0.2, 0.2), _local7.init(0.5, 0.5), _local6.init(0.7, 0.7), _local18.init(0.9, 0.9), _local17.init(0.8, 0.8), _local14.init(0.2, 0.2));
construct(_local5, _local4, _local4, _local15, _local12);
engine.__set__gravity(8);
var _local3 = com.ACA.Vehicle.getDefaultVehicleParam();
_local3.accelerateForwardWheel = 15;
_local3.accelerateBackWheel = 35;
_local3.brakeForwardWheel = -15;
_local3.brakeBackWheel = -25;
_local3.accPercMult = engine.__get__gravity() * 8;
_local3.normalYLimit = 0.9;
setVehicleParam(_local3);
_local5.addToEngine(engine);
}
function process() {
var _local3 = 0;
if (inProcess) {
if (!m_vehicleMovie._parent._parent._parent.bodyCrash) {
if (getKeys) {
if (Key.isDown(37)) {
_local3 = _local3 | com.ACA.Vehicle.KM_MOVE_BODY_BACK;
} else if (Key.isDown(39)) {
_local3 = _local3 | com.ACA.Vehicle.KM_MOVE_BODY_FORWARD;
}
}
if (Key.isDown(38)) {
_local3 = _local3 | com.ACA.Vehicle.KM_ACCELERATE;
} else if (Key.isDown(40)) {
_local3 = _local3 | com.ACA.Vehicle.KM_BRAKE;
}
} else if (Key.isDown(38) && (Key.isDown(37))) {
moveFor();
} else if (Key.isDown(38) && (Key.isDown(39))) {
moveBack();
}
}
processKey(_local3);
super.process();
}
function moveFor() {
m_backWheel.__get__accelerate().plusXY(0, -100);
}
function moveBack() {
m_forwardWheel.__get__accelerate().plusXY(0, -100);
}
function getMC() {
return(m_vehicleMovie);
}
function getHitForBonus() {
return(m_vehicleMovie.mcHit);
}
function checkDeathPoints(hitMov) {
var _local2 = new Object();
for (var _local4 in m_vehicleMovie.mcDeathPoints) {
_local2.x = m_vehicleMovie.mcDeathPoints[_local4]._x;
_local2.y = m_vehicleMovie.mcDeathPoints[_local4]._y;
m_vehicleMovie.mcDeathPoints.localToGlobal(_local2);
if (hitMov.hitTest(_local2.x, _local2.y, true)) {
return(true);
}
}
return(false);
}
static var TRICK_ANGLE = 130;
static var EVENT_TRICK = "trick";
static var TRICK_FRONT_FLIP = 0;
static var TRICK_BACK_FLIP = 1;
}
Symbol 1032 MovieClip [__Packages.com.sound.Sounds] Frame 0
class com.sound.Sounds
{
var bgsound, carsnd, bitsnd;
function Sounds (str, pauseBoolean) {
trace((str + " ") + pauseBoolean);
bgSoundfts(pauseBoolean, str);
}
function bgSoundfts(pauseBoolean, str) {
if (!pauseBoolean) {
bgsound = new Sound();
carsnd = new Sound();
bgsound.attachSound(str);
carsnd.attachSound("idle");
carsnd.start(0, 10000);
bgsound.start();
bgsound.onSoundComplete = function () {
this.start(0, 1);
};
}
}
function soundstop() {
bgsound.stop();
carsnd.stop();
}
function bitsound(pauseBoolean, bitstr) {
if (!pauseBoolean) {
bitsnd = new Sound();
bitsnd.attachSound(bitstr);
bitsnd.start(0, 1);
}
}
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 10
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 10
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 10
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 10
stop();
Instance of Symbol 157 MovieClip "credit" in Symbol 165 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Instance of Symbol 160 MovieClip "setting" in Symbol 165 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Instance of Symbol 162 MovieClip "gameplay" in Symbol 165 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Instance of Symbol 164 MovieClip "instructions" in Symbol 165 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 10
stop();
Instance of Symbol 171 MovieClip in Symbol 172 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
this.enabled = false;
_root.nam = "back";
_parent._parent._parent.gotoAndPlay(31);
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Instance of Symbol 171 MovieClip in Symbol 183 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "back";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 178 MovieClip "onbtn" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
if (_root.musfx) {
this.gotoAndStop(2);
}
}
on (release) {
if (this._currentframe == 1) {
_root.musfx = true;
this.gotoAndStop(2);
_parent.ofbtn.gotoAndStop(1);
} else {
_root.musfx = false;
this.gotoAndStop(1);
_parent.ofbtn.gotoAndStop(2);
}
}
Instance of Symbol 181 MovieClip "ofbtn" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
if (!_root.musfx) {
this.gotoAndStop(2);
}
}
on (release) {
if (this._currentframe == 1) {
_root.musfx = false;
this.gotoAndStop(2);
_parent.onbtn.gotoAndStop(1);
} else {
_root.musfx = true;
this.gotoAndStop(1);
_parent.onbtn.gotoAndStop(2);
}
}
Instance of Symbol 178 MovieClip "onbtn1" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
if (_root.sfx) {
this.gotoAndStop(2);
}
}
on (release) {
if (this._currentframe == 1) {
_root.sfx = true;
this.gotoAndStop(2);
_parent.ofbtn1.gotoAndStop(1);
} else {
_root.sfx = false;
this.gotoAndStop(1);
_parent.ofbtn1.gotoAndStop(2);
}
}
Instance of Symbol 181 MovieClip "ofbtn1" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
if (!_root.sfx) {
this.gotoAndStop(2);
}
}
on (release) {
if (this._currentframe == 1) {
_root.sfx = false;
this.gotoAndStop(2);
_parent.onbtn1.gotoAndStop(1);
} else {
_root.sfx = true;
this.gotoAndStop(1);
_parent.onbtn1.gotoAndStop(2);
}
}
Instance of Symbol 171 MovieClip in Symbol 190 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "back";
_parent._parent._parent.gotoAndPlay(31);
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 10
stop();
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 196 MovieClip in Symbol 200 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 196 MovieClip in Symbol 203 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 3
stop();
Symbol 204 MovieClip Frame 4
stop();
Symbol 204 MovieClip Frame 5
stop();
Symbol 204 MovieClip Frame 6
stop();
Symbol 205 MovieClip Frame 1
if (_root.inst == "instructions") {
this.pop.gotoAndStop(3);
} else if (_root.inst == "gameplay") {
this.pop.gotoAndStop(4);
} else if (_root.inst == "setting") {
this.pop.gotoAndStop(2);
} else if (_root.inst == "credit") {
this.pop.gotoAndStop(1);
}
_root.nam = "";
Symbol 205 MovieClip Frame 30
stop();
Symbol 205 MovieClip Frame 60
if (_root.nam == "back") {
_root.game_play.gotoAndPlay(5);
} else if (_root.nam == "contin") {
_root.gotoAndStop("game");
}
Symbol 206 MovieClip Frame 68
function disb() {
menu.instructions.enabled = false;
menu.gameplay.enabled = false;
menu.setting.enabled = false;
menu.credit.enabled = false;
}
stop();
_root.inst = "";
menu.instructions.onRelease = function () {
disb();
_root.inst = "instructions";
nextFrame();
};
menu.gameplay.onRelease = function () {
disb();
_root.inst = "gameplay";
nextFrame();
};
menu.setting.onRelease = function () {
disb();
_root.inst = "setting";
nextFrame();
};
menu.credit.onRelease = function () {
disb();
_root.inst = "credit";
nextFrame();
};
Symbol 206 MovieClip Frame 69
play();
Symbol 206 MovieClip Frame 103
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 2
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 2
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 30
stop();
Symbol 271 MovieClip Frame 1
stop();
id = 20;
Symbol 271 MovieClip Frame 2
stop();
Symbol 314 MovieClip Frame 16
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 320 MovieClip Frame 16
stop();
_parent.lory._visible = false;
_parent.car._visible = false;
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 20
stop();
Symbol 335 MovieClip Frame 1
stop();
id = -25;
Symbol 335 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 30
stop();
Symbol 353 MovieClip Frame 1
stop();
id = 10;
Symbol 353 MovieClip Frame 2
stop();
Symbol 360 MovieClip Frame 10
stop();
Symbol 361 MovieClip Frame 1
stop();
id = 0;
Symbol 361 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 378 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 379 MovieClip Frame 15
stop();
Symbol 380 MovieClip Frame 1
stop();
id = 0;
Symbol 380 MovieClip Frame 2
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Instance of Symbol 405 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 406 MovieClip Frame 30
stop();
Symbol 407 MovieClip Frame 1
stop();
id = -18;
Symbol 407 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 2
stop();
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 2
stop();
Symbol 453 MovieClip Frame 3
stop();
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 2
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 6
stop();
Instance of Symbol 412 MovieClip in Symbol 469 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
play();
Symbol 470 MovieClip Frame 6
stop();
Instance of Symbol 422 MovieClip in Symbol 470 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
play();
Symbol 471 MovieClip Frame 6
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
play();
Symbol 472 MovieClip Frame 6
stop();
Symbol 480 MovieClip Frame 1
stop();
id = 0;
Symbol 480 MovieClip Frame 2
play();
Symbol 480 MovieClip Frame 6
stop();
Symbol 481 MovieClip Frame 1
stop();
id = 0;
Symbol 481 MovieClip Frame 2
play();
Symbol 481 MovieClip Frame 6
stop();
Symbol 482 MovieClip Frame 1
stop();
id = 0;
Symbol 482 MovieClip Frame 2
play();
Symbol 482 MovieClip Frame 6
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 10
stop();
Instance of Symbol 527 MovieClip "music" in Symbol 535 MovieClip Frame 1
onClipEvent (load) {
if ((((!_root.musfx) && (!_root.sfx)) || ((!_root.musfx) && (_root.sfx))) || (_root.musfx && (!_root.sfx))) {
this.gotoAndStop(2);
_root.alsnd.setVolume(0);
} else {
this.gotoAndStop(1);
_root.musfx = true;
_root.sfx = true;
_root.alsnd.setVolume(100);
}
}
on (release) {
if (this._currentframe == 2) {
_root.musfx = true;
_root.sfx = true;
_root.alsnd.setVolume(100);
this.gotoAndStop(1);
} else {
_root.musfx = false;
_root.sfx = false;
_root.alsnd.setVolume(0);
this.gotoAndStop(2);
}
}
Instance of Symbol 530 MovieClip "resetbtn" in Symbol 535 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
this._parent._parent.b.Endfn();
}
Symbol 536 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 10
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 10
stop();
Instance of Symbol 539 MovieClip in Symbol 541 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "back";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 540 MovieClip in Symbol 541 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Symbol 545 MovieClip Frame 1
stop();
Symbol 545 MovieClip Frame 2
stop();
Instance of Symbol 539 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "back";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 540 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 539 MovieClip in Symbol 547 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release) {
_root.nam = "back";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 540 MovieClip in Symbol 547 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 540 MovieClip in Symbol 551 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 540 MovieClip in Symbol 557 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin1";
_parent._parent._parent.gotoAndPlay(31);
}
Instance of Symbol 540 MovieClip in Symbol 562 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (release, keyPress "<Space>") {
_root.nam = "contin1";
_parent._parent._parent.gotoAndPlay(31);
}
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 2
stop();
Symbol 563 MovieClip Frame 3
stop();
Symbol 563 MovieClip Frame 4
stop();
Symbol 563 MovieClip Frame 5
stop();
Symbol 563 MovieClip Frame 6
stop();
Symbol 564 MovieClip Frame 1
if (_root.inst == "instructions") {
this.pop.gotoAndStop(3);
} else if (_root.inst == "gameplay") {
this.pop.gotoAndStop(4);
} else if (_root.inst == "setting") {
this.pop.gotoAndStop(2);
} else if (_root.inst == "credit") {
this.pop.gotoAndStop(1);
} else if (_root.inst == "gameplay1") {
this.pop.gotoAndStop(5);
} else if (_root.inst == "gameplay2") {
this.pop.gotoAndStop(6);
}
_root.nam = "";
Symbol 564 MovieClip Frame 30
stop();
if (_root.inst == "instructions") {
this.pop.gotoAndStop(3);
} else if (_root.inst == "gameplay") {
this.pop.gotoAndStop(4);
} else if (_root.inst == "setting") {
this.pop.gotoAndStop(2);
} else if (_root.inst == "credit") {
this.pop.gotoAndStop(1);
} else if (_root.inst == "gameplay1") {
this.pop.gotoAndStop(5);
} else if (_root.inst == "gameplay2") {
this.pop.gotoAndStop(6);
}
Symbol 564 MovieClip Frame 60
trace(_root.nam);
if (_root.nam == "back") {
_root.game_play.gotoAndPlay(1);
} else if (_root.nam == "contin") {
_root.gotoAndStop("game");
} else if (_root.nam == "contin1") {
_root.nextFrame();
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 20
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 2
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 20
stop();
Symbol 615 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 2
stop();
Symbol 624 MovieClip Frame 43
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 2
stop();
Symbol 634 MovieClip Frame 36
stop();
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 2
stop();
Symbol 650 MovieClip Frame 25
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 2
stop();
Symbol 685 MovieClip Frame 42
stop();
Instance of Symbol 587 MovieClip "lasthit" in Symbol 686 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 685 MovieClip "plane" in Symbol 686 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 587 MovieClip "lasthit1" in Symbol 686 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 714 MovieClip Frame 1
stop();
Symbol 714 MovieClip Frame 10
stop();
removeMovieClip(this);
this.unloadMovie();
Symbol 744 MovieClip Frame 28
stop();
Symbol 760 MovieClip Frame 13
stop();
Instance of Symbol 726 MovieClip "fire2" in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 726 MovieClip "fire5" in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 726 MovieClip "fire4" in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 726 MovieClip "fire1" in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 726 MovieClip "fire3" in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 765 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 2;
if (this._x < 0) {
this._x = 1300;
}
}
Instance of Symbol 768 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
if (this._x < 0) {
this._x = 1300;
}
}
Instance of Symbol 771 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 2;
if (this._x > 1350) {
this._x = -100;
}
}
Instance of Symbol 774 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 3;
if (this._x > 1350) {
this._x = -100;
}
}
Instance of Symbol 774 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 3;
if (this._x > 1350) {
this._x = -100;
}
}
Instance of Symbol 768 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
if (this._x < 0) {
this._x = 1300;
}
}
Symbol 777 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 40
stop();
_root.play();
Instance of Symbol 807 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 810 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 813 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 816 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 819 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 822 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 828 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 831 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 834 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 837 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 840 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
} else {
this._y = this._y + 1;
}
}
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 2
play();
Symbol 857 MovieClip Frame 50
stop();
Symbol 867 MovieClip Frame 1
stop();
Symbol 867 MovieClip Frame 2
play();
Symbol 867 MovieClip Frame 50
stop();
Symbol 871 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 50
stop();
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 50
stop();
Symbol 879 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 24
stop();
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 50
stop();
Instance of Symbol 871 MovieClip in Symbol 884 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_root.space.gotoAndStop(_root.space._currentframe + 1);
gotoAndPlay (2);
if (_root.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 875 MovieClip in Symbol 884 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_root.space.gotoAndStop(_root.space._currentframe + 1);
gotoAndPlay (2);
if (_root.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 879 MovieClip in Symbol 884 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_root.space.gotoAndStop(_root.space._currentframe + 1);
gotoAndPlay (2);
if (_root.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 883 MovieClip in Symbol 884 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_root.space.gotoAndStop(_root.space._currentframe + 1);
gotoAndPlay (2);
if (_root.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Symbol 894 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 2
play();
Symbol 894 MovieClip Frame 50
stop();
Symbol 913 MovieClip Frame 1
stop();
Symbol 913 MovieClip Frame 2
play();
Symbol 913 MovieClip Frame 50
stop();
Symbol 926 MovieClip Frame 1
stop();
Symbol 926 MovieClip Frame 50
stop();
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 2
play();
Symbol 945 MovieClip Frame 50
stop();
Symbol 948 MovieClip Frame 1
stop();
Instance of Symbol 947 MovieClip "hit" in Symbol 948 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_6.flag = false;
flag = true;
}
}
}
Symbol 948 MovieClip Frame 800
stop();
Symbol 952 MovieClip Frame 1
stop();
Symbol 970 MovieClip Frame 1
stop();
Instance of Symbol 947 MovieClip "hit" in Symbol 970 MovieClip Frame 10
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_3.flag = false;
flag = true;
}
}
}
Instance of Symbol 802 MovieClip "stone_1" in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
this._y = this._y + 0.5;
if (this._y > 0) {
flag = true;
}
_root.space.hits(this.hit);
}
}
Instance of Symbol 802 MovieClip "stone_2" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!this.flag) && (_root.space.gameOn)) {
this._y = this._y + 0.2;
if (this._y > -100) {
this.flag = true;
}
_root.space.hits(this.hit);
}
}
Instance of Symbol 802 MovieClip "stone_3" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!this.flag) && (_root.space.gameOn)) {
this._y = this._y + 0.2;
if (this._y > -100) {
this.flag = true;
}
_root.space.hits(this.hit);
}
}
Instance of Symbol 847 MovieClip "stone_4" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!this.flag) && (_root.space.gameOn)) {
this._y = this._y + 0.2;
if (this._y > -100) {
this.flag = true;
}
_root.space.hits(this.hit);
}
}
Instance of Symbol 847 MovieClip "stone_5" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!this.flag) && (_root.space.gameOn)) {
this._y = this._y + 0.2;
if (this._y > -100) {
this.flag = true;
}
_root.space.hits(this.hit);
}
}
Instance of Symbol 857 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 867 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 894 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_root.space.gotoAndStop(_root.space._currentframe + 1);
gotoAndPlay (2);
if (_root.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 802 MovieClip "stone_7" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!this.flag) && (_root.space.gameOn)) {
this._y = this._y + 0.2;
if (this._y > -100) {
this.flag = true;
}
_root.space.hits(this.hit);
}
}
Instance of Symbol 913 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 926 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
flag = true;
_parent._parent.space.gotoAndStop(_parent._parent.space._currentframe + 1);
gotoAndPlay (2);
if (_parent._parent.space._currentframe == 4) {
_root.space.gameover = true;
_root.space.gameOn = false;
}
}
}
}
Instance of Symbol 948 MovieClip "stone_6" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!this.flag) && (_root.space.gameOn)) {
this._y = this._y + 0.2;
if (this._y > -100) {
this.flag = true;
}
if (_root.space.hits(this.hit)) {
this.flag = true;
this.s.gotoAndPlay(2);
}
}
}
Instance of Symbol 947 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_2.flag = false;
flag = true;
}
}
}
Instance of Symbol 947 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_3.flag = false;
flag = true;
}
}
}
Instance of Symbol 947 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_4.flag = false;
flag = true;
}
}
}
Instance of Symbol 947 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_6.flag = false;
flag = true;
}
}
}
Instance of Symbol 947 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_7.flag = false;
flag = true;
}
}
}
Instance of Symbol 947 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
flag = false;
}
onClipEvent (enterFrame) {
if ((!flag) && (_root.space.gameOn)) {
if (_root.space.hits1(this)) {
_parent.stone_5.flag = false;
flag = true;
}
}
}
Instance of Symbol 952 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.space.gameOn && (random(60) == 0)) {
gotoAndPlay (2);
}
_root.space.hits2(this.hit);
}
Instance of Symbol 952 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.space.gameOn && (random(60) == 0)) {
gotoAndPlay (2);
}
_root.space.hits2(this.hit);
}
Instance of Symbol 952 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.space.gameOn && (random(60) == 0)) {
gotoAndPlay (2);
}
_root.space.hits2(this.hit);
}
Instance of Symbol 953 MovieClip "lasthit" in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 952 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.space.gameOn && (random(60) == 0)) {
gotoAndPlay (2);
}
_root.space.hits2(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Instance of Symbol 970 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((random(50) == 1) && (this._currentframe == 1)) {
gotoAndPlay (2);
}
_root.space.hits(this.hit);
}
Symbol 1015 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 4
play();
Symbol 1015 MovieClip Frame 22
stop();