Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("a3c8fd39", this, 10301, true);
stop();
soundOn = true;
cMore.onRelease = function () {
getURL ("http://www.cartitans.com", "_blank");
};
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete onEnterFrame;
_root.play();
} else {
var _local2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 500);
cMore.preloadClip.growBar.gotoAndStop(_local2);
}
};
Frame 2
function sound1() {
if (soundOn == true) {
var _local1 = new Sound();
_local1.attachSound("Loop");
_local1.start(0, 99999);
_local1.setVolume(100);
}
}
stop();
level = 1;
Frame 3
function sound2() {
if (_root.soundOn == true) {
var _local2 = new Sound();
_local2.attachSound("Loop");
_local2.start(0, 99999);
}
}
function hitSounds() {
var _local3 = 1 + random(3);
hitSound = new Sound(this);
if (_local3 == 1) {
hitSound.attachSound("hit1");
} else if (_local3 == 2) {
hitSound.attachSound("hit2");
} else {
hitSound.attachSound("hit3");
}
if (_root.soundOn == true) {
hitSound.start(0, 0);
}
}
function time_to_string(time_to_convert) {
elapsed_hours = Math.floor(time_to_convert / 3600000);
remaining = time_to_convert - (elapsed_hours * 3600000);
elapsed_minutes = Math.floor(remaining / 60000);
remaining = remaining - (elapsed_minutes * 60000);
elapsed_seconds = Math.floor(remaining / 1000);
remaining = remaining - (elapsed_seconds * 1000);
elapsed_fs = Math.floor(remaining / 10);
if (elapsed_hours < 10) {
hours = "0" + elapsed_hours.toString();
} else {
hours = elapsed_hours.toString();
}
if (elapsed_minutes < 10) {
minutes = "0" + elapsed_minutes.toString();
} else {
minutes = elapsed_minutes.toString();
}
if (elapsed_seconds < 10) {
seconds = "0" + elapsed_seconds.toString();
} else {
seconds = elapsed_seconds.toString();
}
if (elapsed_fs < 10) {
hundredths = "0" + elapsed_fs.toString();
} else {
hundredths = elapsed_fs.toString();
}
return((((("Time: " + minutes) + ":") + seconds) + ":") + hundredths);
}
function position_bg(level) {
wall.gotoAndStop(level);
car._x = carstart_x[level - 1];
car._y = carstart_y[level - 1];
wall._x = wallstart_x[level - 1];
wall._y = wallstart_y[level - 1];
car._rotation = carstartrotation[level - 1];
}
function levelUp1() {
pause = true;
speed = 0;
_root.attachMovie("popUp", "popUp", this.getNextHighestDepth, {_x:0, _y:0});
new mx.transitions.Tween(popUp, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
popUp.time_scored.text = time_to_string(elapsed_time);
popUp.level_scored.text = "Level: " + level;
}
function levelUp2() {
removeMovieClip(_root.popUp);
speed = 0;
level++;
count_down.level_text.text = level;
position_bg(level);
_root.wall["wall" + level]._alpha = 0;
pause = false;
}
function gameWon() {
pause = true;
speed = 0;
_root.gotoAndStop("congrats");
the_final_score = Math.floor(((((((scoreLevel1 + scoreLevel2) + scoreLevel3) + scoreLevel4) + scoreLevel5) + scoreLevel6) + scoreLevel7) / 100);
}
function certainLevel(certain) {
speed = 0;
level = certain;
position_bg(level);
_root.wall["wall" + level]._alpha = 0;
start_time = getTimer();
}
function death1() {
pause = true;
speed = 0;
_root.attachMovie("popDeath", "popDeath", this.getNextHighestDepth, {_x:0, _y:0});
new mx.transitions.Tween(popDeath, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
popDeath.level_scored.text = "Level: " + level;
}
function death2() {
removeMovieClip(_root.popDeath);
_root.wall["wall" + level]._alpha = 0;
_root.wall["obstacle" + level].play();
pause = false;
}
stop();
carstart_x = new Array(180, 276, 187, 135, 110, 490, 470);
carstart_y = new Array(403, 389, 395, 396, 413, 416, 420);
carstartrotation = new Array(0, 0, 0, 0, 20, -20, -30);
wallstart_x = new Array(0, 0, 0, 0, 0, -200, 0);
wallstart_y = new Array(-300, -200, -200, -200, -200, -300, -320);
position_bg(level);
_root.wall["wall" + level]._alpha = 0;
var energy = 100;
var speed = 0;
var rot = 1;
var acc = 0.2;
var maxforw = 2.5;
var maxbackw = -1.5;
var friction = 0.93;
var pause = false;
var pause_time = 0;
var deathOnce = false;
var levelUpOnce = false;
var scoreLevel1 = 1000;
var scoreLevel2 = 1000;
var scoreLevel3 = 1000;
var scoreLevel4 = 1000;
var scoreLevel5 = 1000;
var scoreLevel6 = 1000;
var scoreLevel7 = 1000;
start_time = getTimer();
count_down.level_text.text = level;
car.onEnterFrame = function () {
elapsed_time = getTimer() - start_time;
if (pause == false) {
count_down.time_left.text = time_to_string(elapsed_time);
}
if ((wall._height == 500) && (wall._width == 600)) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else if ((wall._height != 500) && (wall._width == 600)) {
if (wall._y < (500 - wall._height)) {
wall._y = 500 - wall._height;
} else if (wall._y > 0) {
wall._y = 0;
}
if ((wall._y != (500 - wall._height)) && (wall._y != 0)) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
}
if (wall._y == (500 - wall._height)) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
if (car._y >= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
if (wall._y == 0) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
if (car._y <= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
} else if ((wall._height != 500) && (wall._width != 600)) {
if (wall._y < (500 - wall._height)) {
wall._y = 500 - wall._height;
} else if (wall._y > 0) {
wall._y = 0;
} else if (wall._x < (600 - wall._width)) {
wall._x = 600 - wall._width;
} else if (wall._x > 0) {
wall._x = 0;
}
if ((((wall._y != (500 - wall._height)) && (wall._y != 0)) && (wall._x != (600 - wall._width))) && (wall._x != 0)) {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
}
if (((wall._y == (500 - wall._height)) && (wall._x != 0)) && (wall._x != (600 - wall._width))) {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
if (car._y >= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
if (((wall._y == 0) && (wall._x != 0)) && (wall._x != (600 - wall._width))) {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
if (car._y <= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
if (((wall._x == (600 - wall._width)) && (wall._y != 0)) && (wall._y != (500 - wall._height))) {
if (car._x >= 300) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
} else {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._x = 300;
}
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
}
if (((wall._x == 0) && (wall._y != 0)) && (wall._y != (500 - wall._height))) {
if (car._x <= 300) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
} else {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._x = 300;
}
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
}
if ((wall._x == (600 - wall._width)) && (wall._y == 0)) {
if (car._x >= 300) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
} else {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._x = 300;
}
if (car._y <= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
if ((wall._x == 0) && (wall._y == 0)) {
if (car._x <= 300) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
} else {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._x = 300;
}
if (car._y <= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
if ((wall._x == 0) && (wall._y == (500 - wall._height))) {
if (car._x <= 300) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
} else {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._x = 300;
}
if (car._y >= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
if ((wall._x == (600 - wall._width)) && (wall._y == (500 - wall._height))) {
if (car._x >= 300) {
car._x = car._x + (Math.sin(car._rotation * (Math.PI/180)) * speed);
} else {
wall._x = wall._x - (Math.sin(car._rotation * (Math.PI/180)) * speed);
car._x = 300;
}
if (car._y >= 250) {
car._y = car._y - (Math.cos(car._rotation * (Math.PI/180)) * speed);
} else {
wall._y = wall._y + (Math.cos(car._rotation * (Math.PI/180)) * speed);
car._y = 250;
}
}
}
if (pause == false) {
if (Key.isDown(32) && (speed > 1)) {
speed = speed - (acc * 2);
}
if (Key.isDown(32) && (speed < -1)) {
speed = speed + (acc * 2);
}
if ((Key.isDown(87) && (speed < maxforw)) || (Key.isDown(38) && (speed < maxforw))) {
speed = speed + acc;
} else if ((Key.isDown(83) && (speed > maxbackw)) || (Key.isDown(40) && (speed > maxbackw))) {
speed = speed - acc;
} else if (((!Key.isDown(83)) || ((!Key.isDown(38)) && (!Key.isDown(87)))) || (!Key.isDown(40))) {
if ((speed < 0.5) && (speed > -0.5)) {
speed = 0;
} else {
speed = speed * friction;
}
}
if (Key.isDown(65) || (Key.isDown(37))) {
car._rotation = car._rotation - (rot * (speed / maxforw));
} else if ((!Key.isDown(65)) || (!Key.isDown(37))) {
}
if (Key.isDown(68) || (Key.isDown(39))) {
car._rotation = car._rotation + (rot * (speed / maxforw));
} else if ((!Key.isDown(68)) || (!Key.isDown(39))) {
}
}
_root.car.front_left_p = {x:-20, y:-38};
_root.car.localToGlobal(_root.car.front_left_p);
_root.car.front_right_p = {x:20, y:-38};
_root.car.localToGlobal(_root.car.front_right_p);
_root.car.back_left_p = {x:-20, y:38};
_root.car.localToGlobal(_root.car.back_left_p);
_root.car.back_right_p = {x:20, y:38};
_root.car.localToGlobal(_root.car.back_right_p);
_root.car.front_p = {x:0, y:-38};
_root.car.localToGlobal(_root.car.front_p);
_root.car.back_p = {x:0, y:38};
_root.car.localToGlobal(_root.car.back_p);
_root.car.left_p = {x:-20, y:0};
_root.car.localToGlobal(_root.car.left_p);
_root.car.right_p = {x:20, y:0};
_root.car.localToGlobal(_root.car.right_p);
this.fl_x = _root.car.front_left_p.x;
this.fl_y = _root.car.front_left_p.y;
this.fr_x = _root.car.front_right_p.x;
this.fr_y = _root.car.front_right_p.y;
this.bl_x = _root.car.back_left_p.x;
this.bl_y = _root.car.back_left_p.y;
this.br_x = _root.car.back_right_p.x;
this.br_y = _root.car.back_right_p.y;
this.fp_x = _root.car.front_p.x;
this.fp_y = _root.car.front_p.y;
this.bp_x = _root.car.back_p.x;
this.bp_y = _root.car.back_p.y;
this.lp_x = _root.car.left_p.x;
this.lp_y = _root.car.left_p.y;
this.rp_x = _root.car.right_p.x;
this.rp_y = _root.car.right_p.y;
if (_root.wall["wall" + level].hitTest(this.fl_x, this.fl_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.fr_x, this.fr_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.bl_x, this.bl_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.br_x, this.br_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.fp_x, this.fp_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.bp_x, this.bp_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.lp_x, this.lp_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if (_root.wall["wall" + level].hitTest(this.rp_x, this.rp_y, true)) {
if (pause == false) {
hitSounds();
death1();
_root.wall["obstacle" + level].stop();
}
}
if ((((_root.wall.the_end.hitTest(this.br_x, this.br_y, true) && (_root.wall.the_end.hitTest(this.bl_x, this.bl_y, true))) && (_root.wall.the_end.hitTest(this.fl_x, this.fl_y, true))) && (_root.wall.the_end.hitTest(this.fr_x, this.fr_y, true))) && (speed == 0)) {
_root["scoreLevel" + level] = elapsed_time;
if (level < 7) {
if (pause == false) {
levelUp1();
}
} else {
gameWon();
}
}
if (_root.wall["obstacle" + level].hitTest(this.fr_x, this.fr_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.fl_x, this.fl_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.br_x, this.br_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.bl_x, this.bl_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.fp_x, this.fp_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.bp_x, this.bp_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.lp_x, this.lp_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
if (_root.wall["obstacle" + level].hitTest(this.rp_x, this.rp_y, true)) {
if (pause == false) {
_root.wall["obstacle" + level].stop();
hitSounds();
death1();
}
}
};
Frame 4
final_score.text = the_final_score;
stop();
Symbol 14 Button
on (release) {
_root.levelUp2();
_root.sound2();
}
Symbol 17 Button
on (release) {
getURL ("http://www.cartitans.com", _blank);
}
Symbol 21 MovieClip [popDeath] Frame 78
_root.wall.gotoAndStop(level);
_root.car._x = _root.carstart_x[_root.level - 1];
_root.car._y = _root.carstart_y[_root.level - 1];
_root.wall._x = _root.wallstart_x[_root.level - 1];
_root.wall._y = _root.wallstart_y[_root.level - 1];
_root.car._rotation = _root.carstartrotation[_root.level - 1];
Symbol 21 MovieClip [popDeath] Frame 79
stop();
_root.death2();
Symbol 25 Button
on (press) {
getURL ("http://www.cartitans.com", "_blank");
}
Symbol 84 MovieClip Frame 45
gotoAndPlay (1);
Symbol 89 MovieClip Frame 49
gotoAndPlay (1);
Symbol 101 MovieClip Frame 75
gotoAndPlay (1);
Symbol 102 MovieClip Frame 36
stop();
Symbol 200 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 201 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 202 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 119 MovieClip Frame 67
_root.sound1();
Symbol 119 MovieClip Frame 76
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
soundOnOff.onRelease = function () {
if (_root.soundOn == true) {
this.gotoAndStop(2);
_root.soundOn = false;
stopAllSounds();
} else {
this.gotoAndStop(1);
_root.soundOn = true;
playSound = new Sound(this);
playSound.attachSound("Loop");
playSound.start(0, 9999);
}
};
Symbol 128 Button
on (release) {
trace(_root.ts_out.ts_in._currentframe);
if (_root.ts_out.ts_in._currentframe < 67) {
_root.sound1();
_root.ts_out.ts_in.gotoAndStop(1);
}
_root.gotoAndStop("game");
}
Symbol 129 Button
on (release) {
getURL ("http://www.cartitans.com", _blank);
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
soundOnOff.onRelease = function () {
if (_root.soundOn == true) {
this.gotoAndStop(2);
_root.soundOn = false;
stopAllSounds();
} else {
this.gotoAndStop(1);
_root.soundOn = true;
playSound = new Sound(this);
playSound.attachSound("Loop");
playSound.start(0, 9999);
}
};
soundOnOff.onRollOver = function () {
if (_root.soundOn == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
soundOnOff.onRollOut = function () {
if (_root.soundOn == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 183 Button
on (release) {
getURL ("http://www.cartitans.com", "_blank");
}
Symbol 188 Button
on (release, keyPress "r") {
_root.certainLevel(_root.level);
}
Symbol 190 Button
on (release) {
getURL ("http://www.cartitans.com", _blank);
}
Symbol 193 MovieClip Frame 1
stopAllSounds();
Symbol 193 MovieClip Frame 2
stop();
Symbol 195 Button
on (release) {
_root.gotoAndStop("TS");
}