Frame 1
_root._quality = "MEDIUM";
var i = 0;
var l = 0;
var cash = 10000;
var totalNos = 1000;
var totalHp = 1000;
var totalSpeed = 6;
var totalAccel = 0.1;
var maxNos = new Array(250, 600, 750, 1000);
var Speed = new Array(4, 5, 5.5, 6);
var accel = new Array(0.02, 0.05, 0.08, 0.1);
var maxHp = new Array(300, 600, 750, 1000);
var level = new Array("lev1", "lev2", "lev3", "lev4", "lev5", "lev6", "lev7", "lev8");
var beat = new Array(0, 0, 0, 0, 0, 0, 0, 0);
var unlocked = new Array(1, 0, 0, 0, 0, 0, 0, 0);
var carBuy = new Array(1, 0, 0, 0);
_root.onEnterFrame = function () {
_root.hud.money_hold = _root.cash + "$";
_root.money_holdB = _root.cash + "$";
if (_root.car.sec < 10) {
_root.hud.time_hold = (_root.car.mins + ":0") + _root.car.sec;
} else {
_root.hud.time_hold = (_root.car.mins + ":") + _root.car.sec;
}
if (Speed[i] > totalSpeed) {
Speed[i] = totalSpeed;
}
if (accel[i] > totalAccel) {
accel[i] > totalAccel;
}
if (maxHp[i] > totalHp) {
maxHp[i] = totalHp;
}
if (maxNos[i] > totalNos) {
maxNos[i] = totalNos;
}
if (i > 3) {
i = 3;
}
if (i < 0) {
i = 0;
}
};
Frame 2
stopAllSounds();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[7] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[6] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[5] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[4] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[3] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[2] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[1] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.beat[0] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[0] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[1] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[2] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[3] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[4] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[5] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[6] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.unlocked[7] == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 172 MovieClip in Frame 7
onClipEvent (enterFrame) {
if ((_root.carBuy[2] == 0) && (_root.carBuy[1] == 1)) {
_visible = true;
} else {
_visible = false;
}
}
on (press) {
if (((_root.carBuy[2] == 0) && (_root.cash >= 25000)) && (_root.carBuy[1] == 1)) {
_root.carBuy[2] = 1;
_root.cash = _root.cash - 25000;
}
}
Instance of Symbol 174 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.carBuy[1] == 0) {
_visible = true;
} else {
_visible = false;
}
}
on (press) {
if ((_root.carBuy[1] == 0) && (_root.cash >= 15000)) {
_root.carBuy[1] = 1;
_root.cash = _root.cash - 15000;
}
}
Instance of Symbol 191 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.bar._xscale = (_root.Speed[_root.i] / _root.totalSpeed) * 100;
}
Instance of Symbol 191 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.bar._xscale = (_root.maxNos[_root.i] / _root.totalNos) * 100;
}
Instance of Symbol 191 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.bar._xscale = (_root.maxHp[_root.i] / _root.totalHp) * 100;
}
Instance of Symbol 191 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.bar._xscale = (_root.accel[_root.i] / _root.totalAccel) * 100;
}
Instance of Symbol 206 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(_root.i + 1);
_rotation = (_rotation+1);
this.nos_exe._visible = false;
}
Instance of Symbol 208 MovieClip in Frame 7
onClipEvent (enterFrame) {
if ((_root.carBuy[3] == 0) && (_root.carBuy[2] == 1)) {
_visible = true;
} else {
_visible = false;
}
}
on (press) {
if (((_root.carBuy[3] == 0) && (_root.cash >= 40000)) && (_root.carBuy[2] == 1)) {
_root.carBuy[3] = 1;
_root.cash = _root.cash - 40000;
}
}
Instance of Symbol 211 MovieClip in Frame 7
on (release) {
if (_root.carBuy[_root.i - 1] == 1) {
_root.i--;
}
}
Instance of Symbol 211 MovieClip in Frame 7
on (release) {
if (_root.carBuy[_root.i + 1] == 1) {
_root.i++;
}
}
Instance of Symbol 206 MovieClip "car" in Frame 8
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 20;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Instance of Symbol 254 MovieClip "hud" in Frame 8
onClipEvent (enterFrame) {
_x = (_root.car._x + 15);
_y = (_root.car._y - 35);
}
Instance of Symbol 258 MovieClip in Frame 8
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
}
Instance of Symbol 206 MovieClip "car" in Frame 10
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 15;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Instance of Symbol 206 MovieClip "car" in Frame 11
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 20;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Instance of Symbol 254 MovieClip "hud" in Frame 12
onClipEvent (enterFrame) {
_x = (_root.car._x + 15);
_y = (_root.car._y - 35);
}
Instance of Symbol 206 MovieClip "car" in Frame 12
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 30;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Instance of Symbol 206 MovieClip "car" in Frame 13
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 20;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Instance of Symbol 206 MovieClip "car" in Frame 14
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 50;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Instance of Symbol 206 MovieClip "car" in Frame 15
onClipEvent (load) {
var speed = 0;
var hp = _root.maxHp[_root.i];
var maxSpeed = _root.Speed[_root.i];
var setSpeed = maxSpeed;
var acc = _root.accel[_root.i];
var nos = _root.maxNos[_root.i];
var boost = (maxSpeed * 1.5);
var slow = 0.98;
var blur = ((maxSpeed / 10) * 8);
var mins = 1;
var sec = 25;
var ticks = 40;
}
onClipEvent (enterFrame) {
ticks--;
if (ticks == 0) {
sec--;
ticks = 40;
}
if (sec == 0) {
if (mins > 0) {
mins--;
sec = 60;
}
}
if ((mins <= 0) && (sec <= 0)) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (hp <= 0) {
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
if (_root.road.hitTest(_x, _y, true)) {
_root.cash = _root.cash + Math.round(speed / 2);
} else {
hp--;
_root.cash = _root.cash - Math.round(speed);
}
this.gotoAndStop(_root.i + 1);
if (Key.isDown(32) && (nos > 0)) {
maxSpeed = boost;
nos--;
this.nos_exe._visible = true;
} else {
this.nos_exe._visible = false;
maxSpeed = setSpeed;
}
gapX = _x - _root._xmouse;
gapY = _y - _root._ymouse;
dist = Math.sqrt((gapX * gapX) + (gapY * gapY));
if (speed > blur) {
this.filters = new Array(new flash.filters.BlurFilter(3, 3, 4));
} else {
this.filters = new Array(new flash.filters.BlurFilter(0, 0, 0));
}
_x = (_x + x);
_y = (_y + y);
if (Key.isDown(1)) {
speed = speed + acc;
} else {
speed = speed * slow;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (_root.wall.hitTest(_x, _y - (_height / 2), true)) {
_y = (_y + speed);
}
if (_root.wall.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - speed);
}
if (_root.wall.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x - speed);
}
if (_root.wall.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x + speed);
}
if (dist >= 10) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
Symbol 22 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 22 MovieClip Frame 61
_root.play();
Symbol 28 MovieClip Frame 10
stop();
stop();
Symbol 31 MovieClip Frame 10
stop();
Symbol 33 Button
on (release) {
getURL ("http://armorgame.com", "_blank");
}
Symbol 41 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 48 MovieClip Frame 81
_root.play();
_root.play();
Symbol 58 MovieClip Frame 10
stop();
stop();
Symbol 60 MovieClip Frame 10
stop();
Symbol 61 Button
on (release) {
_root.gotoAndStop("blacklist");
}
Symbol 66 MovieClip Frame 10
stop();
stop();
Symbol 69 MovieClip Frame 10
stop();
Symbol 70 Button
on (release) {
_root.gotoAndStop("ins");
}
Symbol 75 MovieClip Frame 10
stop();
stop();
Symbol 78 MovieClip Frame 10
stop();
Symbol 79 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 87 MovieClip Frame 10
stop();
stop();
Symbol 90 MovieClip Frame 10
stop();
Symbol 91 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 128 Button
on (release) {
_root.gotoAndStop("shop");
}
Symbol 130 Button
on (release) {
_root.gotoAndStop(_root.level[_root.l]);
}
Symbol 158 Button
on (release) {
if (_root.cash >= 4000) {
_root.maxNos[_root.i] = _root.maxNos[_root.i] + 50;
_root.cash = _root.cash - 4000;
}
}
Symbol 161 Button
on (release) {
if (_root.cash >= 5000) {
_root.Speed[_root.i] = _root.Speed[_root.i] + 0.2;
_root.cash = _root.cash - 5000;
}
}
Symbol 166 Button
on (release) {
if (_root.cash >= 3000) {
_root.maxHp[_root.i] = _root.maxHp[_root.i] + 100;
_root.cash = _root.cash - 3000;
}
}
Symbol 184 Button
on (release) {
if (_root.cash >= 3000) {
_root.accel[_root.i] = _root.accel[_root.i] + 0.01;
_root.cash = _root.cash - 3000;
}
}
Symbol 191 MovieClip Frame 1
Symbol 212 Button
on (release) {
gotoAndStop ("blacklist");
}
Instance of Symbol 218 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 5000;
_root.unlocked[1] = 1;
_root.beat[0] = 1;
_root.l = 1;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((_root.car.speed / _root.car.boost) * 360);
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
this.barB._xscale = (_root.car.hp / _root.maxHp[_root.i]) * 100;
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
this.barB._xscale = (_root.car.nos / _root.maxNos[_root.i]) * 100;
}
Symbol 258 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 263 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 6000;
_root.unlocked[2] = 1;
_root.beat[1] = 1;
_root.l = 2;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 269 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 7000;
_root.unlocked[3] = 1;
_root.beat[2] = 1;
_root.l = 3;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 8000;
_root.unlocked[4] = 1;
_root.beat[3] = 1;
_root.l = 4;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 281 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 8000;
_root.unlocked[5] = 1;
_root.beat[4] = 1;
_root.l = 5;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 287 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 9000;
_root.unlocked[6] = 1;
_root.beat[5] = 1;
_root.l = 6;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.cash = _root.cash + 10000;
_root.unlocked[7] = 1;
_root.beat[6] = 1;
_root.l = 7;
_root.time_holdB = _root.hud.time_hold;
_root.gotoAndStop("blacklist");
}
}
Instance of Symbol 299 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
_root.gotoAndStop("win");
}
}
Symbol 307 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 314 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay(1);
}