Frame 2
stop();
Frame 33
stop();
Instance of Symbol 90 MovieClip "DA" in Frame 33
onClipEvent (load) {
crashSOUND = new Sound();
crashSOUND.attachSound("CARCRSH1");
speed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
this.gotoAndStop(1);
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
this.gotoAndStop(1);
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
this.gotoAndStop(1);
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
this.gotoAndStop(1);
}
if ((((!Key.isDown(37)) && (!Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
this.gotoAndStop(2);
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
this.gotoAndStop(1);
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
this.gotoAndStop(1);
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
this.gotoAndStop(1);
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
this.gotoAndStop(1);
}
if (_y < 5) {
_y = 5;
}
if (295 < _y) {
_y = 295;
}
if (_x < 5) {
_x = 5;
}
if (595 < _x) {
_x = 595;
}
if (this.hitTest(_root.car.car1)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car1.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car2)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car2.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car3)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car3.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car4)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car4.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car5)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car5.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (_root.boundry.hitTest(getBounds(_root).xMax, _y, true)) {
_x = (_x - 5);
}
if (_root.boundry.hitTest(getBounds(_root).xMin, _y, true)) {
_x = (_x + 5);
}
if (_root.boundry.hitTest(_x, getBounds(_root).yMax, true)) {
_y = (_y - 5);
}
if (_root.boundry.hitTest(_x, getBounds(_root).yMin, true)) {
_y = (_y + 5);
}
if (this.hitTest(_root.winTARGET)) {
_root.gotoAndPlay(31);
}
_root.daX = this._x;
_root.daY = this._y;
_root.daR = this._rotation;
}
Instance of Symbol 120 MovieClip "DAlose" in Frame 34
onClipEvent (enterFrame) {
this._x = _root.daX;
this._y = _root.daY;
this._rotation = _root.daR;
}
Frame 60
_root.gotoAndStop(_currentframe - 27);
Frame 76
stop();
Frame 98
stop();
Instance of Symbol 90 MovieClip "DA" in Frame 98
onClipEvent (load) {
crashSOUND = new Sound();
crashSOUND.attachSound("CARCRSH1");
speed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
this.gotoAndStop(1);
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
this.gotoAndStop(1);
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
this.gotoAndStop(1);
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
this.gotoAndStop(1);
}
if ((((!Key.isDown(37)) && (!Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
this.gotoAndStop(2);
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
this.gotoAndStop(1);
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
this.gotoAndStop(1);
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
this.gotoAndStop(1);
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
this.gotoAndStop(1);
}
if (_y < 5) {
_y = 5;
}
if (295 < _y) {
_y = 295;
}
if (_x < 5) {
_x = 5;
}
if (595 < _x) {
_x = 595;
}
if (this.hitTest(_root.car.car1)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car1.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car2)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car2.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car3)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car3.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car4)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car4.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car5)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car5.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (_root.boundry.hitTest(getBounds(_root).xMax, _y, true)) {
_x = (_x - 5);
}
if (_root.boundry.hitTest(getBounds(_root).xMin, _y, true)) {
_x = (_x + 5);
}
if (_root.boundry.hitTest(_x, getBounds(_root).yMax, true)) {
_y = (_y - 5);
}
if (_root.boundry.hitTest(_x, getBounds(_root).yMin, true)) {
_y = (_y + 5);
}
if (this.hitTest(_root.winTARGET)) {
_root.gotoAndPlay(31);
}
_root.daX = this._x;
_root.daY = this._y;
_root.daR = this._rotation;
}
Instance of Symbol 120 MovieClip "DAlose" in Frame 99
onClipEvent (enterFrame) {
this._x = _root.daX;
this._y = _root.daY;
this._rotation = _root.daR;
}
Frame 125
_root.gotoAndStop(_currentframe - 27);
Frame 141
stop();
Frame 163
stop();
Instance of Symbol 90 MovieClip "DA" in Frame 163
onClipEvent (load) {
crashSOUND = new Sound();
crashSOUND.attachSound("CARCRSH1");
speed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
this.gotoAndStop(1);
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
this.gotoAndStop(1);
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
this.gotoAndStop(1);
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
this.gotoAndStop(1);
}
if ((((!Key.isDown(37)) && (!Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
this.gotoAndStop(2);
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
this.gotoAndStop(1);
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
this.gotoAndStop(1);
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
this.gotoAndStop(1);
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
this.gotoAndStop(1);
}
if (_y < 5) {
_y = 5;
}
if (295 < _y) {
_y = 295;
}
if (_x < 5) {
_x = 5;
}
if (595 < _x) {
_x = 595;
}
if (this.hitTest(_root.car.car1)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car1.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car2)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car2.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car3)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car3.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car4)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car4.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (this.hitTest(_root.car.car5)) {
crashSOUND.start();
_root.status = true;
_root.car.stop();
_root.car.car5.gotoAndStop(2);
_root.gotoAndPlay(_root._currentframe + 1);
}
if (_root.boundry.hitTest(getBounds(_root).xMax, _y, true)) {
_x = (_x - 5);
}
if (_root.boundry.hitTest(getBounds(_root).xMin, _y, true)) {
_x = (_x + 5);
}
if (_root.boundry.hitTest(_x, getBounds(_root).yMax, true)) {
_y = (_y - 5);
}
if (_root.boundry.hitTest(_x, getBounds(_root).yMin, true)) {
_y = (_y + 5);
}
if (this.hitTest(_root.winTARGET)) {
_root.gotoAndPlay(31);
}
_root.daX = this._x;
_root.daY = this._y;
_root.daR = this._rotation;
}
Instance of Symbol 155 MovieClip "mc0" in Frame 163
onClipEvent (load) {
maxSpeed = 5;
agility = 10;
fov = 240;
rov = 600;
}
onClipEvent (enterFrame) {
if (!this.angle) {
this.angle = this._rotation - 90;
}
this.speed = this.speed + (1 - random(2));
if (this.maxspeed < this.speed) {
this.speed = this.maxspeed;
}
if (this.speed < 1) {
this.speed = 1;
}
dx = _root.DA._x - this._x;
dy = _root.DA._y - this._y;
angletofood = math.round(((math.atan2(dy, dx) / math.pi) * 180) - this.angle);
if (angletofood < -180) {
angletofood = angletofood + 360;
}
if (180 < angletofood) {
angletofood = angletofood - 360;
}
disttofood = math.round(math.sqrt((dx * dx) + (dy * dy)));
if (((this.fov / 2) >= math.abs(angletofood)) && (this.rov >= disttofood)) {
this.aby = ((this.agility < angletofood) ? (this.agility % angletofood) : (angletofood / this.agility));
this.angle = this.angle + this.aby;
} else {
this.aby = (1 - math.round(math.random() * 2)) * this.agility;
this.angle = this.angle + this.aby;
}
this._rotation = this.angle + 90;
this._x = this._x + (this.speed * math.cos((this.angle * math.pi) / 180));
this._y = this._y + (this.speed * math.sin((this.angle * math.pi) / 180));
if (this.hittest(_root.DA)) {
_root._root.DA.speed = 1;
this.play();
} else {
_root._root.DA.speed = 5;
}
if (this._x < 0) {
this._x = 0;
this.angle = this.angle + 180;
}
if (this._y < 0) {
this._y = 0;
this.angle = this.angle + 180;
}
if (600 < this._x) {
this._x = 600;
this.angle = this.angle + 180;
}
if (300 < this._y) {
this._y = 300;
this.angle = this.angle + 180;
}
}
Instance of Symbol 120 MovieClip "DAlose" in Frame 164
onClipEvent (enterFrame) {
this._x = _root.daX;
this._y = _root.daY;
this._rotation = _root.daR;
}
Frame 190
_root.gotoAndStop(_currentframe - 27);
Frame 206
stop();
Frame 228
stop();
Symbol 13 MovieClip Frame 1
_root.stop();
Symbol 13 MovieClip Frame 2
if (_root.getBytesLoaded() < 160000) {
loading_bar._xscale = (_root.getBytesLoaded() / 160000) * 100;
KB_loaded = Math.floor(_root.getBytesLoaded() / 1000);
total_KB = Math.floor(_root.getBytesTotal() / 1000);
gotoAndPlay(_currentframe - 1);
} else {
play();
}
Symbol 13 MovieClip Frame 10
stop();
_root.play();
Symbol 23 Button
on (release) {
play();
}
Symbol 44 Button
on (release) {
nextFrame();
}
Symbol 71 Button
on (release) {
gotoAndStop (1);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
this.rnd = math.floor((Math.random() * 200) + 10);
i = 1;
Symbol 98 MovieClip Frame 3
if (rnd >= i) {
gotoAndPlay (2);
i = i + 1;
} else {
gotoAndPlay (15);
}
Symbol 98 MovieClip Frame 15
i = 1;
Symbol 98 MovieClip Frame 16
if (this.hitTest(_root.DA)) {
gotoAndPlay (30);
}
Symbol 98 MovieClip Frame 17
if (rnd >= i) {
gotoAndPlay (16);
i = i + 1;
} else {
gotoAndPlay (1);
}
Symbol 98 MovieClip Frame 35
stop();
if (_root.scoreCLIP.score.homesleft >= 2) {
_root.scoreCLIP.score.homesleft = _root.scoreCLIP.score.homesleft - 1;
} else {
_root.gotoAndPlay(_root._currentframe + 44);
}
Symbol 113 MovieClip Frame 1
_root.timeUP = "false";
Symbol 113 MovieClip Frame 695
stop();
_root.timeUP = "true";
if (0 < _root.scoreCLIP.score.homesleft) {
_root.gotoAndPlay(_root._currentframe + 30);
}
Symbol 120 MovieClip Frame 21
stop();
Symbol 131 Button
on (release) {
_root.gotoAndStop(_currentframe - 43);
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 166 Button
on (release) {
gotoAndPlay (1);
stopAllSounds();
}