Frame 1
_root.play;
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
p = Math.ceil((loaded / total) * 100);
per = Math.floor(p);
percent = per + "%";
if (loaded == total) {
_root.gotoAndStop("fullyloaded");
} else if (loaded != total) {
_root.bar._xscale = per;
}
Frame 2
gotoAndPlay (1);
Frame 3
function radio_add() {
attachMovie("radio", "radio", depth);
radio._x = 275;
radio._y = 380;
}
function radio_remove() {
radio.radiomusic.stop();
removeMovieClip("radio");
}
function killplus1() {
killed = killed + 1;
}
function carblowup() {
blow = new Sound();
myMusicVolume = 30;
blow.setVolume(myMusicVolume);
blow.attachSound("explosion");
blow.start(0, 0);
}
function healthcheck() {
if (health > 100) {
health = 100;
}
}
function yin100check() {
if (yingyang < -100) {
yingyang = -100;
}
}
function cashcheck() {
if (cash <= 0) {
cash = 0;
}
}
_global.radio_on = false;
_root.carwanted = "Nothing";
_global.skate1 = false;
_global.skate2 = false;
_global.skate3 = false;
_global.music_on = true;
_global.music_off = false;
_global.frame1_active = false;
_global.frame2_active = false;
_global.frame3_active = false;
_global.frame4_active = false;
_global.frame5_active = false;
_global.frame6_active = false;
_global.frame7_active = false;
_global.frame8_active = false;
_global.frame9_active = false;
_global.hero_active = true;
_global.car_active1 = false;
_global.car_active2 = false;
_global.car_active3 = false;
_global.car_active4 = false;
_global.heroleft_car1 = false;
_global.heroleft_car2 = false;
_global.heroleft_car3 = false;
_global.heroleft_car4 = false;
_global.unarmed = true;
_global.pistole = false;
_global.shooting = false;
_global.shotgun = false;
_global.shooting2 = false;
_global.katana = false;
killed = 0;
health = 100;
yingyang = 0;
cash = 10;
_global.mission1_active = true;
_global.mission1_start = false;
_global.mission2_active = false;
_global.mission2_start = false;
_global.mission3_active = false;
_global.mission3_start = false;
_global.mission4_active = false;
_global.mission4_start = false;
_global.mission5_active = false;
_global.mission5_start = false;
stop();
Instance of Symbol 199 MovieClip "menu" in Frame 3
onClipEvent (load) {
playing = false;
}
onClipEvent (enterFrame) {
if (playing == false) {
mymusic = new Sound();
mymusic.attachSound("intro");
mymusic.start(0, 999);
playing = true;
}
}
Frame 4
stop();
Frame 5
function falseframes() {
var _local1 = _global;
_local1.frame1_active = false;
_local1.frame2_active = false;
_local1.frame3_active = false;
_local1.frame4_active = false;
_local1.frame5_active = false;
_local1.frame6_active = false;
_local1.frame7_active = false;
_local1.frame8_active = false;
_local1.frame9_active = false;
}
function frame2_active() {
falseframes();
_global.frame2_active = true;
}
function frame1_active() {
falseframes();
_global.frame1_active = true;
}
function frame3_active() {
falseframes();
_global.frame3_active = true;
}
function frame4_active() {
falseframes();
_global.frame2_active = true;
}
function frame5_active() {
falseframes();
_global.frame6_active = true;
}
function frame6_active() {
falseframes();
_global.frame1_active = true;
}
function frame7_active() {
falseframes();
_global.frame4_active = true;
}
function frame8_active() {
falseframes();
_global.frame3_active = true;
}
function frame9_active() {
falseframes();
_global.frame9_active = true;
}
function frame10_active() {
falseframes();
_global.frame7_active = true;
}
function frame11_active() {
falseframes();
_global.frame4_active = true;
}
function frame12_active() {
falseframes();
_global.frame8_active = true;
}
function frame13_active() {
falseframes();
_global.frame6_active = true;
}
function frame14_active() {
falseframes();
_global.frame8_active = true;
}
function frame15_active() {
falseframes();
_global.frame9_active = true;
}
function frame16_active() {
falseframes();
_global.frame7_active = true;
}
function HitTest_car1() {
var _local1 = _root;
a = 0;
while (a < 10) {
if (_local1.car1.hitTest(_local1["v_left_wall" + a])) {
_local1.car1._x = _local1["v_left_wall" + a]._x + 28;
}
if (_local1.car1.hitTest(_local1["h_top_wall" + a])) {
_local1.car1._y = _local1["h_top_wall" + a]._y + 28;
}
if (_local1.car1.hitTest(_local1["v_right_wall" + a])) {
_local1.car1._x = _local1["v_right_wall" + a]._x - 28;
}
if (_local1.car1.hitTest(_local1["h_bottom_wall" + a])) {
_local1.car1._y = _local1["h_bottom_wall" + a]._y - 28;
}
a++;
}
}
function HitTest_car2() {
var _local1 = _root;
a = 0;
while (a < 10) {
if (_local1.car2.hitTest(_local1["v_left_wall" + a])) {
_local1.car2._x = _local1["v_left_wall" + a]._x + 28;
}
if (_local1.car2.hitTest(_local1["h_top_wall" + a])) {
_local1.car2._y = _local1["h_top_wall" + a]._y + 28;
}
if (_local1.car2.hitTest(_local1["v_right_wall" + a])) {
_local1.car2._x = _local1["v_right_wall" + a]._x - 28;
}
if (_local1.car2.hitTest(_local1["h_bottom_wall" + a])) {
_local1.car2._y = _local1["h_bottom_wall" + a]._y - 28;
}
a++;
}
}
function HitTest_car3() {
var _local1 = _root;
a = 0;
while (a < 10) {
if (_local1.car3.hitTest(_local1["v_left_wall" + a])) {
_local1.car3._x = _local1["v_left_wall" + a]._x + 28;
}
if (_local1.car3.hitTest(_local1["h_top_wall" + a])) {
_local1.car3._y = _local1["h_top_wall" + a]._y + 28;
}
if (_local1.car3.hitTest(_local1["v_right_wall" + a])) {
_local1.car3._x = _local1["v_right_wall" + a]._x - 28;
}
if (_local1.car3.hitTest(_local1["h_bottom_wall" + a])) {
_local1.car3._y = _local1["h_bottom_wall" + a]._y - 28;
}
a++;
}
}
function HitTest_car4() {
var _local1 = _root;
a = 0;
while (a < 10) {
if (_local1.car4.hitTest(_local1["v_left_wall" + a])) {
_local1.car4._x = _local1["v_left_wall" + a]._x + 28;
}
if (_local1.car4.hitTest(_local1["h_top_wall" + a])) {
_local1.car4._y = _local1["h_top_wall" + a]._y + 28;
}
if (_local1.car4.hitTest(_local1["v_right_wall" + a])) {
_local1.car4._x = _local1["v_right_wall" + a]._x - 28;
}
if (_local1.car4.hitTest(_local1["h_bottom_wall" + a])) {
_local1.car4._y = _local1["h_bottom_wall" + a]._y - 28;
}
a++;
}
}
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
_global.frame1_active = true;
_global.frame2_active = false;
stop();
Instance of Symbol 201 MovieClip "next_fr_1" in Frame 5
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame2_active = true;
_global.frame1_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = _root.hero._x - 500;
_parent.gotoAndStop(6);
}
}
Instance of Symbol 201 MovieClip "next_fr_5" in Frame 5
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame6_active = true;
_global.frame1_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 50;
_parent.gotoAndStop(10);
}
}
Instance of Symbol 202 MovieClip in Frame 5
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame2_active = true;
_global.frame1_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = _root.hero._x - 500;
_parent.gotoAndStop(6);
}
}
Instance of Symbol 213 MovieClip in Frame 5
/* no clip actions */
Instance of Symbol 220 MovieClip "people1" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
var _local2 = _global;
if (_local2.frame1_active == true) {
_local1._x = 170;
_local1._y = 410;
gotoAndPlay (1);
} else if (_local2.frame3_active == true) {
_local1._x = 480;
_local1._y = 410;
gotoAndPlay (1);
} else if (_local2.frame4_active == true) {
_local1._x = 480;
_local1._y = 410;
gotoAndPlay (1);
} else if (_local2.frame6_active == true) {
_local1._x = 170;
_local1._y = 410;
gotoAndPlay (1);
} else {
_local1._y = 410;
aispeed = 0;
gotoAndStop (1);
}
}
function timer() {
if (minTimer < 180) {
minTimer++;
} else if (minTimer == 180) {
_root.killplus1();
reset();
time = false;
minTimer = 0;
}
}
function hitTestcar() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 19) {
if (_local1.hitTest(_local2["car" + i])) {
_local1.gotoAndPlay(9);
aispeed = 0;
time = true;
}
i++;
}
if (time == true) {
timer();
}
}
function hitTestHero() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.hero)) {
aispeed = 0;
} else if (time == true) {
aispeed = 0;
} else {
aispeed = 1;
_local1._y = _local1._y - aispeed;
if (_local1._y < -20) {
reset();
}
}
if (_local1.hitTest(_local2.hero.fist1)) {
hitCount = hitCount + 1;
}
if (hitCount == 5) {
_local1.gotoAndPlay(9);
time = true;
hitCount = 0;
}
if (_local1.hitTest(_local2.hero.sword_strike)) {
_local1.gotoAndPlay(9);
time = true;
}
}
function Killed() {
time = true;
}
hitCount = 0;
aispeed = 1;
minTimer = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.frame1_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame2_active == true) {
}
if (_global.frame3_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame4_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame5_active == true) {
}
if (_global.frame6_active == true) {
hitTestHero();
hitTestcar();
}
}
Instance of Symbol 220 MovieClip "people3" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
var _local2 = _global;
if (_local2.frame2_active == true) {
_local1._x = 560;
_local1._y = 60;
gotoAndPlay (1);
} else if (_local2.frame7_active == true) {
_local1._x = 360;
_local1._y = 130;
gotoAndPlay (1);
} else if (_local2.frame8_active == true) {
_local1._x = 560;
_local1._y = 130;
gotoAndPlay (1);
} else if (_local2.frame9_active == true) {
_local1._x = 560;
_local1._y = 130;
gotoAndPlay (1);
} else {
_local1._y = -40;
aispeed = 0;
gotoAndStop (1);
}
}
function timer() {
if (minTimer < 180) {
minTimer++;
} else if (minTimer == 180) {
_root.killplus1();
reset();
time = false;
minTimer = 0;
}
}
function hitTestcar() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 19) {
if (_local1.hitTest(_local2["car" + i])) {
_local1.gotoAndPlay(9);
aispeed = 0;
time = true;
}
i++;
}
if (time == true) {
timer();
}
}
function hitTestHero() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.hero)) {
aispeed = 0;
} else if (time == true) {
aispeed = 0;
} else {
aispeed = 1;
_local1._x = _local1._x - aispeed;
if (_local1._x < -500) {
reset();
}
}
if (_local1.hitTest(_local2.hero.fist1)) {
hitCount = hitCount + 1;
}
if (hitCount == 5) {
_local1.gotoAndPlay(9);
time = true;
hitCount = 0;
}
if (_local1.hitTest((_local2.hero.sword_strike || (_local2.bullet)) || (_local2.bullet2))) {
_local1.gotoAndPlay(9);
time = true;
}
}
function Killed() {
time = true;
}
hitCount = 0;
aispeed = 1;
minTimer = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.frame2_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame7_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame8_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame9_active == true) {
hitTestHero();
hitTestcar();
}
}
Instance of Symbol 220 MovieClip "people4" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
if (_global.frame2_active == true) {
_local1._x = -20;
_local1._y = 166;
gotoAndPlay (1);
} else if (_global.frame7_active == true) {
_local1._x = -20;
_local1._y = 230;
gotoAndPlay (1);
} else {
_local1._x = -20;
aispeed = 0;
gotoAndStop (1);
}
}
function timer() {
if (minTimer < 180) {
minTimer++;
} else if (minTimer == 180) {
_root.killplus1();
reset();
time = false;
minTimer = 0;
}
}
function hitTestcar() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 19) {
if (_local1.hitTest(_local2["car" + i])) {
_local1.gotoAndPlay(9);
aispeed = 0;
time = true;
}
i++;
}
if (time == true) {
timer();
}
}
function hitTestHero() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.hero)) {
aispeed = 0;
} else if (time == true) {
aispeed = 0;
} else {
aispeed = 1;
_local1._x = _local1._x + aispeed;
if (_local1._x > 600) {
reset();
}
}
if (_local1.hitTest(_local2.hero.fist1)) {
hitCount = hitCount + 1;
}
if (hitCount == 5) {
_local1.gotoAndPlay(9);
time = true;
hitCount = 0;
}
if (_local1.hitTest((_local2.hero.sword_strike || (_local2.bullet)) || (_local2.bullet2))) {
_local1.gotoAndPlay(9);
time = true;
}
}
function Killed() {
time = true;
}
hitCount = 0;
aispeed = 1;
minTimer = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.frame2_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame7_active == true) {
hitTestHero();
hitTestcar();
}
}
Instance of Symbol 220 MovieClip "people2" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
var _local2 = _global;
if (_local2.frame1_active == true) {
_local1._x = 70;
_local1._y = -40;
gotoAndPlay (1);
} else if (_local2.frame3_active == true) {
_local1._x = 370;
_local1._y = -40;
gotoAndPlay (1);
} else if (_local2.frame4_active == true) {
_local1._x = 370;
_local1._y = -40;
gotoAndPlay (1);
} else if (_local2.frame6_active == true) {
_local1._x = 70;
_local1._y = -40;
gotoAndPlay (1);
} else {
_local1._y = -40;
aispeed = 0;
gotoAndStop (1);
}
}
function timer() {
if (minTimer < 180) {
minTimer++;
} else if (minTimer == 180) {
_root.killplus1();
reset();
time = false;
minTimer = 0;
}
}
function hitTestcar() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 19) {
if (_local1.hitTest(_local2["car" + i])) {
_local1.gotoAndPlay(9);
aispeed = 0;
time = true;
}
i++;
}
if (time == true) {
timer();
}
}
function hitTestHero() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.hero)) {
aispeed = 0;
} else if (time == true) {
aispeed = 0;
} else {
aispeed = 1;
_local1._y = _local1._y + aispeed;
if (_local1._y > 450) {
reset();
}
}
if (_local1.hitTest(_local2.hero.fist1)) {
hitCount = hitCount + 1;
}
if (hitCount == 5) {
_local1.gotoAndPlay(9);
time = true;
hitCount = 0;
}
if (_local1.hitTest((_local2.hero.sword_strike || (_local2.bullet)) || (_local2.bullet2))) {
_local1.gotoAndPlay(9);
time = true;
}
}
function Killed() {
time = true;
}
hitCount = 0;
aispeed = 1;
minTimer = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.frame1_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame2_active == true) {
}
if (_global.frame3_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame4_active == true) {
hitTestHero();
hitTestcar();
}
if (_global.frame5_active == true) {
}
if (_global.frame6_active == true) {
hitTestHero();
hitTestcar();
}
}
Instance of Symbol 249 MovieClip "car1" in Frame 5
onClipEvent (load) {
function reset_gettingout() {
var _local1 = _global;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
function random_car() {
var _local1 = this;
rnd = math.round(math.random() * 10);
if (rnd == 1) {
gotoAndStop (1);
car1 = "Dark Blue";
} else if (rnd == 2) {
car1 = "Truck";
gotoAndStop (2);
} else if (rnd == 3) {
car1 = "Green";
gotoAndStop (3);
} else if (rnd == 4) {
car1 = "Cool Blue";
gotoAndStop (4);
} else if (rnd == 5) {
car1 = "Motorbike";
gotoAndStop (6);
_local1.motorbike.gotoAndStop(1);
} else if (rnd == 6) {
car1 = "Soft-Top";
gotoAndStop (7);
_local1.notopcar.gotoAndStop(1);
} else if (rnd == 7) {
car1 = "Ambulance";
_local1.gotoAndStop(5);
} else if (rnd == 8) {
car1 = "School Bus";
_local1.gotoAndStop(8);
} else if (rnd == 9) {
car1 = "Police Car";
_local1.gotoAndStop(9);
} else if (rnd == 10) {
car1 = "Taxi";
_local1.gotoAndStop(10);
}
}
function carname() {
_root.currentcar = car1;
}
function clearname() {
_root.currentcar = "";
}
function reset_cars() {
var _local1 = _root;
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset() {
var _local1 = this;
var _local2 = _global;
_rotation = 270;
aispeed = 2;
random_car();
rnd = 0;
if (_local2.frame1_active == true) {
_local1._y = 550;
_local1._x = 100;
} else if (_local2.frame3_active == true) {
_local1._y = 550;
_local1._x = 406;
} else if (_local2.frame4_active == true) {
_local1._y = 550;
_local1._x = 406;
} else if (_local2.frame6_active == true) {
_local1._y = 550;
_local1._x = 100;
} else if (_local2.frame7_active == true) {
_local1._y = 550;
_local1._x = 330;
} else if (_local2.frame9_active == true) {
_local1._y = 550;
_local1._x = 100;
} else {
_local1._y = 550;
aispeed = 0;
}
}
function timer_cars() {
if (minTimer < 50) {
minTimer++;
} else if (minTimer == 50) {
time = false;
minTimer = 0;
aispeed = 3;
}
}
function hit_hero() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._y = _local1._y - aispeed;
if (_local1._y < -50) {
reset();
}
}
}
function hit_car() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.car2) or (_local1.hitTest(_local2.car3) or _local1.hitTest(_local2.car4))) {
time = true;
}
if (time == true) {
aispeed = aispeed - 0.5;
aispeed = aispeed * 0.8;
timer_cars();
} else if (time == false) {
aispeed = 2;
}
}
car1 = "";
minTimer = 0;
time = false;
speed2 = 0;
reset();
random_car();
}
onClipEvent (enterFrame) {
if (_global.car_active1 == true) {
if (car1 == "Motorbike") {
this.motorbike.gotoAndStop(1);
}
if (car1 == "Soft-Top") {
this.notopcar.gotoAndStop(1);
}
if (_global.radio_on == false) {
_root.radio_add();
_global.radio_on = true;
}
carname();
_root.HitTest_car1();
if (Key.isDown(38)) {
speed2 = speed2 + 2;
if (this.hitTest(_root.car2) or (this.hitTest(_root.car3) or this.hitTest(_root.car4))) {
speed2 = 0;
}
}
if (Key.isDown(40)) {
speed2 = speed2 - 1;
if (this.hitTest(_root.car2) or (this.hitTest(_root.car3) or this.hitTest(_root.car4))) {
speed2 = 0;
}
}
speed2 = speed2 * 0.8;
if (Key.isDown(39) && (Key.isDown(40))) {
_rotation = (_rotation - 3);
}
if (Key.isDown(37) && (Key.isDown(40))) {
_rotation = (_rotation + 3);
}
if (Key.isDown(39) && (Key.isDown(38))) {
_rotation = (_rotation + 5);
}
if (Key.isDown(37) && (Key.isDown(38))) {
_rotation = (_rotation - 5);
}
_x = (_x + (speed2 * Math.cos(_rotation / 57.3)));
_y = (_y + (speed2 * Math.sin(_rotation / 57.3)));
if (Key.isDown(16)) {
_global.car_active1 = false;
_root.radio_remove();
_global.radio_on = false;
if (car1 == "Motorbike") {
this.motorbike.gotoAndStop(2);
}
if (car1 == "Soft-Top") {
this.notopcar.gotoAndStop(2);
}
clearname();
_global.hero_active = true;
_root.hero._x = this._x;
_root.hero._y = this._y;
_global.heroleft_car1 = true;
}
if (this.hitTest(_root.next_fr_1)) {
_root.frame2_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_2)) {
_root.frame1_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_3)) {
_root.frame3_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_4)) {
_root.frame4_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_5)) {
_root.frame5_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_6)) {
_root.frame6_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_7)) {
_root.frame7_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_8)) {
_root.frame8_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_9)) {
_root.frame9_active();
this._y = 70;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_10)) {
_root.frame10_active();
this._y = 150;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
if (this.hitTest(_root.next_fr_11)) {
_root.frame11_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_12)) {
_root.frame12_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_13)) {
_root.frame13_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_14)) {
_root.frame14_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_15)) {
_root.frame15_active();
this._x = 500;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_16)) {
_root.frame16_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
} else if (_global.car_active1 == false) {
if (_global.frame1_active == true) {
if (_global.heroleft_car1 == false) {
hit_hero();
hit_car();
}
}
if (_global.frame3_active == true) {
if (_global.heroleft_car1 == false) {
hit_hero();
hit_car();
}
}
if (_global.frame4_active == true) {
if (_global.heroleft_car1 == false) {
hit_hero();
hit_car();
}
}
if (_global.frame6_active == true) {
if (_global.heroleft_car1 == false) {
hit_hero();
hit_car();
}
}
if (_global.frame7_active == true) {
if (_global.heroleft_car1 == false) {
}
}
if (_global.frame9_active == true) {
if (_global.heroleft_car1 == false) {
}
}
} else if (_global.heroleft_car1 == true) {
aispeed = 0;
}
}
Instance of Symbol 249 MovieClip "car2" in Frame 5
onClipEvent (load) {
function reset_gettingout() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
function car_hit() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.car1) or (_local1.hitTest(_local2.car3) or _local1.hitTest(_local2.car4))) {
time = true;
}
if (time == true) {
aispeed = aispeed - 0.5;
aispeed = aispeed * 0.8;
timer_cars();
} else if (time == false) {
aispeed = 2;
}
}
function hit_hero_2() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._y = _local1._y - aispeed;
if (_local1._y < -50) {
reset();
}
}
}
function hero_hit() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._x = _local1._x - aispeed;
if (_local1._x < -500) {
reset();
}
}
}
function random_car() {
var _local1 = this;
rnd = math.round(math.random() * 10);
if (rnd == 1) {
gotoAndStop (1);
car2 = "Dark Blue";
} else if (rnd == 2) {
car2 = "Truck";
gotoAndStop (2);
} else if (rnd == 3) {
car2 = "Green";
gotoAndStop (3);
} else if (rnd == 4) {
car2 = "Cool Blue";
gotoAndStop (4);
} else if (rnd == 5) {
car2 = "Motorbike";
gotoAndStop (6);
_local1.motorbike.gotoAndStop(1);
} else if (rnd == 6) {
car2 = "Soft-Top";
gotoAndStop (7);
_local1.notopcar.gotoAndStop(1);
} else if (rnd == 7) {
car2 = "Ambulance";
_local1.gotoAndStop(5);
} else if (rnd == 8) {
car2 = "School Bus";
_local1.gotoAndStop(8);
} else if (rnd == 9) {
car2 = "Police Car";
_local1.gotoAndStop(9);
} else if (rnd == 10) {
car2 = "Taxi";
_local1.gotoAndStop(10);
}
}
function carname() {
_root.currentcar = car2;
}
function clearname() {
_root.currentcar = "";
}
function reset_cars() {
var _local1 = _root;
_local1.car1.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset() {
var _local1 = this;
var _local2 = _global;
turning = false;
turn = false;
_rotation = 180;
aispeed = 3;
rnd = 0;
random_car();
if (_local2.frame1_active == true) {
_local1._x = 650;
_local1._y = 100;
}
if (_local2.frame2_active == true) {
_local1._x = 650;
_local1._y = 100;
}
if (_local2.frame3_active == true) {
_local1._x = 650;
_local1._y = 100;
}
if (_local2.frame7_active == true) {
_local1._x = 650;
_local1._y = 280;
}
if (_local2.frame8_active == true) {
_local1._x = 650;
_local1._y = 200;
}
if (_local2.frame9_active == true) {
_local1._x = 650;
_local1._y = 197;
} else {
_local1._x = 650;
aispeed = 0;
}
}
function timer_cars() {
if (minTimer < 60) {
minTimer++;
} else if (minTimer == 60) {
time = false;
minTimer = 0;
aispeed = 3;
}
}
car2 = "";
turning = false;
turn = false;
minTimer = 0;
time = false;
speed2 = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.car_active2 == true) {
if (car2 == "Motorbike") {
this.motorbike.gotoAndStop(1);
}
if (car2 == "Soft-Top") {
this.notopcar.gotoAndStop(1);
}
if (_global.radio_on == false) {
_root.radio_add();
_global.radio_on = true;
}
carname();
_root.HitTest_car2();
if (Key.isDown(38)) {
speed2 = speed2 + 2;
if (this.hitTest(_root.car1) or (this.hitTest(_root.car3) or this.hitTest(_root.car4))) {
speed2 = 0;
}
}
if (Key.isDown(40)) {
speed2 = speed2 - 1;
if (this.hitTest(_root.car1) or (this.hitTest(_root.car3) or this.hitTest(_root.car4))) {
speed2 = 0;
}
}
speed2 = speed2 * 0.8;
if (Key.isDown(39) && (Key.isDown(40))) {
_rotation = (_rotation - 3);
}
if (Key.isDown(37) && (Key.isDown(40))) {
_rotation = (_rotation + 3);
}
if (Key.isDown(39) && (Key.isDown(38))) {
_rotation = (_rotation + 5);
}
if (Key.isDown(37) && (Key.isDown(38))) {
_rotation = (_rotation - 5);
}
_x = (_x + (speed2 * Math.cos(_rotation / 57.3)));
_y = (_y + (speed2 * Math.sin(_rotation / 57.3)));
if (Key.isDown(16)) {
_global.car_active2 = false;
_root.radio_remove();
_global.radio_on = false;
if (car2 == "Motorbike") {
this.motorbike.gotoAndStop(2);
}
if (car2 == "Soft-Top") {
this.notopcar.gotoAndStop(2);
}
clearname();
_global.hero_active = true;
_root.hero._x = this._x;
_root.hero._y = this._y;
_global.heroleft_car2 = true;
}
if (this.hitTest(_root.next_fr_1)) {
_root.frame2_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_2)) {
_root.frame1_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_3)) {
_root.frame3_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_4)) {
_root.frame4_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_5)) {
_root.frame5_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_6)) {
_root.frame6_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_7)) {
_root.frame7_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_8)) {
_root.frame8_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_9)) {
_root.frame9_active();
this._y = 70;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_10)) {
_root.frame10_active();
this._y = 150;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
if (this.hitTest(_root.next_fr_11)) {
_root.frame11_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_12)) {
_root.frame12_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_13)) {
_root.frame13_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_14)) {
_root.frame14_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_15)) {
_root.frame15_active();
this._x = 500;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_16)) {
_root.frame16_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
} else if (_global.car_active2 == false) {
if (_global.frame1_active == true) {
if (_global.heroleft_car2 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame2_active == true) {
if (_global.heroleft_car2 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame3_active == true) {
if (_global.heroleft_car2 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame7_active == true) {
if (_global.heroleft_car2 == false) {
}
}
if (_global.frame8_active == true) {
if (_global.heroleft_car2 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame9_active == true) {
if (_global.heroleft_car2 == false) {
if (turn == false) {
hero_hit();
car_hit();
}
if (turning == false) {
if (this.hitTest(_root.fr9_turn)) {
_rotation = 270;
turning = true;
turn = true;
}
}
if (turning == true) {
hit_hero_2();
car_hit();
}
}
}
} else if (_global.heroleft_car2 == true) {
aispeed = 0;
}
}
Instance of Symbol 249 MovieClip "car3" in Frame 5
onClipEvent (load) {
function reset_gettingout() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car4 = false;
}
function random_car() {
var _local1 = this;
rnd = math.round(math.random() * 10);
if (rnd == 1) {
gotoAndStop (1);
car3 = "Dark Blue";
} else if (rnd == 2) {
car3 = "Truck";
gotoAndStop (2);
} else if (rnd == 3) {
car3 = "Green";
gotoAndStop (3);
} else if (rnd == 4) {
car3 = "Cool Blue";
gotoAndStop (4);
} else if (rnd == 5) {
car3 = "Motorbike";
gotoAndStop (6);
_local1.motorbike.gotoAndStop(1);
} else if (rnd == 6) {
car3 = "Soft-Top";
gotoAndStop (7);
_local1.notopcar.gotoAndStop(1);
} else if (rnd == 7) {
car3 = "Ambulance";
_local1.gotoAndStop(5);
} else if (rnd == 8) {
car3 = "School Bus";
_local1.gotoAndStop(8);
} else if (rnd == 9) {
car3 = "Police Car";
_local1.gotoAndStop(9);
} else if (rnd == 10) {
car3 = "Taxi";
_local1.gotoAndStop(10);
}
}
function carname() {
_root.currentcar = car3;
}
function clearname() {
_root.currentcar = "";
}
function reset_cars() {
var _local1 = _root;
_local1.car2.reset();
_local1.car1.reset();
_local1.car4.reset();
}
function reset() {
var _local1 = this;
var _local2 = _global;
turning = false;
turn = false;
_rotation = 0;
aispeed = 3;
rnd = 0;
random_car();
if (_local2.frame1_active == true) {
_local1._x = -50;
_local1._y = 135;
} else if (_local2.frame2_active == true) {
_local1._x = -150;
_local1._y = 135;
} else if (_local2.frame3_active == true) {
_local1._x = -150;
_local1._y = 135;
} else if (_local2.frame4_active == true) {
_root.amb._x = _local1._x;
_root.amb._y = _local1._y;
gotoAndStop (5);
} else if (_local2.frame7_active == true) {
_local1._x = -150;
_local1._y = 160;
} else if (_local2.frame8_active == true) {
_local1._x = -150;
_local1._y = 160;
} else if (_local2.frame9_active == true) {
_local1._x = -150;
_local1._y = 410;
} else {
_local1._x = -150;
_local1._y = 600;
aispeed = 0;
}
}
function timer_cars() {
if (minTimer < 40) {
minTimer++;
} else if (minTimer == 40) {
time = false;
minTimer = 0;
aispeed = 2.5;
}
}
function hit_hero_2() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._y = _local1._y - aispeed;
if (_local1._y < -50) {
reset();
}
}
}
function hero_hit() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._x = _local1._x + aispeed;
if (_local1._x > 600) {
reset();
}
}
}
function car_hit() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.car1) or (_local1.hitTest(_local2.car2) or _local1.hitTest(_local2.car4))) {
time = true;
}
if (time == true) {
aispeed = aispeed - 0.5;
aispeed = aispeed * 0.8;
timer_cars();
} else if (time == false) {
aispeed = 2.5;
}
}
car3 = "";
turning = false;
turn = false;
minTimer = 0;
time = false;
speed2 = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.car_active3 == true) {
if (car3 == "Motorbike") {
this.motorbike.gotoAndStop(1);
}
if (car3 == "Soft-Top") {
this.notopcar.gotoAndStop(1);
}
if (_global.radio_on == false) {
_root.radio_add();
_global.radio_on = true;
}
carname();
_root.HitTest_car3();
if (Key.isDown(38)) {
speed2 = speed2 + 2;
if (this.hitTest(_root.car1) or (this.hitTest(_root.car2) or this.hitTest(_root.car4))) {
speed2 = 0;
}
}
if (Key.isDown(40)) {
speed2 = speed2 - 1;
if (this.hitTest(_root.car1) or (this.hitTest(_root.car2) or this.hitTest(_root.car4))) {
speed2 = 0;
}
}
speed2 = speed2 * 0.8;
if (Key.isDown(39) && (Key.isDown(40))) {
_rotation = (_rotation - 3);
}
if (Key.isDown(37) && (Key.isDown(40))) {
_rotation = (_rotation + 3);
}
if (Key.isDown(39) && (Key.isDown(38))) {
_rotation = (_rotation + 5);
}
if (Key.isDown(37) && (Key.isDown(38))) {
_rotation = (_rotation - 5);
}
_x = (_x + (speed2 * Math.cos(_rotation / 57.3)));
_y = (_y + (speed2 * Math.sin(_rotation / 57.3)));
if (Key.isDown(16)) {
_global.car_active3 = false;
_root.radio_remove();
_global.radio_on = false;
if (car3 == "Motorbike") {
this.motorbike.gotoAndStop(2);
}
if (car3 == "Soft-Top") {
this.notopcar.gotoAndStop(2);
}
clearname();
_global.hero_active = true;
_root.hero._x = this._x;
_root.hero._y = this._y;
_global.heroleft_car3 = true;
}
if (this.hitTest(_root.next_fr_1)) {
_root.frame2_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_2)) {
_root.frame1_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_3)) {
_root.frame3_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_4)) {
_root.frame4_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_5)) {
_root.frame5_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_6)) {
_root.frame6_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_7)) {
_root.frame7_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_8)) {
_root.frame8_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_9)) {
_root.frame9_active();
this._y = 70;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_10)) {
_root.frame10_active();
this._y = 150;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
if (this.hitTest(_root.next_fr_11)) {
_root.frame11_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_12)) {
_root.frame12_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_13)) {
_root.frame13_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_14)) {
_root.frame14_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_15)) {
_root.frame15_active();
this._x = 500;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_16)) {
_root.frame16_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
} else if (_global.car_active3 == false) {
if (_global.frame1_active == true) {
if (_global.heroleft_car3 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame2_active == true) {
if (_global.heroleft_car3 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame3_active == true) {
if (_global.heroleft_car3 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame4_active == true) {
if (_global.heroleft_car3 == false) {
aispeed = 0;
this._x = _root.amb._x;
this._y = _root.amb._y;
car3 = "Ambulance";
if (this.hitTest(_root.bullet || (_root.bullet2))) {
_root.carblowup();
gotoAndStop (11);
blowup.play();
}
}
}
if (_global.frame7_active == true) {
if (_global.heroleft_car3 == false) {
if (turn == false) {
hero_hit();
car_hit();
}
if (turning == false) {
if (this.hitTest(_root.fr7_turn2)) {
_rotation = 270;
turning = true;
turn = true;
}
}
if (turning == true) {
hit_hero_2();
car_hit();
}
}
}
if (_global.frame8_active == true) {
if (_global.heroleft_car3 == false) {
hero_hit();
car_hit();
}
}
} else if (_global.heroleft_car3 == true) {
aispeed = 0;
}
}
Instance of Symbol 249 MovieClip "car4" in Frame 5
onClipEvent (load) {
function reset_gettingout() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
}
function random_car() {
var _local1 = this;
rnd = math.round(math.random() * 10);
if (rnd == 1) {
gotoAndStop (1);
car4 = "Dark Blue";
} else if (rnd == 2) {
car4 = "Truck";
gotoAndStop (2);
} else if (rnd == 3) {
car4 = "Green";
gotoAndStop (3);
} else if (rnd == 4) {
car4 = "Cool Blue";
gotoAndStop (4);
} else if (rnd == 5) {
car4 = "Motorbike";
gotoAndStop (6);
_local1.motorbike.gotoAndStop(1);
} else if (rnd == 6) {
car4 = "Soft-Top";
gotoAndStop (7);
_local1.notopcar.gotoAndStop(1);
} else if (rnd == 7) {
car4 = "Ambulance";
_local1.gotoAndStop(5);
} else if (rnd == 8) {
car4 = "School Bus";
_local1.gotoAndStop(8);
} else if (rnd == 9) {
car4 = "Police Car";
_local1.gotoAndStop(9);
} else if (rnd == 10) {
car4 = "Taxi";
_local1.gotoAndStop(10);
}
}
function carname() {
_root.currentcar = car4;
}
function clearname() {
_root.currentcar = "";
}
function reset_cars() {
var _local1 = _root;
_local1.car2.reset();
_local1.car3.reset();
_local1.car1.reset();
}
function reset() {
var _local1 = this;
var _local2 = _global;
turning = false;
turn = false;
_rotation = 90;
aispeed = 3;
rnd = 0;
random_car();
if (_local2.frame1_active == true) {
_local1._y = -240;
_local1._x = 140;
} else if (_local2.frame3_active == true) {
_local1._y = -70;
_local1._x = 448;
} else if (_local2.frame4_active == true) {
_local1._y = -70;
_local1._x = 448;
} else if (_local2.frame6_active == true) {
_local1._y = -70;
_local1._x = 140;
} else if (_local2.frame7_active == true) {
_local1._y = -20;
_local1._x = 440;
} else if (_local2.frame9_active == true) {
_local1._y = -70;
_local1._x = 140;
} else {
_local1._y = -70;
aispeed = 0;
}
}
function timer_cars() {
if (minTimer < 30) {
minTimer++;
} else if (minTimer == 30) {
time = false;
minTimer = 0;
aispeed = 3;
}
}
function hit_hero_2() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._x = _local1._x - aispeed;
aispeed = aispeed * 0.8;
if (_local1._x < -500) {
reset();
}
}
}
function hit_hero_3() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._x = _local1._x + aispeed;
aispeed = aispeed * 0.8;
if (_local1._x < -500) {
reset();
}
}
}
function hero_hit() {
var _local1 = this;
if (_local1.hitTest(_root.hero)) {
aispeed = 0;
} else {
_local1._y = _local1._y + aispeed;
aispeed = aispeed * 0.8;
if (_local1._y > 600) {
reset();
}
}
}
function car_hit() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.car1) or (_local1.hitTest(_local2.car2) or _local1.hitTest(_local2.car3))) {
time = true;
}
if (time == true) {
aispeed = aispeed - 0.5;
aispeed = aispeed * 0.8;
timer_cars();
} else if (time == false) {
aispeed = 2;
aispeed = aispeed * 0.8;
}
}
car4 = "";
turning = false;
turn = false;
minTimer = 0;
time = false;
speed2 = 0;
reset();
}
onClipEvent (enterFrame) {
if (_global.car_active4 == true) {
if (car4 == "Motorbike") {
this.motorbike.gotoAndStop(1);
}
if (car4 == "Soft-Top") {
this.notopcar.gotoAndStop(1);
}
if (_global.radio_on == false) {
_root.radio_add();
_global.radio_on = true;
}
carname();
_root.HitTest_car4();
if (Key.isDown(38)) {
speed2 = speed2 + 2;
if (this.hitTest(_root.car1) or (this.hitTest(_root.car2) or this.hitTest(_root.car3))) {
speed2 = 0;
}
}
if (Key.isDown(40)) {
speed2 = speed2 - 1;
if (this.hitTest(_root.car1) or (this.hitTest(_root.car2) or this.hitTest(_root.car3))) {
speed2 = 0;
}
}
speed2 = speed2 * 0.8;
if (Key.isDown(39) && (Key.isDown(40))) {
_rotation = (_rotation - 3);
}
if (Key.isDown(37) && (Key.isDown(40))) {
_rotation = (_rotation + 3);
}
if (Key.isDown(39) && (Key.isDown(38))) {
_rotation = (_rotation + 5);
}
if (Key.isDown(37) && (Key.isDown(38))) {
_rotation = (_rotation - 5);
}
_x = (_x + (speed2 * Math.cos(_rotation / 57.3)));
_y = (_y + (speed2 * Math.sin(_rotation / 57.3)));
if (Key.isDown(16)) {
_global.car_active4 = false;
_root.radio_remove();
_global.radio_on = false;
if (car4 == "Motorbike") {
this.motorbike.gotoAndStop(2);
}
if (car4 == "Soft-Top") {
this.notopcar.gotoAndStop(2);
}
clearname();
_global.hero_active = true;
_root.hero._x = this._x;
_root.hero._y = this._y;
_global.heroleft_car4 = true;
}
if (this.hitTest(_root.next_fr_1)) {
_root.frame2_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_2)) {
_root.frame1_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_3)) {
_root.frame3_active();
this._x = this._x - 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_4)) {
_root.frame4_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(6);
}
if (this.hitTest(_root.next_fr_5)) {
_root.frame5_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_6)) {
_root.frame6_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(5);
}
if (this.hitTest(_root.next_fr_7)) {
_root.frame7_active();
this._y = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_8)) {
_root.frame8_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(7);
}
if (this.hitTest(_root.next_fr_9)) {
_root.frame9_active();
this._y = 70;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_10)) {
_root.frame10_active();
this._y = 150;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
if (this.hitTest(_root.next_fr_11)) {
_root.frame11_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(8);
}
if (this.hitTest(_root.next_fr_12)) {
_root.frame12_active();
this._x = 450;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_13)) {
_root.frame13_active();
this._y = 350;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(10);
}
if (this.hitTest(_root.next_fr_14)) {
_root.frame14_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(12);
}
if (this.hitTest(_root.next_fr_15)) {
_root.frame15_active();
this._x = 500;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(13);
}
if (this.hitTest(_root.next_fr_16)) {
_root.frame16_active();
this._x = 100;
reset_cars();
reset_gettingout();
_parent.gotoAndStop(11);
}
} else if (_global.car_active4 == false) {
if (_global.frame1_active == true) {
if (_global.heroleft_car4 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame3_active == true) {
if (_global.heroleft_car4 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame4_active == true) {
if (_global.heroleft_car4 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame6_active == true) {
if (_global.heroleft_car4 == false) {
hero_hit();
car_hit();
}
}
if (_global.frame7_active == true) {
if (_global.heroleft_car4 == false) {
if (turn == false) {
hero_hit();
car_hit();
}
if (turning == false) {
if (this.hitTest(_root.fr7_turn)) {
_rotation = 180;
turning = true;
turn = true;
}
}
if (turning == true) {
hit_hero_2();
car_hit();
}
}
}
if (_global.frame9_active == true) {
if (_global.heroleft_car4 == false) {
if (turn == false) {
hero_hit();
car_hit();
}
if (turning == false) {
if (this.hitTest(_root.fr9_turn2)) {
_rotation = 0;
turning = true;
turn = true;
}
}
if (turning == true) {
hit_hero_3();
car_hit();
}
}
}
} else if (_global.heroleft_car4 == true) {
aispeed = 0;
}
}
Instance of Symbol 195 MovieClip "phone1" in Frame 5
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission1_active == true) {
play();
if (this.hitTest(_root.hero)) {
mymusic.stop("ring");
attachMovie("mc_cha_mission1", "cha1", depth);
cha1._x = -150;
cha1._y = 155;
stop();
_global.mission1_active = false;
}
} else if (_global.mission1_active == false) {
stop();
}
}
Instance of Symbol 275 MovieClip "hero" in Frame 5
onClipEvent (load) {
function music() {
mymusic = new Sound();
myMusicVolume = 10;
mymusic.setVolume(myMusicVolume);
}
d = 0;
e = 0;
speed = 2;
}
onClipEvent (enterFrame) {
if (_global.hero_active == true) {
this._visible = true;
if (key.isdown(83)) {
if (_global.skate1 == true) {
speed = 4;
gotoAndStop (50);
} else if (_global.skate2 == true) {
speed = 4;
gotoAndStop (51);
} else if (_global.skate3 == true) {
speed = 4;
gotoAndStop (52);
}
} else {
speed = 2;
}
if (key.isdown(39)) {
play();
_rotation = 90;
_x = (_x + speed);
}
if (key.isdown(37)) {
play();
_rotation = 270;
_x = (_x - speed);
}
if (key.isdown(38)) {
play();
_rotation = 0;
_y = (_y - speed);
}
if (key.isdown(40)) {
play();
_rotation = 180;
_y = (_y + speed);
}
if (key.isdown(39) && (key.isdown(38))) {
_rotation = 45;
}
if (key.isdown(37) && (key.isdown(38))) {
_rotation = 315;
}
if (key.isdown(39) && (key.isdown(40))) {
_rotation = 135;
}
if (key.isdown(37) && (key.isdown(40))) {
_rotation = 225;
}
i = 0;
while (i < 5) {
if (Key.isDown(32) && (this.hitTest(_root["car" + i]))) {
_global.hero_active = false;
_global["car_active" + i] = true;
_root.yingyang = _root.yingyang - 5;
_root.yin100check();
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["v_left_wall" + a])) {
this._x = _root["v_left_wall" + a]._x + 10;
}
if (this.hitTest(_root["h_top_wall" + a])) {
this._y = _root["h_top_wall" + a]._y + 10;
}
if (this.hitTest(_root["v_right_wall" + a])) {
this._x = _root["v_right_wall" + a]._x - 10;
}
if (this.hitTest(_root["h_bottom_wall" + a])) {
this._y = _root["h_bottom_wall" + a]._y - 10;
}
a++;
}
if ((_global.shooting2 == false) && (_global.shotgun == true)) {
if (Key.isDown(17)) {
this.gotoAndPlay(36);
music();
mymusic.attachSound("Shotgun1");
mymusic.start(0, 0);
_global.shooting2 = true;
}
} else if ((_global.shooting == false) && (_global.pistole == true)) {
if (Key.isDown(17)) {
this.gotoAndPlay(16);
music();
mymusic.attachSound("colt45");
mymusic.start(0, 0);
_global.shooting = true;
}
} else if (_global.katana == true) {
if (Key.isDown(17)) {
this.gotoAndPlay(26);
music();
mymusic.attachSound("sworddrawn");
mymusic.start(0, 0);
}
} else if (_global.unarmed == true) {
if (Key.isDown(17)) {
this.gotoAndPlay(9);
music();
mymusic.attachSound("punch");
mymusic.start(0, 999);
_global.punching = true;
} else {
_global.punching = false;
}
}
if (_global.shooting2 == true) {
_global.shoooting2 = false;
d++;
_root.bullet2.duplicateMovieClip("newb" + d, 1);
_root["newb" + d]._y = _y;
_root["newb" + d]._x = _x;
_root["newb" + d]._rotation = _rotation;
}
if (_global.shooting == true) {
_global.shooting = false;
e++;
_root.bullet.duplicateMovieClip("newp" + e, 1);
_root["newp" + e]._y = _y;
_root["newp" + e]._x = _x;
_root["newp" + e]._rotation = _rotation;
}
i++;
}
} else if (_global.hero_active == false) {
this._visible = false;
this._x = -100;
}
}
Instance of Symbol 71 MovieClip [bullet2] "bullet2" in Frame 5
onClipEvent (load) {
numEnemy = 5;
numCars = 5;
speed = 8;
}
onClipEvent (enterFrame) {
_y = (_y - (speed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (speed * Math.sin(_rotation * (Math.PI/180))));
if ((((_x > 510) || (_x < -10)) || (_y > 410)) || (_y < -10)) {
removeMovieClip(this);
_global.shooting2 = false;
}
i = 0;
while (i < numEnemy) {
targets = _parent["people" + i];
if (this.hitTest(targets)) {
_parent["people" + i].gotoAndPlay(9);
_parent["people" + i].Killed();
removeMovieClip(this);
_global.shooting2 = false;
}
i++;
}
i = 0;
while (i < numCars) {
cars = _parent["car" + i];
if (this.hitTest(cars)) {
if (_parent["car" + i]._currentframe == 6) {
_parent["car" + i].gotoAndPlay(12);
removeMovieClip(this);
_global.shooting = false;
} else {
_parent["car" + i].gotoAndPlay(11);
removeMovieClip(this);
_global.shooting = false;
}
}
i++;
}
}
Instance of Symbol 68 MovieClip [bullet] "bullet" in Frame 5
onClipEvent (load) {
numEnemy = 5;
numCars = 5;
speed = 8;
}
onClipEvent (enterFrame) {
_y = (_y - (speed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (speed * Math.sin(_rotation * (Math.PI/180))));
if ((((_x > 510) || (_x < -10)) || (_y > 410)) || (_y < -10)) {
removeMovieClip(this);
_global.shooting = false;
}
i = 0;
while (i < numEnemy) {
targets = _parent["people" + i];
if (this.hitTest(targets)) {
_parent["people" + i].gotoAndPlay(9);
_parent["people" + i].Killed();
removeMovieClip(this);
_global.shooting = false;
}
i++;
}
i = 0;
while (i < numCars) {
cars = _parent["car" + i];
if (this.hitTest(cars)) {
if (_parent["car" + i]._currentframe == 6) {
_parent["car" + i].gotoAndPlay(12);
removeMovieClip(this);
_global.shooting = false;
} else {
_parent["car" + i].gotoAndPlay(11);
removeMovieClip(this);
_global.shooting = false;
}
}
i++;
}
}
Instance of Symbol 159 MovieClip "flat" in Frame 5
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
attachMovie("mc_home", "mc_home", 0);
mc_home._x = -100;
mc_home._y = -100;
_global.hero_active = false;
}
}
Frame 6
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_2" in Frame 6
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame1_active = true;
_global.frame2_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 500;
_parent.gotoAndStop(5);
}
}
Instance of Symbol 201 MovieClip "next_fr_3" in Frame 6
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame3_active = true;
_global.frame2_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = _root.hero._x - 500;
_parent.gotoAndStop(7);
}
}
Instance of Symbol 202 MovieClip in Frame 6
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame1_active = true;
_global.frame2_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 500;
_parent.gotoAndStop(5);
}
}
Instance of Symbol 202 MovieClip in Frame 6
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame5_active = true;
_global.frame2_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 70;
_parent.gotoAndStop(9);
}
}
Instance of Symbol 159 MovieClip "weapon_door" in Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
attachMovie("mc_weapon", "mc_weapon", 0);
mc_weapon._x = 70;
mc_weapon._y = 0;
_global.hero_active = false;
}
}
Instance of Symbol 159 MovieClip "skate_door" in Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
attachMovie("mc_skate", "mc_skate", 0);
mc_skate._x = -70;
mc_skate._y = 0;
_global.hero_active = false;
}
}
Frame 7
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_4" in Frame 7
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame2_active = true;
_global.frame3_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_car_hero();
reset_cars();
_root.hero._x = 500;
_parent.gotoAndStop(6);
}
}
Instance of Symbol 201 MovieClip "next_fr_7" in Frame 7
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame4_active = true;
_global.frame3_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 50;
_parent.gotoAndStop(8);
}
}
Instance of Symbol 291 MovieClip in Frame 7
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission2_start == true) {
if (_global.mission2_recive == true) {
attachMovie("guy", "guy", depth);
guy._x = 200;
guy._y = 65;
if (guy.hitTest(_root.hero)) {
_global.mission2_start = false;
_global.mission3_active = true;
removeMovieClip(guy);
attachMovie("m2_complete", "m2_complete", depth);
_root.cash = _root.cash + 2000;
}
}
}
}
Instance of Symbol 195 MovieClip "phone4" in Frame 7
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission4_active == true) {
play();
if (this.hitTest(_root.hero)) {
attachMovie("mc_cha_mission2", "cha2", depth);
cha1._x = -150;
cha1._y = 155;
stop();
_global.mission4_active = false;
}
} else if (_global.mission4_active == false) {
stop();
}
}
Frame 8
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_8" in Frame 8
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame3_active = true;
_global.frame4_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 360;
_parent.gotoAndStop(7);
}
}
Instance of Symbol 201 MovieClip "next_fr_10" in Frame 8
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame7_active = true;
_global.frame4_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 50;
_parent.gotoAndStop(11);
}
}
Instance of Symbol 202 MovieClip in Frame 8
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame5_active = true;
_global.frame4_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 510;
_parent.gotoAndStop(9);
}
}
Instance of Symbol 159 MovieClip "hospital_door" in Frame 8
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
attachMovie("mc_hospital", "mc_hospital", 0);
mc_hospital._x = 180;
mc_hospital._y = 70;
_global.hero_active = false;
}
}
Frame 9
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 202 MovieClip in Frame 9
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame6_active = true;
_global.frame5_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 510;
_parent.gotoAndStop(10);
}
}
Instance of Symbol 202 MovieClip in Frame 9
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame4_active = true;
_global.frame5_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 40;
_parent.gotoAndStop(8);
}
}
Instance of Symbol 202 MovieClip in Frame 9
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame2_active = true;
_global.frame5_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 370;
_parent.gotoAndStop(6);
}
}
Instance of Symbol 202 MovieClip in Frame 9
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame8_active = true;
_global.frame5_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 60;
_parent.gotoAndStop(12);
}
}
Instance of Symbol 195 MovieClip "phone3" in Frame 9
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission3_active == true) {
play();
if (this.hitTest(_root.hero)) {
attachMovie("mc_cha_mission3", "cha3", depth);
cha3._x = -250;
cha3._y = 0;
stop();
_global.mission3_active = false;
}
} else if (_global.mission3_active == false) {
stop();
}
}
Frame 10
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_6" in Frame 10
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame1_active = true;
_global.frame6_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 360;
_parent.gotoAndStop(5);
}
}
Instance of Symbol 201 MovieClip "next_fr_9" in Frame 10
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame9_active = true;
_global.frame6_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 70;
_parent.gotoAndStop(13);
}
}
Instance of Symbol 202 MovieClip in Frame 10
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame5_active = true;
_global.frame6_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 50;
_parent.gotoAndStop(9);
}
}
Instance of Symbol 195 MovieClip "phone5" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission5_active == true) {
play();
if (this.hitTest(_root.hero)) {
attachMovie("mc_cha_mission2", "cha2", depth);
cha1._x = -150;
cha1._y = 155;
stop();
_global.mission5_active = false;
}
} else if (_global.mission5_active == false) {
stop();
}
}
Instance of Symbol 153 MovieClip in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car1)) {
} else if (this.hitTest(_root.car2)) {
} else if (this.hitTest(_root.car3)) {
} else if (this.hitTest(_root.car4)) {
}
}
Frame 11
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_11" in Frame 11
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame4_active = true;
_global.frame7_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 360;
_parent.gotoAndStop(8);
}
}
Instance of Symbol 201 MovieClip "next_fr_12" in Frame 11
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame8_active = true;
_global.frame7_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 500;
_parent.gotoAndStop(12);
}
}
Instance of Symbol 195 MovieClip "phone2" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission2_active == true) {
play();
if (this.hitTest(_root.hero)) {
attachMovie("mc_cha_mission2", "cha2", depth);
cha2._x = -250;
cha2._y = 100;
stop();
_global.mission2_active = false;
}
} else if (_global.mission2_active == false) {
stop();
}
}
Frame 12
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_15" in Frame 12
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame9_active = true;
_global.frame8_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = 500;
_parent.gotoAndStop(13);
}
}
Instance of Symbol 201 MovieClip "next_fr_16" in Frame 12
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame7_active = true;
_global.frame8_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = _root.hero._x - 500;
_parent.gotoAndStop(11);
}
}
Instance of Symbol 202 MovieClip in Frame 12
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame5_active = true;
_global.frame8_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 380;
_parent.gotoAndStop(9);
}
}
Instance of Symbol 314 MovieClip in Frame 12
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.mission2_start == true) {
if (_global.mission2_recive == false) {
attachMovie("smith", "smith", depth);
smith._x = 150;
smith._y = 65;
if (smith.hitTest(_root.hero)) {
_global.mission2_recive = true;
smith.gotoAndStop(2);
}
}
}
if (_global.mission3_start == true) {
_global.placecar = true;
}
}
Frame 13
_root.people1.reset();
_root.people2.reset();
_root.people3.reset();
_root.people4.reset();
Instance of Symbol 201 MovieClip "next_fr_13" in Frame 13
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame6_active = true;
_global.frame9_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._y = 360;
_parent.gotoAndStop(10);
}
}
Instance of Symbol 201 MovieClip "next_fr_14" in Frame 13
onClipEvent (load) {
function reset_cars() {
var _local1 = _root;
_global.frame8_active = true;
_global.frame9_active = false;
_local1.car1.reset();
_local1.car2.reset();
_local1.car3.reset();
_local1.car4.reset();
}
function reset_car_hero() {
var _local1 = _global;
_local1.heroleft_car1 = false;
_local1.heroleft_car2 = false;
_local1.heroleft_car3 = false;
_local1.heroleft_car4 = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
reset_cars();
reset_car_hero();
_root.hero._x = _root.hero._x - 500;
_parent.gotoAndStop(12);
}
}
Instance of Symbol 322 MovieClip in Frame 13
/* no clip actions */
Instance of Symbol 322 MovieClip in Frame 13
onClipEvent (load) {
function carwanted() {
var _local1 = _root;
rnd = math.round(math.random() * 10);
if (rnd == 1) {
_local1.carwanted = "Dark Blue";
} else if (rnd == 2) {
_local1.carwanted = "Truck";
} else if (rnd == 3) {
_local1.carwanted = "Green";
} else if (rnd == 4) {
_local1.carwanted = "Motorbike";
} else if (rnd == 5) {
_local1.carwanted = "Soft-Top";
} else if (rnd == 6) {
_local1.carwanted = "Ambulance";
} else if (rnd == 7) {
_local1.carwanted = "School Bus";
} else if (rnd == 8) {
_local1.carwanted = "Police Car";
} else if (rnd == 9) {
_local1.carwanted = "Taxi";
} else if (rnd == 10) {
_local1.carwanted = "Cool Blue";
}
}
function exchange() {
var _local1 = _root;
_local1.radio_remove();
_global.hero_active = true;
_local1.hero._visible = true;
_local1.hero._x = this._x + 40;
_local1.hero._y = this._y;
_local1.cash = _local1.cash + 200;
rnd = 0;
carwanted();
_local1.currentcar = "";
}
function exchange2() {
var _local1 = _root;
var _local2 = _global;
_local1.radio_remove();
_local2.hero_active = true;
_local1.hero._visible = true;
_local1.hero._x = this._x + 40;
_local1.hero._y = this._y;
_local1.cash = _local1.cash + 2000;
rnd = 0;
_local1.currentcar = "";
_local2.mission1_start = false;
carwanted();
attachMovie("m1_complete", "m1_complete", depth);
_local2.mission2_active = true;
}
carmission1 = "Police Car";
}
onClipEvent (enterFrame) {
if (_global.mission1_start == true) {
_root.carwanted = carmission1;
if (_root.currentcar == carmission1) {
if (this.hitTest(_root.car1)) {
_global.car_active1 = false;
_root.car1.reset();
exchange2();
}
if (this.hitTest(_root.car2)) {
_global.car_active2 = false;
_root.car2.reset();
exchange2();
}
if (this.hitTest(_root.car3)) {
_global.car_active3 = false;
_root.car3.reset();
exchange2();
}
if (this.hitTest(_root.car4)) {
_global.car_active4 = false;
_root.car4.reset();
exchange2();
}
}
}
if (_global.mission1_start == false) {
if (_root.currentcar == _root.carwanted) {
if (this.hitTest(_root.car1)) {
_global.car_active1 = false;
_root.car1.reset();
exchange();
}
if (this.hitTest(_root.car2)) {
_global.car_active2 = false;
_root.car2.reset();
exchange();
}
if (this.hitTest(_root.car3)) {
_global.car_active3 = false;
_root.car3.reset();
exchange();
}
if (this.hitTest(_root.car4)) {
_global.car_active4 = false;
_root.car4.reset();
exchange();
}
}
}
}
Symbol 13 Button
on (release) {
gotoAndStop (2);
}
Symbol 21 MovieClip [mc_cha_mission1] Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 21 MovieClip [mc_cha_mission1] Frame 2
on (release) {
_global.mission1_start = true;
removeMovieClip(_root.phone1.cha1);
}
Symbol 28 Button
on (release) {
gotoAndStop (2);
}
Symbol 30 Button
on (release) {
gotoAndStop (3);
}
Symbol 32 MovieClip [mc_cha_mission2] Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 32 MovieClip [mc_cha_mission2] Frame 3
on (release) {
_global.mission2_start = true;
_global.mission2_recive = false;
removeMovieClip(_root.phone2.cha2);
}
Symbol 35 MovieClip [smith] Frame 1
stop();
Symbol 37 MovieClip [guy] Frame 1
stop();
Symbol 42 Button
on (release) {
gotoAndStop (2);
}
Symbol 45 Button
on (release) {
gotoAndStop (3);
}
Symbol 48 MovieClip [mc_cha_mission3] Frame 1
stop();
Symbol 48 MovieClip [mc_cha_mission3] Frame 2
stop();
Symbol 48 MovieClip [mc_cha_mission3] Frame 3
stop();
Instance of Symbol 19 MovieClip in Symbol 48 MovieClip [mc_cha_mission3] Frame 3
on (release) {
_global.mission3_start = true;
removeMovieClip(_root.phone3.cha3);
}
Symbol 54 Button
on (release) {
radiomusic.stop();
playing = false;
if (playing != true) {
playing = true;
radiomusic = new Sound();
myMusicVolume = 50;
radiomusic.setVolume(myMusicVolume);
radiomusic.attachSound("NG4261");
radiomusic.start(0, 999);
radio_station = "Punk FM - Let's Go!, by Final_Round";
}
}
Symbol 55 Button
on (release) {
radiomusic.stop();
playing = false;
if (playing != true) {
playing = true;
radiomusic = new Sound();
myMusicVolume = 50;
radiomusic.setVolume(myMusicVolume);
radiomusic.attachSound("NG22534");
radiomusic.start(0, 999);
radio_station = "RnB FM - MAKE POOP, by MrSafetySMPFilms";
}
}
Symbol 56 Button
on (release) {
radiomusic.stop();
playing = false;
if (playing != true) {
playing = true;
radiomusic = new Sound();
myMusicVolume = 50;
radiomusic.setVolume(myMusicVolume);
radiomusic.attachSound("NG4706");
radiomusic.start(0, 999);
radio_station = "Techno FM - Techno Fun5 Fixed, by czer323";
}
}
Symbol 62 Button
on (release) {
if (myMusicVolume >= 100) {
myMusicVolume = 100;
radiomusic.setVolume(myMusicVolume);
} else {
myMusicVolume = myMusicVolume + 10;
radiomusic.setVolume(myMusicVolume);
}
}
Symbol 64 Button
on (release) {
if (myMusicVolume <= 0) {
myMusicVolume = 0;
radiomusic.setVolume(myMusicVolume);
} else {
myMusicVolume = myMusicVolume - 10;
radiomusic.setVolume(myMusicVolume);
}
}
Symbol 66 MovieClip [radio] Frame 1
Symbol 71 MovieClip [bullet2] Frame 10
stop();
Symbol 76 Button
on (release) {
_root.hero._y = _root.weapon_door._y - 20;
_root.hero._x = _root.weapon_door._x;
_root.hero._rotation = 0;
removeMovieClip(this);
_global.hero_active = true;
}
Symbol 90 Button
on (release) {
_global.unarmed = false;
_global.pistole = false;
_global.katana = true;
_global.shotgun = false;
}
Symbol 92 Button
on (release) {
_global.unarmed = false;
_global.pistole = false;
_global.katana = false;
_global.shotgun = true;
}
Symbol 94 Button
on (release) {
_global.unarmed = false;
_global.pistole = true;
_global.katana = false;
_global.shotgun = false;
}
Symbol 107 Button
on (release) {
if (_root.cash >= 1000) {
if (_global.skate1 == false) {
_root.cash = _root.cash - 1000;
_root.cashcheck();
_global.skate2 = false;
_global.skate3 = false;
_global.skate1 = true;
}
}
}
Symbol 109 Button
on (release) {
if (_root.cash >= 1000) {
if (_global.skate2 == false) {
_root.cash = _root.cash - 1000;
_root.cashcheck();
_global.skate1 = false;
_global.skate3 = false;
_global.skate2 = true;
}
}
}
Symbol 115 Button
on (release) {
if (_root.cash >= 1000) {
if (_global.skate3 == false) {
_root.cash = _root.cash - 1000;
_root.cashcheck();
_global.skate1 = false;
_global.skate2 = false;
_global.skate3 = true;
}
}
}
Symbol 117 Button
on (release) {
_root.hero._y = _root.skate_door._y - 20;
_root.hero._x = _root.skate_door._x;
_root.hero._rotation = 0;
removeMovieClip(this);
_global.hero_active = true;
}
Symbol 122 Button
on (release) {
_root.hero._y = _root.hospital_door._y - 20;
_root.hero._x = _root.hospital_door._x;
_root.hero._rotation = 0;
removeMovieClip(this);
_global.hero_active = true;
}
Symbol 126 Button
on (release) {
if (_root.cash >= 100) {
if (_root.health == 100) {
} else {
_root.cash = _root.cash - 100;
_root.health = 100;
_root.healthcheck();
_root.cashcheck();
}
}
}
Symbol 132 Button
on (release) {
_root.hero._y = _root.flat._y - 20;
_root.hero._x = _root.flat._x;
_root.hero._rotation = 0;
removeMovieClip(this);
_global.hero_active = true;
}
Symbol 135 Button
on (release) {
_root.gotoAndStop(1);
}
Symbol 138 Button
on (release) {
user = SharedObject.getLocal("Save_File");
user.data.user_cash = _root.cash;
user.data.user_health = _root.health;
user.flush();
}
Symbol 141 Button
on (release) {
user = SharedObject.getLocal("Save_File");
_root.cash = user.data.user_cash;
_root.health = user.data.user_health;
}
Symbol 169 Button
on (release) {
_root.menu.mymusic.stop("intro");
_parent.gotoAndStop(5);
}
Symbol 171 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 180 Button
on (release) {
_quality = "high";
}
Symbol 181 Button
on (release) {
_root.menu.mymusic.stop("intro");
_parent.gotoAndStop(5);
}
Symbol 187 Button
on (release) {
_quality = "medium";
}
Symbol 188 Button
on (release) {
_quality = "low";
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 8
gotoAndPlay (1);
Symbol 220 MovieClip Frame 10
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 242 MovieClip Frame 16
stop();
Symbol 248 MovieClip Frame 11
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 3
stop();
Symbol 249 MovieClip Frame 4
stop();
Symbol 249 MovieClip Frame 5
stop();
Symbol 249 MovieClip Frame 6
stop();
Symbol 249 MovieClip Frame 7
stop();
Symbol 249 MovieClip Frame 8
stop();
Symbol 249 MovieClip Frame 9
stop();
Symbol 249 MovieClip Frame 10
stop();
Symbol 249 MovieClip Frame 11
stop();
Symbol 249 MovieClip Frame 12
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 8
gotoAndPlay (1);
Symbol 275 MovieClip Frame 15
mymusic.stop("punch");
gotoAndPlay (1);
Symbol 275 MovieClip Frame 25
gotoAndPlay (1);
Symbol 275 MovieClip Frame 34
mymusic.stop("sworddrawn");
Symbol 275 MovieClip Frame 35
gotoAndPlay (1);
Symbol 275 MovieClip Frame 49
gotoAndPlay (1);
Symbol 275 MovieClip Frame 50
stop();
Symbol 275 MovieClip Frame 51
stop();
Symbol 275 MovieClip Frame 52
stop();
Symbol 308 MovieClip Frame 20
gotoAndPlay (1);
Symbol 314 MovieClip Frame 20
gotoAndPlay (1);
Symbol 320 MovieClip Frame 20
gotoAndPlay (1);