Frame 1
total = getBytesTotal();
loaded = getBytesLoaded();
percent = Math.ceil((loaded * 100) / total);
checker._alpha = percent;
amount = percent add "%";
if (loaded == total) {
gotoAndStop (4);
}
Instance of Symbol 25 MovieClip "checker" in Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (load) {
fscommand ("allowscale", false);
_root.difficulty = 1;
}
Frame 2
gotoAndPlay (2);
Frame 3
stop();
lead = true;
_quality = "high";
car._visible = false;
car._y = 645;
car.imfine.stop();
inst._visible = false;
gamestat = false;
removeMovieClip("goclip");
removeMovieClip("green1");
removeMovieClip("green2");
removeMovieClip("blue1");
removeMovieClip("blue2");
removeMovieClip(currentweapon);
_root.car.imok = true;
_root.car.imfine.stop();
diffclip.gotoAndStop(difficulty);
Instance of Symbol 53 MovieClip "car" in Frame 3
onClipEvent (load) {
imok = false;
imfine = new Sound(this);
imfine.attachSound("imfine");
xgoal = _x;
overten = false;
brake = false;
moving = false;
asfast = false;
this.swapDepths(1);
}
onClipEvent (enterFrame) {
if (_root.gamestat) {
if (Key.isDown(38)) {
brake = false;
if (moving == false) {
_root.engine.start(0, 9999999);
moving = true;
}
if (asfast == false) {
_root.accel.start();
asfast = true;
}
if (30 < _root.speed) {
turbocount++;
if (turbocount == 80) {
_root.speed = 30;
turbocount = 0;
}
}
if (_root.speed < 30) {
_root.speed = _root.speed + 0.25;
}
if (frwrdamount < 200) {
frwrdamount++;
}
} else if (0 < _root.speed) {
_root.speed = _root.speed - 0.05;
if (0 < frwrdamount) {
frwrdamount = frwrdamount - 2;
}
}
if (Key.isDown(40)) {
asfast = false;
if (brake == false) {
_root.skid.start();
brake = true;
}
if (0 < _root.speed) {
_root.speed = _root.speed - 0.25;
}
if (_root.speed < 0) {
_root.engine.stop();
moving = false;
asfast = false;
_root.skid.start();
_root.speed = 0;
frwrdamount = 0;
}
}
if (Key.isDown(37)) {
if (0 < _root.speed) {
xgoal = xgoal - 10;
rotgoal = -15;
rwheel._rotation = -15;
lwheel._rotation = -15;
}
} else if (Key.isDown(39)) {
if (0 < _root.speed) {
xgoal = xgoal + 10;
rotgoal = 15;
rwheel._rotation = 15;
lwheel._rotation = 15;
}
} else {
rotgoal = 0;
rwheel._rotation = 0;
lwheel._rotation = 0;
}
}
if (_root.gamestat == false) {
if (0 < _root.speed) {
_root.speed = _root.speed - 3;
_root.engine.stop();
frwrdprcnt = 0;
if (0 < frwrdamount) {
frwrdamount = frwrdamount - 10;
}
}
}
if (306 < _x) {
_root.powerdrain(2);
xgoal = 306 - random(30);
if (0 < _root.speed) {
_root.speed = _root.speed - 1;
}
}
if (_x < 94) {
_root.powerdrain(2);
xgoal = 94 + random(30);
if (0 < _root.speed) {
_root.speed = _root.speed - 1;
}
}
if (_root.speed < 0) {
_root.engine.stop();
moving = false;
asfast = false;
_root.skid.start();
if (_root.gamestat == false) {
if (_root.lines.distanceprcnt < 100) {
if (_root.menu == false) {
if (imok == false) {
imfine.start();
imok = true;
}
}
}
}
_root.speed = 0;
frwrdamount = 0;
}
rotspace = rotgoal - _rotation;
_rotation = (_rotation + (rotspace / 5));
xspace = xgoal - _x;
_x = (_x + (xspace / 10));
frwrdprcnt = (_root.speed * 100) / _root.speed;
_y = (512 - ((frwrdamount * frwrdprcnt) / 100));
}
Instance of Symbol 56 MovieClip "lightswitch" in Frame 3
onClipEvent (load) {
max = 5;
greenmax = 2;
glevel = 10;
blevel = 2;
}
onClipEvent (enterFrame) {
if (_root.lead == false) {
if (greencount < 0) {
greencount = 0;
}
if (bluecount < 0) {
bluecount = 0;
}
if (nmycount < 2) {
count++;
if (count == max) {
nmy = random(2);
if (nmy == 1) {
glevel++;
greenset++;
if (2 < greenset) {
greenset = 1;
}
duplicateMovieClip (_root.green, "green" add greenset, glevel);
nmycount++;
} else {
blevel++;
blueset++;
if (2 < blueset) {
blueset = 1;
}
duplicateMovieClip (_root.blue, "blue" add blueset, blevel);
nmycount++;
}
max = random(250) + 100;
count = 0;
}
}
}
}
Instance of Symbol 65 MovieClip "green" in Frame 3
onClipEvent (load) {
function carhit() {
_root.powerdrain(10);
if (_root.car._x < _x) {
_x = (_x + (random(30) + 30));
_root.car._x = _root.car._x - random(30);
}
if (_x < _root.car._x) {
_x = (_x - (random(30) + 30));
_root.car._x = _root.car._x + random(30);
}
if (_root.car._y < _y) {
_y = (_y + (random(30) + 30));
_root.car._y = _root.car._y - random(30);
}
if (_y < _root.car._y) {
_y = (_y - (random(30) + 30));
_root.car._y = _root.car._y + random(30);
}
}
function gr1hit() {
_root.green1.damageprcnt = _root.green1.damageprcnt + 10;
if (_root.green1._x < _x) {
_x = (_x + (random(30) + 30));
_root.green1._x = _root.green1._x - random(30);
}
if (_x < _root.green1._x) {
_x = (_x - (random(30) + 30));
_root.green1._x = _root.green1._x + random(30);
}
if (_root.green1._y < _y) {
_y = (_y + (random(30) + 30));
_root.green1._y = _root.green1._y - random(30);
}
if (_y < _root.green1._y) {
_y = (_y - (random(30) + 30));
_root.green1._y = _root.green1._y + random(30);
}
}
function gr2hit() {
_root.green2.damageprcnt = _root.green2.damageprcnt + 10;
if (_root.green2._x < _x) {
_x = (_x + (random(30) + 30));
_root.green2._x = _root.green2._x - random(30);
}
if (_x < _root.green2._x) {
_x = (_x - (random(30) + 30));
_root.green2._x = _root.green2._x + random(30);
}
if (_root.green2._y < _y) {
_y = (_y + (random(30) + 30));
_root.green2._y = _root.green2._y - random(30);
}
if (_y < _root.green2._y) {
_y = (_y - (random(30) + 30));
_root.green2._y = _root.green2._y + random(30);
}
}
function bl1hit() {
_root.blue1.damageprcnt = _root.blue1.damageprcnt + 10;
if (_root.blue1._x < _x) {
_x = (_x + (random(30) + 30));
_root.blue1._x = _root.blue1._x - random(30);
}
if (_x < _root.blue1._x) {
_x = (_x - (random(30) + 30));
_root.blue1._x = _root.blue1._x + random(30);
}
if (_root.blue1._y < _y) {
_y = (_y + (random(30) + 30));
_root.blue1._y = _root.blue1._y - random(30);
}
if (_y < _root.blue1._y) {
_y = (_y - (random(30) + 30));
_root.blue1._y = _root.blue1._y + random(30);
}
}
function bl2hit() {
_root.blue2.damageprcnt = _root.blue2.damageprcnt + 10;
if (_root.blue2._x < _x) {
_x = (_x + (random(30) + 30));
_root.blue2._x = _root.blue2._x - random(30);
}
if (_x < _root.blue2._x) {
_x = (_x - (random(30) + 30));
_root.blue2._x = _root.blue2._x + random(30);
}
if (_root.blue2._y < _y) {
_y = (_y + (random(30) + 30));
_root.blue2._y = _root.blue2._y - random(30);
}
if (_y < _root.blue2._y) {
_y = (_y - (random(30) + 30));
_root.blue2._y = _root.blue2._y + random(30);
}
}
if (_name == "green") {
_visible = false;
} else {
crash = new Sound(this);
crash.attachSound("crash");
bump = new Sound(this);
bump.attachSound("bump");
hosed = false;
ratchoose = random(3);
if (ratchoose == 0) {
body.gotoAndStop(1);
}
if (ratchoose == 1) {
body.gotoAndStop(2);
}
if (ratchoose == 2) {
body.gotoAndStop(3);
}
ratchoose = "done";
bar._y = 136.5;
damage = 0;
crashrot = random(20) - 10;
crashplay = false;
max = 10;
hit = false;
_x = (200 + (random(242) - 121));
xgoal = _x;
}
}
onClipEvent (enterFrame) {
if (_root.gamestat) {
if (_root.car.moving and (_name != "green")) {
count++;
if (count == max) {
xgoal = 200 + (random(242) - 121);
max = random(100) + 50;
count = 0;
if (_x < xgoal) {
rotgoal = 15;
}
if (xgoal < _x) {
rotgoal = -15;
}
}
xspace = Math.ceil(xgoal - _x);
if (Math.abs(xspace) < 20) {
rotgoal = 0;
}
_x = (_x + (xspace / 10));
damage = (damageprcnt * 100) / 100;
bar._y = 136.5 - ((59 * damage) / 100);
if (99 < damage) {
damage = 100;
hosed = true;
}
if (hosed == false) {
crash.setVolume(100);
if (_y < 200) {
_y = (_y + (_root.speed - 22));
} else {
_y = (_y + (_root.speed - (22 + random(10))));
}
}
if (hosed) {
_y = (_y + _root.speed);
rotgoal = rotgoal + crashrot;
if (crashplay == false) {
crash.start();
crashplay = true;
}
}
rotspace = rotgoal - _rotation;
_rotation = (_rotation + (rotspace / 2));
if (306 < _x) {
xgoal = 306 - random(30);
_y = (_y + (random(30) + 10));
}
if (_x < 94) {
xgoal = 94 + random(30);
_y = (_y + (random(30) + 10));
}
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 101) and (xspace < 58)) {
carsmack = true;
}
if (carsmack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
carhit();
if (hosed == false) {
damageprcnt = damageprcnt + 5;
}
carsmack = false;
}
if (_name != "green1") {
xspacegr1 = Math.abs(_root.green1._x - _x);
yspacegr1 = Math.abs(_root.green1._y - _y);
if ((yspacegr1 < 101) and (xspacegr1 < 58)) {
gr1smack = true;
}
if (gr1smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
gr1hit();
gr1smack = false;
}
}
if (_name != "green2") {
xspacegr2 = Math.abs(_root.green2._x - _x);
yspacegr2 = Math.abs(_root.green2._y - _y);
if ((yspacegr2 < 101) and (xspacegr2 < 58)) {
gr2smack = true;
}
if (gr2smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
gr2hit();
gr2smack = false;
}
}
xspacebl1 = Math.abs(_root.blue1._x - _x);
yspacebl1 = Math.abs(_root.blue1._y - _y);
if ((yspacebl1 < 101) and (xspacebl1 < 58)) {
bl1smack = true;
}
if (bl1smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
bl1hit();
bl1smack = false;
}
xspacebl2 = Math.abs(_root.blue2._x - _x);
yspacebl2 = Math.abs(_root.blue2._y - _y);
if ((yspacebl2 < 101) and (xspacebl2 < 58)) {
bl2smack = true;
}
if (bl2smack) {
bump.setVolume(random(80) + 20);
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
bl2hit();
bl2smack = false;
}
if (_y < -200) {
_y = -200;
_visible = false;
} else {
_visible = true;
}
if (_root.finish == false) {
if (_root.car._y < _y) {
passed = true;
}
if (passed) {
if ((_root.car._y < _y) and (lastpos != "behind")) {
_root.position--;
lastpos = "behind";
_root.posset();
}
if ((_y < _root.car._y) and (lastpos != "infront")) {
_root.position++;
lastpos = "infront";
}
}
if (645 < _y) {
_root.posset();
_root.lightswitch.nmycount--;
removeMovieClip(this);
}
}
}
} else if (-80 < _y) {
_y = (_y - 10);
}
}
Instance of Symbol 79 MovieClip "blue" in Frame 3
onClipEvent (load) {
function carhit() {
_root.powerdrain(10);
if (_root.car._x < _x) {
_x = (_x + (random(30) + 30));
_root.car._x = _root.car._x - random(30);
}
if (_x < _root.car._x) {
_x = (_x - (random(30) + 30));
_root.car._x = _root.car._x + random(30);
}
if (_root.car._y < _y) {
_y = (_y + (random(30) + 30));
_root.car._y = _root.car._y - random(30);
}
if (_y < _root.car._y) {
_y = (_y - (random(30) + 30));
_root.car._y = _root.car._y + random(30);
}
}
function gr1hit() {
_root.green1.damageprcnt = _root.green1.damageprcnt + 10;
if (_root.green1._x < _x) {
_x = (_x + (random(30) + 30));
_root.green1._x = _root.green1._x - random(30);
}
if (_x < _root.green1._x) {
_x = (_x - (random(30) + 30));
_root.green1._x = _root.green1._x + random(30);
}
if (_root.green1._y < _y) {
_y = (_y + (random(30) + 30));
_root.green1._y = _root.green1._y - random(30);
}
if (_y < _root.green1._y) {
_y = (_y - (random(30) + 30));
_root.green1._y = _root.green1._y + random(30);
}
}
function gr2hit() {
_root.green2.damageprcnt = _root.green2.damageprcnt + 10;
if (_root.green2._x < _x) {
_x = (_x + (random(30) + 30));
_root.green2._x = _root.green2._x - random(30);
}
if (_x < _root.green2._x) {
_x = (_x - (random(30) + 30));
_root.green2._x = _root.green2._x + random(30);
}
if (_root.green2._y < _y) {
_y = (_y + (random(30) + 30));
_root.green2._y = _root.green2._y - random(30);
}
if (_y < _root.green2._y) {
_y = (_y - (random(30) + 30));
_root.green2._y = _root.green2._y + random(30);
}
}
function bl1hit() {
_root.blue1.damageprcnt = _root.blue1.damageprcnt + 10;
if (_root.blue1._x < _x) {
_x = (_x + (random(30) + 30));
_root.blue1._x = _root.blue1._x - random(30);
}
if (_x < _root.blue1._x) {
_x = (_x - (random(30) + 30));
_root.blue1._x = _root.blue1._x + random(30);
}
if (_root.blue1._y < _y) {
_y = (_y + (random(30) + 30));
_root.blue1._y = _root.blue1._y - random(30);
}
if (_y < _root.blue1._y) {
_y = (_y - (random(30) + 30));
_root.blue1._y = _root.blue1._y + random(30);
}
}
function bl2hit() {
_root.blue2.damageprcnt = _root.blue2.damageprcnt + 10;
if (_root.blue2._x < _x) {
_x = (_x + (random(30) + 30));
_root.blue2._x = _root.blue2._x - random(30);
}
if (_x < _root.blue2._x) {
_x = (_x - (random(30) + 30));
_root.blue2._x = _root.blue2._x + random(30);
}
if (_root.blue2._y < _y) {
_y = (_y + (random(30) + 30));
_root.blue2._y = _root.blue2._y - random(30);
}
if (_y < _root.blue2._y) {
_y = (_y - (random(30) + 30));
_root.blue2._y = _root.blue2._y + random(30);
}
}
body.gotoAndStop(3);
if (_name == "blue") {
_visible = false;
} else {
passed = false;
crash = new Sound(this);
crash.attachSound("crash");
bump = new Sound(this);
bump.attachSound("bump");
hosed = false;
bar._y = 136.5;
damage = 0;
max = 10;
hit = false;
crashrot = random(20) - 10;
crashplay = false;
catchoose = random(3);
if (catchoose == 0) {
cat.catbody.gotoAndStop(1);
}
if (catchoose == 1) {
cat.catbody.gotoAndStop(2);
}
if (catchoose == 2) {
cat.catbody.gotoAndStop(3);
}
catchoose = "done";
_x = (200 + (random(242) - 121));
xgoal = _x;
}
}
onClipEvent (enterFrame) {
if (_root.gamestat) {
if (_root.car.moving and (_name != "blue")) {
count++;
if (count == max) {
xgoal = 200 + (random(242) - 121);
max = random(100) + 50;
count = 0;
if (_x < xgoal) {
rotgoal = 15;
}
if (xgoal < _x) {
rotgoal = -15;
}
}
xspace = Math.ceil(xgoal - _x);
if (Math.abs(xspace) < 20) {
rotgoal = 0;
}
_x = (_x + (xspace / 10));
damage = (damageprcnt * 100) / 100;
bar._y = -110.3 - ((22.3 * damage) / 100);
if (99 < damage) {
damage = 100;
hosed = true;
}
if (hosed == false) {
crash.setVolume(100);
if (_y < 200) {
_y = (_y + (_root.speed - 23));
} else {
_y = (_y + (_root.speed - (23 + random(10))));
}
}
if (hosed) {
_y = (_y + _root.speed);
rotgoal = rotgoal + crashrot;
if (crashplay == false) {
crash.start();
crashplay = true;
}
}
rotspace = rotgoal - _rotation;
_rotation = (_rotation + (rotspace / 2));
if (306 < _x) {
xgoal = 306 - random(30);
_y = (_y + (random(30) + 10));
}
if (_x < 94) {
xgoal = 94 + random(30);
_y = (_y + (random(30) + 10));
}
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 101) and (xspace < 58)) {
carsmack = true;
}
if (carsmack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
carhit();
if (hosed == false) {
damageprcnt = damageprcnt + 5;
}
carsmack = false;
}
xspacegr1 = Math.abs(_root.green1._x - _x);
yspacegr1 = Math.abs(_root.green1._y - _y);
if ((yspacegr1 < 101) and (xspacegr1 < 58)) {
gr1smack = true;
}
if (gr1smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
gr1hit();
gr1smack = false;
}
xspacegr2 = Math.abs(_root.green2._x - _x);
yspacegr2 = Math.abs(_root.green2._y - _y);
if ((yspacegr2 < 101) and (xspacegr2 < 58)) {
gr2smack = true;
}
if (gr2smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
gr2hit();
gr2smack = false;
}
if (_name != "blue1") {
xspacebl1 = Math.abs(_root.blue1._x - _x);
yspacebl1 = Math.abs(_root.blue1._y - _y);
if ((yspacebl1 < 101) and (xspacebl1 < 58)) {
bl1smack = true;
}
if (bl1smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
bl1hit();
bl1smack = false;
}
}
if (_name != "blue2") {
xspacebl2 = Math.abs(_root.blue2._x - _x);
yspacebl2 = Math.abs(_root.blue2._y - _y);
if ((yspacebl2 < 101) and (xspacebl2 < 58)) {
bl2smack = true;
}
if (bl2smack) {
if (_root.car.moving) {
bump.setVolume(random(80) + 20);
bump.start();
}
bl2hit();
bl2smack = false;
}
}
if (_y < -200) {
_y = -200;
_visible = false;
} else {
_visible = true;
}
if (_root.finish == false) {
if (_root.car._y < _y) {
passed = true;
}
if (passed) {
if ((_root.car._y < _y) and (lastpos != "behind")) {
_root.position--;
lastpos = "behind";
_root.posset();
}
if ((_y < _root.car._y) and (lastpos != "infront")) {
_root.position++;
lastpos = "infront";
}
}
}
if (645 < _y) {
_root.lightswitch.nmycount--;
_root.posset();
removeMovieClip(this);
}
}
} else if (-80 < _y) {
_y = (_y - 10);
}
}
Frame 4
function powerdrain(dmgamount) {
damage = damage + dmgamount;
if (damage < 0) {
damage = 0;
}
dmgprcnt = (damage * 100) / 115;
if (100 < dmgprcnt) {
dmgprcnt = 99;
_quality = "high";
_root.finish = true;
_root.finishline._y = 151;
_root.finishline._visible = true;
_root.finishline.pos = _root.position;
_root.finishline.rac = _root.racers;
if (200 < _root.car.frwrdamount) {
_root.car.frwrdamount = 200;
}
_root.engine.stop();
_root.gamestat = false;
_root.finishline.statement = "there's always next time...";
}
power.dmg._y = (115 * dmgprcnt) / 100;
}
function setter() {
weaponview.weaponamount--;
if (weaponview.weaponamount == 0) {
weaponview._visible = false;
}
}
function posset() {
if (position < 1) {
position = 1;
}
if (position == 1) {
_root.lead = true;
}
}
function reset() {
_quality = "medium";
gamestat = true;
_root.car.imok = false;
_root.car.moving = false;
_root.car.asfast = false;
_root.green1.crash.setVolume(100);
_root.green2.crash.setVolume(100);
_root.blue1.crash.setVolume(100);
_root.blue2.crash.setVolume(100);
_root.engine.stop();
_root.car._y = 512;
_root.car.frwrdamount = 0;
_root.car.frwrdprcnt = 0;
position = racers;
beginpos = racers;
blank.attachMovie("go", "goclip", 1);
goclip._x = 200;
goclip._y = 400;
lead = false;
weapon = false;
finish = false;
weaponset = 30;
weaponview.weaponamount = 0;
hoodclosed = true;
stagecount = 0;
weapon = "fish";
weaponview._visible = false;
finishline._y = -18;
finishline._visible = false;
actual._visible = false;
actual._y = -22;
damage = 0;
dmgprcnt = 0;
power.dmg._y = 0;
lines.roadcount = 0;
removeMovieClip("green1");
removeMovieClip("green2");
removeMovieClip("blue1");
removeMovieClip("blue2");
_root.lightswitch.nmycount = 0;
removeMovieClip(currentweapon);
}
stop();
_quality = "medium";
car._visible = true;
menu = false;
damage = 0;
reset();
engine = new Sound();
engine.attachSound("engine");
accel = new Sound();
accel.attachSound("accel");
turbosound = new Sound();
turbosound.attachSound("turbosound");
skid = new Sound();
skid.attachSound("skid");
toss = new Sound();
toss.attachSound("throw");
pickup = new Sound();
pickup.attachSound("pickup");
bell = new Sound();
bell.attachSound("bell");
whoa = new Sound();
whoa.attachSound("whoa");
Instance of Symbol 179 MovieClip "lines" in Frame 4
onClipEvent (load) {
weaponmax = random(200) + 50;
weaponset = 1000;
}
onClipEvent (enterFrame) {
if (_root.gamestat) {
if (_root.finish == false) {
if (_root.stagecount < 1) {
weaponcount++;
if (weaponcount == weaponmax) {
_root.weaponset++;
choose = random(4);
if (choose == 0) {
duplicateMovieClip (_root.fishgrab, "weapongrab" add _root.weaponset, _root.weaponset);
}
if (choose == 1) {
duplicateMovieClip (_root.balloongrab, "weapongrab" add _root.weaponset, _root.weaponset);
}
if (choose == 2) {
duplicateMovieClip (_root.wrench, "weapongrab" add _root.weaponset, _root.weaponset);
}
if (choose == 3) {
duplicateMovieClip (_root.turbo, "weapongrab" add _root.weaponset, _root.weaponset);
}
_root.stagecount++;
weaponmax = random(200) + 50;
weaponcount = 0;
}
}
}
}
if (_root.gamestat) {
_y = (_y + _root.speed);
}
distanceprcnt = (roadcount * 100) / _root.distance;
_root.meter.yellow._y = 121 - ((121 * distanceprcnt) / 100);
if (302.6 < _y) {
roadcount++;
_y = 175;
}
if (roadcount == _root.distance) {
_root.actual._visible = true;
_root.whoa.start();
_quality = "high";
_root.finishline.pos = _root.position;
_root.finishline.rac = _root.racers;
_root.finishline.statement = "well done!";
_root.car.frwrdprcnt = -40;
_root.car.turbocount = 0;
_root.finish = true;
roadcount = "done";
}
}
Instance of Symbol 197 MovieClip "finishline" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 200 MovieClip "actual" in Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.finish) {
_y = (_y + _root.speed);
}
if (425 < _y) {
_root.gamestat = false;
_root.car.moving = false;
_root.car.asfast = false;
_root.finishline._y = 151;
_root.finishline._visible = true;
}
}
Instance of Symbol 203 MovieClip "roadside" in Frame 4
onClipEvent (enterFrame) {
_y = (_y + _root.speed);
if (356.8 < _y) {
roadcount++;
_y = -18;
}
}
Instance of Symbol 161 MovieClip "fishgrab" in Frame 4
onClipEvent (load) {
_root.currentweapon = _name;
if (_name == "fishgrab") {
_visible = false;
} else {
_y = -30;
_x = (200 + (random(242) - 121));
}
}
onClipEvent (enterFrame) {
if (_name != "fishgrab") {
_y = (_y + _root.speed);
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 47) and (xspace < 34)) {
_root.weapon = "fish";
_root.weaponview._visible = true;
_root.weaponview.icon.gotoAndStop(1);
_root.weaponview.weaponamount = 3;
_root.stagecount--;
_root.bell.start();
removeMovieClip(this);
}
if (620 < _y) {
_root.stagecount--;
removeMovieClip(this);
}
}
}
Instance of Symbol 163 MovieClip "balloongrab" in Frame 4
onClipEvent (load) {
_root.currentweapon = _name;
if (_name == "balloongrab") {
_visible = false;
} else {
_y = -30;
_x = (200 + (random(242) - 121));
}
}
onClipEvent (enterFrame) {
if (_name != "balloongrab") {
_y = (_y + _root.speed);
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 47) and (xspace < 34)) {
_root.bell.start();
_root.stagecount--;
_root.weapon = "balloon";
_root.weaponview._visible = true;
_root.weaponview.icon.gotoAndStop(2);
_root.weaponview.weaponamount = 3;
removeMovieClip(this);
}
if (620 < _y) {
_root.stagecount--;
removeMovieClip(this);
}
}
}
Instance of Symbol 50 MovieClip "balloon" in Frame 4
onClipEvent (load) {
function remover() {
puddle.start();
balloononground = false;
removeMovieClip(this);
}
splash = new Sound(this);
splash.attachSound("splash");
puddle = new Sound(this);
puddle.attachSound("puddle");
if (_name == "balloon") {
_visible = false;
} else {
balloonshot = true;
balloononground = false;
_x = _root.car._x;
_y = (_root.car._y - 36);
throwspace = _y - 30;
scalespace = throwspace / 2;
}
}
onClipEvent (enterFrame) {
if (_name != "balloon") {
if (balloonshot) {
_y = (_y - (throwspace / 30));
_rotation = (_rotation + 10);
scaleprcnt = Math.abs(((_y - scalespace) * 100) / scalespace);
_xscale = ((200 * (200 - scaleprcnt)) / 200);
if (_xscale < 61) {
_xscale = 61;
}
_yscale = _xscale;
if (_y < 30) {
_y = 30;
splash.start();
balloonshot = false;
balloononground = true;
gotoAndStop (2);
_xscale = 61;
_yscale = _xscale;
}
} else {
_y = (_y + _root.speed);
}
if (_root.gamestat == false) {
removeMovieClip(this);
}
if (610 < _y) {
removeMovieClip(this);
}
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 47) and (xspace < 34)) {
if (balloononground) {
_root.powerdrain(10);
_root.car.asfast = false;
_root.speed = _root.speed - 10;
_root.car._x = _root.car._x + (random(200) - 100);
remover();
}
}
if (this.hitTest(_root.green1)) {
if (balloononground) {
_root.green1.damageprcnt = _root.green1.damageprcnt + 50;
_root.green1._y = _root.green1._y + (random(30) + 30);
remover();
}
}
if (this.hitTest(_root.green2)) {
if (balloononground) {
_root.green2.damageprcnt = _root.green2.damageprcnt + 50;
_root.green2._y = _root.green2._y + (random(30) + 30);
remover();
}
}
if (this.hitTest(_root.blue1)) {
if (balloononground) {
_root.blue1.damageprcnt = _root.blue1.damageprcnt + 50;
_root.blue1._y = _root.blue1._y + (random(30) + 30);
remover();
}
}
if (this.hitTest(_root.blue2)) {
if (balloononground) {
_root.blue2.damageprcnt = _root.blue2.damageprcnt + 50;
_root.blue2._y = _root.blue2._y + (random(30) + 30);
remover();
}
}
if (_root.gamestat == false) {
_visible = false;
}
}
}
Instance of Symbol 47 MovieClip "fish" in Frame 4
onClipEvent (load) {
function remover() {
bump.start();
fishonground = false;
removeMovieClip(this);
}
bump = new Sound(this);
bump.attachSound("bump");
crunch = new Sound(this);
crunch.attachSound("crunch");
if (_name == "fish") {
_visible = false;
} else {
fishshot = true;
fishonground = false;
_x = _root.car._x;
_y = (_root.car._y - 36);
throwspace = _y - 30;
scalespace = throwspace / 2;
}
}
onClipEvent (enterFrame) {
if (_name != "fish") {
if (fishshot) {
_y = (_y - (throwspace / 30));
_rotation = (_rotation + 18);
scaleprcnt = Math.abs(((_y - scalespace) * 100) / scalespace);
_xscale = ((200 * (100 - scaleprcnt)) / 200);
if (_xscale < 16) {
_xscale = 16;
}
_yscale = _xscale;
if (_y < 30) {
_y = 30;
crunch.start();
fishshot = false;
fishonground = true;
_xscale = 16;
_yscale = _xscale;
}
} else {
_y = (_y + _root.speed);
}
if (610 < _y) {
removeMovieClip(this);
}
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 47) and (xspace < 34)) {
if (fishonground) {
_root.powerdrain(50);
_root.car.asfast = false;
_root.speed = _root.speed - 5;
_root.car._x = _root.car._x + (random(200) - 100);
remover();
}
}
if (this.hitTest(_root.green1)) {
if (fishonground) {
_root.green1.hosed = true;
remover();
}
}
if (this.hitTest(_root.green2)) {
if (fishonground) {
_root.green2.hosed = true;
remover();
}
}
if (this.hitTest(_root.blue1)) {
if (fishonground) {
_root.blue1.hosed = true;
remover();
}
}
if (this.hitTest(_root.blue2)) {
if (fishonground) {
_root.blue2.hosed = true;
remover();
}
}
if (_root.gamestat == false) {
_visible = false;
}
}
}
Instance of Symbol 165 MovieClip "wrench" in Frame 4
onClipEvent (load) {
_root.currentweapon = _name;
if (_name == "wrench") {
_visible = false;
} else {
_y = -30;
_x = (200 + (random(242) - 121));
}
}
onClipEvent (enterFrame) {
if (_name != "wrench") {
_y = (_y + _root.speed);
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 47) and (xspace < 34)) {
_root.powerdrain(-15);
_root.pickup.start();
_root.stagecount--;
removeMovieClip(this);
}
if (620 < _y) {
_root.stagecount--;
removeMovieClip(this);
}
if (_root.gamestat == false) {
_visible = false;
}
}
}
Instance of Symbol 167 MovieClip "turbo" in Frame 4
onClipEvent (load) {
_root.currentweapon = _name;
if (_name == "turbo") {
_visible = false;
} else {
_y = -30;
_x = (200 + (random(242) - 121));
}
}
onClipEvent (enterFrame) {
if (_name != "turbo") {
_y = (_y + _root.speed);
xspace = Math.abs(_root.car._x - _x);
yspace = Math.abs(_root.car._y - _y);
if ((yspace < 47) and (xspace < 34)) {
_root.speed = 40;
_root.turbosound.start();
_root.stagecount--;
removeMovieClip(this);
}
if (620 < _y) {
_root.stagecount--;
removeMovieClip(this);
}
}
}
Frame 5
stop();
Frame 6
stop();
Instance of Symbol 262 MovieClip "theTime" in Frame 6
onClipEvent (enterFrame) {
count++;
_root.counterOutput = count;
if (count == 60) {
_root.gotoAndStop(3);
}
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 20 MovieClip [go] Frame 1
this.swapDepths(0);
this._y = this._y + _root.speed;
if (630 < this._y) {
removeMovieClip(this);
}
Symbol 20 MovieClip [go] Frame 2
this._y = this._y + _root.speed;
if (630 < this._y) {
removeMovieClip(this);
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
if (_root.weapon == "fish") {
_parent.weapons.gotoAndStop(1);
}
if (_root.weapon == "balloon") {
_parent.weapons.gotoAndStop(2);
}
Symbol 52 MovieClip Frame 10
_root.weaponset++;
if (_root.weapon == "fish") {
duplicateMovieClip (_root.fish, "fish" add _root.weaponset, _root.weaponset);
}
if (_root.weapon == "balloon") {
duplicateMovieClip (_root.balloon, "balloon" add _root.weaponset, _root.weaponset);
}
_parent.weapons._visible = false;
Symbol 52 MovieClip Frame 19
_root.hoodclosed = true;
_parent.weapons._visible = true;
Instance of Symbol 38 MovieClip "headlights" in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 54 Button
on (keyPress "z") {
_root.car.headlights._visible = true;
this.gotoAndStop(2);
}
Symbol 55 Button
on (keyPress "z") {
_root.car.headlights._visible = false;
this.gotoAndStop(1);
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Symbol 80 Button
on (keyPress "<Space>") {
if (_root.gamestat == true) {
if (_root.hoodclosed) {
if ((_root.weapon != false) and (0 < _root.weaponview.weaponamount)) {
_root.toss.start();
_root.setter();
_root.car.hood.gotoAndPlay(2);
_root.hoodclosed = false;
}
}
}
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 91 Button
on (rollOver) {
_root.inst._visible = false;
}
on (press) {
nextFrame();
}
Symbol 99 Button
on (rollOver) {
_root.inst._visible = false;
}
on (press) {
prevFrame();
}
Symbol 102 Button
on (rollOver) {
_root.inst._visible = false;
}
on (press) {
prevFrame();
}
Symbol 103 MovieClip Frame 1
stop();
_root.racers = 4;
_root.distance = 150;
_root.difficulty = 1;
Symbol 103 MovieClip Frame 2
stop();
_root.racers = 10;
_root.distance = 500;
_root.difficulty = 2;
Symbol 103 MovieClip Frame 3
stop();
_root.racers = 15;
_root.distance = 550;
_root.difficulty = 3;
Symbol 108 Button
on (press) {
inst.gotoAndStop(1);
inst._visible = true;
}
Symbol 113 Button
on (rollOver) {
_root.inst._visible = false;
}
on (press) {
gotoAndStop (4);
}
Symbol 127 Button
on (press) {
getURL ("http://www.spe.sony.com/movies/stuartlittle/privacy.html ", "_blank");
}
Symbol 131 Button
on (press) {
getURL ("http://www.spe.sony.com/movies/stuartlittle/terms.html ", "_blank");
}
Symbol 138 Button
on (release) {
removeMovieClip(_root.car);
_root.gotoAndStop("info");
}
Symbol 158 Button
on (press) {
nextFrame();
}
Symbol 168 Button
on (press) {
prevFrame();
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Instance of Symbol 161 MovieClip "fishgrab" in Symbol 174 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 163 MovieClip "balloongrab" in Symbol 174 MovieClip Frame 2
/* no clip actions */
Symbol 186 Button
on (press) {
_root.reset();
}
Symbol 191 Button
on (press) {
_root.car._visible = false;
_root.menu = true;
_root.gotoAndStop(3);
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 1
/* no clip actions */
Symbol 236 Button
on (press) {
_root.menu = true;
_root.gotoAndStop(3);
}
Symbol 246 Button
on (release) {
trace(toName);
trace(toEmail);
trace(fromName);
trace(fromEmail);
var Game = "car";
getURL ("http://www.sonypictures.com/movies/stuartlittle/sendtoafriend.php", "_blank", "POST");
gotoAndStop (6);
}
Symbol 250 Button
on (release) {
gotoAndStop (2);
}