Frame 1
function gotoURL() {
getURL ("http://www.amoebastudios.com");
}
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var newMenu = new ContextMenu();
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.levelArray = ["lblgame", "level2", "level3", "level4", "level5", "level6", "level7", "level8", "level9", "win"];
_root.level = 1;
_root.mainLevel = [0, 0, 0];
_root.isEasy = false;
_root.playIntroSound = true;
_root.playerId = 1;
_root.isOver = false;
_root.carSelect = 1;
_root.levelSelect = 0;
_root.gameVersion = "1.1.5";
Frame 2
Frame 3
function playAgain() {
_root.intro = 0;
_root.score = 0;
_root.mainLevel = [0, 0, 0];
_root.playIntro = true;
_root.playIntroSound = true;
_root.level = 1;
_root.gotoAndStop("lblgameintro");
}
var Sscore = 0;
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com", "agstage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "vintagecarbon";
_level0.swHighScoreObject.gameTitle = "Vintage Carbon";
_level0.swHighScoreObject.screenWidth = 783;
_level0.swHighScoreObject.screenHeight = 595;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 4
Frame 5
Frame 6
stop();
Frame 7
stop();
stopAllSounds();
Frame 8
stopAllSounds();
Frame 9
stop();
Instance of Symbol 288 MovieClip in Frame 9
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
stopAllSounds();
_root.level = 1;
_root.hud_mc._visible = true;
Frame 14
stop();
stopAllSounds();
_root.level = 2;
_root.hud_mc._visible = true;
Frame 15
stop();
stopAllSounds();
_root.level = 3;
_root.hud_mc._visible = true;
Frame 16
stop();
stopAllSounds();
_root.level = 4;
_root.hud_mc._visible = true;
Frame 17
stop();
stopAllSounds();
_root.level = 5;
_root.hud_mc._visible = true;
Frame 18
stop();
stopAllSounds();
_root.level = 6;
_root.hud_mc._visible = true;
Frame 19
stop();
stopAllSounds();
_root.level = 7;
_root.hud_mc._visible = true;
Frame 20
stop();
stopAllSounds();
_root.level = 8;
_root.hud_mc._visible = true;
Frame 21
stop();
stopAllSounds();
_root.level = 9;
_root.hud_mc._visible = true;
Frame 22
stop();
Frame 23
stop();
stopAllSounds();
Frame 24
stop();
Frame 25
stop();
Frame 26
stop();
Symbol 611 MovieClip [__Packages.classes.CollisionDetection] Frame 0
class classes.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
if (p_scope == undefined) {
p_scope = p_clip2._parent;
}
var _local3 = p_clip1.getBounds(p_scope);
var _local2 = p_clip2.getBounds(p_scope);
if (((_local3.xMax < _local2.xMin) || (_local2.xMax < _local3.xMin)) || ((_local3.yMax < _local2.yMin) || (_local2.yMax < _local3.yMin))) {
return(null);
}
var _local1 = {};
_local1.xMin = Math.max(_local3.xMin, _local2.xMin);
_local1.xMax = Math.min(_local3.xMax, _local2.xMax);
_local1.yMin = Math.max(_local3.yMin, _local2.yMin);
_local1.yMax = Math.min(_local3.yMax, _local2.yMax);
var _local8 = new flash.display.BitmapData(_local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin, false);
var _local4 = p_clip1.transform.matrix;
_local4.tx = p_clip1._x - _local1.xMin;
_local4.ty = p_clip1._y - _local1.yMin;
_local8.draw(p_clip1, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local4 = p_clip2.transform.matrix;
_local4.tx = p_clip2._x - _local1.xMin;
_local4.ty = p_clip2._y - _local1.yMin;
_local8.draw(p_clip2, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local8.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local1.xMin;
_local6.y = _local6.y + _local1.yMin;
return(_local6);
}
}
Symbol 12 Button
on (release) {
_parent.gotoAndStop("lblloader");
}
Symbol 22 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 32 MovieClip Frame 120
stop();
_root.gotoAndStop("lblloader");
Symbol 61 MovieClip Frame 104
_parent.gotoAndStop("lblloader");
Symbol 70 MovieClip Frame 1
var total = _root.getBytesTotal();
var percent = 0;
onEnterFrame = function () {
if (percent < 100) {
loaded = _root.getBytesLoaded();
percent = Math.ceil((loaded / total) * 100);
} else {
_root.gotoAndStop("lblgameIntro");
}
};
Symbol 72 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 113 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 1
if (_root.mainLevel[2] == 1) {
gotoAndStop (2);
}
car_btn.onRelease = function () {
_root.carSelect = 3;
_root.levelSelect = 6;
_root.gotoAndStop("story");
};
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
if (_root.mainLevel[0] == 1) {
gotoAndStop (2);
}
car_btn.onRelease = function () {
_root.carSelect = 1;
_root.levelSelect = 0;
_root.gotoAndStop("story");
};
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 184 MovieClip Frame 1
if (_root.mainLevel[1] == 1) {
gotoAndStop (2);
}
car_btn.onRelease = function () {
_root.carSelect = 2;
_root.levelSelect = 3;
_root.gotoAndStop("story");
};
stop();
Symbol 184 MovieClip Frame 2
stop();
Symbol 186 Button
on (rollOver) {
bb.useHandCursor = false;
}
Symbol 191 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 260 MovieClip Frame 97
stop();
Symbol 265 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 266 MovieClip Frame 39
on (release) {
getURL ("http://www.games2win.com/?utm_campaign=ag&utm_source=vintage_carbon&medium=game", "_blank");
}
Symbol 266 MovieClip Frame 40
stop();
Instance of Symbol 260 MovieClip in Symbol 266 MovieClip Frame 40
on (release) {
getURL ("http://www.games2win.com/?utm_campaign=ag&utm_source=vintage_carbon&medium=game", "_blank");
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 18
stop();
G2W_CREDIT.gotoAndPlay(2);
Symbol 276 Button
on (release) {
_root.credits.gotoAndPlay(2);
}
Symbol 280 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
Symbol 280 MovieClip Frame 109
stop();
Symbol 288 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 288 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 299 MovieClip Frame 1
stop();
start_btn.onRelease = function () {
_root.gotoAndStop(_root.levelArray[_root.levelSelect]);
};
Symbol 311 MovieClip Frame 1
onEnterFrame = function () {
if ((((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(40))) || (Key.isDown(39))) || (Key.isDown(32))) {
this._visible = false;
}
};
Symbol 316 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 319 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 321 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 250;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 328 MovieClip Frame 1
function adjust(v, threshold, maximum) {
vx = 0;
if (v <= threshold) {
vx = (v / threshold) * 1;
} else {
vx = 1;
}
return(vx);
}
function move() {
this._rotation = (angle * 180) / 3.141593;
UD = Key.isDown(40) - Key.isDown(38);
LR = (Key.isDown(37) - Key.isDown(39)) / 4;
HAND = Key.isDown(32);
if (LR) {
angle = angle + (((LR * UD) * steer) * adjust(Math.abs(speed), steer_threshold, MAXSpd));
} else {
turnskidding = false;
}
if (!UD) {
speed = speed * drift;
} else if (UD & (!HAND)) {
speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd);
}
if (Math.abs(speed) < (accel / 2)) {
speed = 0;
}
if (HAND) {
speed = speed * handbrake;
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
}
traction = handbrake_traction / surface;
} else {
skidding = false;
traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface));
steer = steer_normal;
}
if (speed <= 0) {
traction = 1;
}
this._x = this._x + ((vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction)));
this._y = this._y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
}
gotoAndStop(_root.carSelect);
var accel = 0.4;
var steer = 0.03;
var steer_normal = 0.07;
var steer_handbrake = 0.099;
var steer_threshold = 3;
var MINspd = -5;
var MAXspd = 5;
var MAXskiddisplay = 2;
var MAXturnSpd = 6;
var MaxTurnSkid = 18;
var deccel = 0.92;
var handbrake = 0.33;
var handbrake_traction = 20;
var drift = 0.58;
var speed = 0;
var surface = 3;
var traction = 3;
var traction_max = 1;
var vector = [0, 0];
var angle = ((this._rotation / 180) * 3.141593);
var skidding = false;
var turnskidding = false;
var hit = false;
onEnterFrame = function () {
if (_parent.car_mc.hit != true) {
move();
}
};
stop();
Symbol 328 MovieClip Frame 2
stop();
Symbol 328 MovieClip Frame 3
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
_root.hud_mc.stopTime = true;
Symbol 333 MovieClip Frame 17
stop();
stopAllSounds();
_root.alarm_mc.gotoAndPlay(2);
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
_root.hud_mc.stopTime = true;
Symbol 338 MovieClip Frame 17
stop();
stopAllSounds();
_root.alarm_mc.gotoAndPlay(2);
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
_root.hud_mc.stopTime = true;
Symbol 342 MovieClip Frame 17
stop();
stopAllSounds();
_root.alarm_mc.gotoAndPlay(2);
Symbol 343 MovieClip Frame 1
function adjust(v, threshold, maximum) {
vx = 0;
if (v <= threshold) {
vx = (v / threshold) * 1;
} else {
vx = 1;
}
return(vx);
}
function move() {
this._rotation = (angle * 180) / 3.141593;
UD = Key.isDown(40) - Key.isDown(38);
LR = (Key.isDown(37) - Key.isDown(39)) / 4;
HAND = Key.isDown(32);
if (LR) {
angle = angle + (((LR * UD) * steer) * adjust(Math.abs(speed), steer_threshold, MAXSpd));
} else {
turnskidding = false;
}
if (!UD) {
speed = speed * drift;
} else if (UD & (!HAND)) {
_root.hud_mc.fuel_mc.fuel = _root.hud_mc.fuel_mc.fuel - fuelEffeciency[_root.level - 1];
speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd);
}
if (Math.abs(speed) < (accel / 2)) {
speed = 0;
}
if (HAND) {
speed = speed * handbrake;
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
}
traction = handbrake_traction / surface;
} else {
skidding = false;
traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface));
steer = steer_normal;
}
if (speed <= 0) {
traction = 1;
}
this._x = this._x + ((vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction)));
this._y = this._y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
}
gotoAndStop(_root.carSelect);
var fuelEffeciency = [0.1, 0.2, 0.25, 0.1, 0.2, 0.25, 0.1, 0.2, 0.25];
var accel = 0.4;
var steer = 0.06;
var steer_normal = 0.07;
var steer_handbrake = 0.099;
var steer_threshold = 3;
var MINspd = -5;
var MAXspd = 5;
var MAXskiddisplay = 2;
var MAXturnSpd = 6;
var MaxTurnSkid = 18;
var deccel = 0.92;
var handbrake = 0.33;
var handbrake_traction = 20;
var drift = 0.58;
var speed = 0;
var surface = 3;
var traction = 3;
var traction_max = 1;
var vector = [0, 0];
var angle = ((this._rotation / 180) * 3.141593);
var skidding = false;
var turnskidding = false;
var hit = false;
onEnterFrame = function () {
if (_parent.car_mc.hit != true) {
move();
} else {
_root.hud_mc.battery_mc.bar_mc._rotation = 60;
}
};
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 343 MovieClip Frame 3
stop();
Symbol 346 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this._alpha = 0;
var scope = _parent;
var tolerance = 250;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 348 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((_root.level % 3) == 0) {
_root.mainLevel[Math.round(_root.level / 3) - 1] = 1;
}
_root.timeScore = Math.round(((_root.maxTime - _root.time) / 25) * 100);
_root.levelScore = (10000 - ((_root.hud_mc.fuel_mc.fuelCount + 1) * 1000)) + Math.round((_root.hud_mc.fuel_mc.fuel * 100) + (_root.level * 1000));
_root.gotoAndStop("levelComplete");
}
};
Symbol 354 MovieClip Frame 24
stop();
Symbol 358 MovieClip Frame 1
stop();
var timer = 0;
var maxTime = 500;
var hit = false;
onEnterFrame = function () {
if (_currentframe == 1) {
timer++;
_root.hud_mc.battery_mc.bar_mc._rotation = (((Math.round(timer / 25) * 120) * 25) / maxTime) - 60;
if (timer == maxTime) {
gotoAndPlay (2);
timer = 0;
}
}
};
Symbol 358 MovieClip Frame 18
stop();
var timer2 = 0;
var drain = 1;
var spaceKey = false;
onEnterFrame = function () {
if ((_currentframe < 29) && (_currentframe >= 18)) {
if (Key.isDown(32)) {
if ((!spaceKey) && ((_root.hud_mc.fuel_mc.fuel - drain) >= 0)) {
_root.hud_mc.fuel_mc.fuel = _root.hud_mc.fuel_mc.fuel - drain;
_root.hud_mc.battery_mc.bar_mc._rotation = _root.hud_mc.battery_mc.bar_mc._rotation - 10;
spacekey = true;
nextFrame();
}
} else {
spacekey = false;
}
if (_currentframe > 18) {
timer2++;
if (timer2 >= 75) {
_root.hud_mc.battery_mc.bar_mc._rotation = _root.hud_mc.battery_mc.bar_mc._rotation + 13.3333333333333;
timer2 = 0;
prevFrame();
}
}
}
};
Symbol 358 MovieClip Frame 29
onEnterFrame = null;
gotoAndStop (1);
Symbol 360 MovieClip Frame 1
Symbol 360 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 241
stop();
Symbol 387 MovieClip Frame 1
var fuel = 100;
var fuelCount = 0;
var fuelOver = false;
var my_color = new Color(bar_mc);
var myColorTransform = {ra:255, rb:244, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
var myColorTransform2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
onEnterFrame = function () {
if ((fuel >= 0) && (fuel < 100)) {
bar_mc._yscale = fuel;
}
if (fuel < 10) {
my_color.setTransform(myColorTransform);
} else {
my_color.setTransform(myColorTransform2);
}
if ((fuel <= 0) && (!fuelOver)) {
_root.level_mc.car_mc.hit = true;
_parent.arrow_mc._visible = true;
fuelOver = true;
}
};
this.onRelease = function () {
if (fuelOver) {
fuel = fuel + 5;
if (fuel >= 100) {
fuelCount++;
fuel = 100;
fuelOver = false;
_parent.arrow_mc._visible = false;
_root.level_mc.car_mc.hit = false;
}
}
};
Symbol 398 MovieClip Frame 1
var timer = 0;
_root.maxTime = 3000;
_root.time = 0;
var stopTime = false;
arrow_mc._visible = false;
onEnterFrame = function () {
if (!stopTime) {
timer++;
_root.time = Math.round((_root.maxTime - timer) / 25);
if (_root.time <= 10) {
if ((_root.time == 10) && (timer_mc._currentframe == 1)) {
timer_mc.gotoAndPlay(2);
}
time_txt.textColor = "0Xff0000";
}
if (timer == _root.maxTime) {
_root.level_mc.car_mc.hit = true;
_root.time_mc.gotoAndPlay(2);
stopTime = true;
}
}
};
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 45
stop();
_root.gotoAndStop("gameOver");
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 11
stopAllSounds();
Symbol 411 MovieClip Frame 61
stopAllSounds();
Symbol 411 MovieClip Frame 76
stop();
_root.gotoAndStop("gameOver");
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 11
stopAllSounds();
Symbol 414 MovieClip Frame 76
stop();
_root.gotoAndStop("gameOver");
Symbol 426 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 428 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 434 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 436 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 450 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 464 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 465 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 468 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 477 MovieClip Frame 1
onEnterFrame = function () {
if ((((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(40))) || (Key.isDown(39))) || (Key.isDown(32))) {
this._visible = false;
}
};
Symbol 488 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
_parent.gate_mc.gotoAndStop(2);
gotoAndStop (2);
onEnterFrame = null;
}
}
}
};
stop();
Symbol 488 MovieClip Frame 2
stop();
Symbol 492 MovieClip Frame 9
stop();
Symbol 493 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
stop();
Symbol 493 MovieClip Frame 2
stop();
Symbol 500 MovieClip Frame 1
if (count == undefined) {
var count = 0;
}
Symbol 500 MovieClip Frame 170
count++;
if (count == 2) {
this._visible = false;
}
Symbol 506 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 9
stop();
Symbol 508 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
stop();
Symbol 508 MovieClip Frame 2
stop();
Symbol 513 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 515 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 517 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 519 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 520 MovieClip Frame 1
if (count == undefined) {
var count = 0;
}
Symbol 520 MovieClip Frame 170
count++;
if (count == 2) {
this._visible = false;
}
Symbol 529 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
this._alpha = 50;
} else {
this._alpha = 100;
}
}
};
Symbol 530 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this._alpha = 0;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 552 MovieClip Frame 73
stop();
Symbol 561 MovieClip Frame 102
stop();
next_btn.onRelease = function () {
_root.gotoAndStop("highScores");
};
Symbol 566 MovieClip Frame 47
stop();
Symbol 574 Button
on (release) {
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 578 Button
on (release) {
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 584 MovieClip Frame 32
stop();
if (_root.score <= 0) {
_root.score = 10;
}
_level0.swHighScoreObject.player1Score = _root.score;
trace("_level0.swHighScoreObject.player1Score " + _level0.swHighScoreObject.player1Score);
_root.object = "";
playAgain_btn.onRelease = function () {
_root.score = 0;
_root.gotoAndStop(_root.levelArray[int(_root.level - 1)]);
};
submit_btn.onRelease = function () {
_root.gotoAndStop("highScores");
};
Instance of Symbol 583 MovieClip in Symbol 584 MovieClip Frame 32
onClipEvent (load) {
this.swapDepths(100033);
docount = false;
}
onClipEvent (enterFrame) {
if (docount) {
trycount++;
if ((_level2.getBytesTotal() == -1) && (trycount > 60)) {
docount = false;
trycount = 0;
}
}
}
Symbol 591 MovieClip Frame 9
stop();
playAgain_btn.onRelease = function () {
_root.score = 0;
_root.mainLevel = [0, 0, 0];
_root.playIntro = true;
_root.playIntroSound = true;
_root.level = 1;
_root.gotoAndStop("lblgameintro");
};
Symbol 610 MovieClip Frame 9
stop();
var checkLevel = 0;
_root.score = (_root.score + _root.levelScore) + _root.timeScore;
next_btn.onRelease = function () {
if ((_root.level % 3) == 0) {
i = 0;
while (i < 3) {
checkLevel = checkLevel + _root.mainLevel[i];
i++;
}
if (checkLevel == 3) {
_root.gotoAndStop("win");
}
_root.gotoAndStop("lblgameIntro");
} else {
_root.gotoAndStop(_root.levelArray[int(_root.level)]);
}
};