Frame 1
email_mc.loadMovie("/emailform_component.swf?printImage=smash");
Frame 3
function loadTest() {
preloadBar._xscale = (loadedBytes / totalBytes) * 100;
loadedBytes = getBytesLoaded();
totalBytes = getBytesTotal();
if (loadedBytes == totalBytes) {
gotoAndStop ("start");
clearInterval(loadInt);
}
}
Object.prototype.FlashTrack = function () {
this.init();
};
FlashTrack.prototype.init = function () {
var _local1 = this;
_local1.DCS = new Object();
_local1.WT = new Object();
_local1.DCSext = new Object();
};
FlashTrack.prototype.setDCSVar = function (name, value) {
this.DCS[name] = value;
};
FlashTrack.prototype.setWTVar = function (name, value) {
this.WT[name] = value;
};
FlashTrack.prototype.setDCSExtVar = function (name, value) {
this.DCSext[name] = value;
};
FlashTrack.prototype.track = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
trace("FlashTrack-> Tracking " + _local1);
getURL (("javascript:FlashTrack(" + _local1) + ");");
return(true);
}
trace("FlashTrack-> Nothing to track.");
return(false);
};
FlashTrack.prototype.trackRedir = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedir(" + _local1) + ");");
return(true);
}
trace("FlashTrack-> Nothing to track.");
return(false);
};
FlashTrack.prototype.trackRedirPopup = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedirPopup(" + _local1) + ");");
return(true);
}
trace("FlashTrack-> Nothing to track.");
return(false);
};
FlashTrack.prototype.trackRedirParent = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedirParent(" + _local1) + ");");
return(true);
}
return(false);
};
FlashTrack.prototype.trackRedirParentOpen = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedirParentOpen(" + _local1) + ");");
return(true);
}
return(false);
};
FlashTrack.prototype.$getParams = function () {
var _local1 = this;
var _local2 = new Array();
for (i in _local1.DCS) {
_local2.push(("'DCS." + i) + "'", ("'" + _local1.DCS[i]) + "'");
}
for (i in _local1.WT) {
_local2.push(("'WT." + i) + "'", ("'" + _local1.WT[i]) + "'");
}
for (i in _local1.DCSext) {
_local2.push(("'DCSext." + i) + "'", ("'" + _local1.DCSext[i]) + "'");
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["FlashTrack"], 1);
_global.__FlashTrackGetURL = function (url, ft) {
var _local1 = this;
_local1.ft = ft;
_local1.url = url;
_local1.ft.track();
_local1.myInt = setInterval(_local1, "wait", 1000);
};
__FlashTrackGetURL.prototype.wait = function () {
clearInterval(this.myInt);
getURL (this.url);
};
_global.getURLAndTrack = function (url, ft) {
var ftgu = new __FlashTrackGetURL(url, ft);
};
loadInt = setInterval(loadTest, 50);
stop();
Frame 5
_global.smash = this;
_global.ftPlay = new FlashTrack();
_global.ftPlayAgain = new FlashTrack();
ftPlay.setWTVar("ti", "Smash n Rev Game Play");
ftPlayAgain.setWTVar("ti", "Smash n Rev Game Play Again");
stop();
Instance of Symbol 164 MovieClip "sounds_mc" in Frame 5
onClipEvent (load) {
function playSound(sName, iLoop) {
this[sName].start(0, iLoop);
}
function stopSound(sName) {
this[sName].stop();
}
_global.sounds = this;
intro_snd = new Sound();
intro_snd.attachSound("introSound");
splashcrash_snd = new Sound();
splashcrash_snd.attachSound("splashcrashSound");
rev_snd = new Sound();
rev_snd.attachSound("revSound");
playrev_snd = new Sound();
playrev_snd.attachSound("playrevSound");
opendoor_snd = new Sound();
opendoor_snd.attachSound("opendoorSound");
conveyor_snd = new Sound();
conveyor_snd.attachSound("conveyorSound");
button_snd = new Sound();
button_snd.attachSound("buttonSound");
beep_snd = new Sound();
beep_snd.attachSound("beepSound");
playing_snd = new Sound();
playing_snd.attachSound("playingSound");
hitwall_snd = new Sound();
hitwall_snd.attachSound("hitwallSound");
trapdoor_snd = new Sound();
trapdoor_snd.attachSound("trapdoorSound");
tada_snd = new Sound();
tada_snd.attachSound("tadaSound");
vacuum_snd = new Sound();
vacuum_snd.attachSound("vacuumSound");
water_snd = new Sound();
water_snd.attachSound("waterSound");
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 70 MovieClip [VehiclesSymbol] Frame 1
#initclip 1
function VehiclesClass() {
this.init();
}
VehiclesClass.prototype = new MovieClip();
Object.registerClass("VehiclesSymbol", VehiclesClass);
VehiclesClass.prototype.init = function () {
var _local1 = this;
_local1.startX = -30;
_local1.endX = 175;
_local1.rampStartX = 90;
_local1.moveX = 14;
_local1.offScreenX = 500;
};
VehiclesClass.prototype.startMove = function () {
this.moveInt = setInterval(this, "move", 20);
};
VehiclesClass.prototype.move = function () {
var _local1 = this;
var _local2 = _global;
if (_local1._x < _local1.startX) {
_local1._x = _local1._x + _local2.speed;
} else if ((_local1._x >= _local1.startX) && (_local1._x < _local1.endX)) {
if ((_local2.angle == -80) && (_local2.playerWon == 1)) {
smashfloor.loseAPlayer();
_local1.playCrash("yes");
} else if ((_local2.angle == 0) && (_local1._x >= _local1.rampStartX)) {
ending_mc = attachMovie("Ending5Symbol", ending, 450);
ending_mc._x = 232;
ending_mc._y = 167;
_local1.playCrash("no");
} else if ((_local2.angle < -65) && (_local2.angle >= -80)) {
smashfloor.loseAPlayer();
_local1.playCrash("yes");
} else {
_local1._rotation = _local2.angle;
_local1._x = _local1._x + _local1.moveX;
if (_local2.angle < 0) {
_local1._y = _local1._y - _local2.newAngle;
}
}
} else if ((_local1._x >= _local1.endX) && (_local2.angle == -60)) {
_local1._x = _local1._x + _local1.moveX;
_local1._y = _local1._y - _local2.newAngle;
if (_local1.missInt == undefined) {
_local1.missInt = setInterval(_local1, "stopMove", 500);
}
} else if ((_local1._x > _local1.endX) && (_local2.angle != -60)) {
if (_local2.angle > -55) {
if (_local2.playerWon == 1) {
smashfloor.wall_mc.gotoAndStop("broken");
getURL ("javascript:shakeBrowser()");
} else {
smashfloor.wall_mc.gotoAndPlay("start");
}
if (_local2.playerWon == 0) {
smashfloor.crash_mc.gotoAndPlay("start");
} else {
smashfloor.crash_mc.gotoAndPlay("startfinal");
}
}
if (_local2.playerWon == 0) {
smashfloor.playEnding();
}
_local2.movecar._x = _local1.offScreenX;
clearInterval(_local1.moveInt);
}
};
VehiclesClass.prototype.stopMove = function () {
clearInterval(this.moveInt);
clearInterval(this.missInt);
smashfloor.loseAPlayer();
};
VehiclesClass.prototype.playCrash = function (playCloud) {
if (playCloud == "yes") {
smashfloor.crash_mc._x = -130;
smashfloor.crash_mc._y = 10;
smashfloor.crash_mc.gotoAndPlay("start");
}
clearInterval(this.moveInt);
_global.movecar._x = this.offScreenX;
};
#endinitclip
smallvehicles_mc.gotoAndStop(_global.chosenVehicle);
Symbol 79 MovieClip [Ending1Symbol] Frame 11
sounds.playSound("vacuum_snd", 1);
Symbol 79 MovieClip [Ending1Symbol] Frame 27
stop();
smashfloor.loseAPlayer();
Symbol 87 MovieClip Frame 16
stop();
Symbol 88 MovieClip [Ending2Symbol] Frame 33
sounds.playSound("trapdoor_snd", 1);
Symbol 88 MovieClip [Ending2Symbol] Frame 40
stop();
smashfloor.loseAPlayer();
Symbol 96 MovieClip [Ending3Symbol] Frame 31
sounds.playSound("water_snd", 1);
Symbol 96 MovieClip [Ending3Symbol] Frame 39
sounds.playSound("trapdoor_snd", 1);
Symbol 96 MovieClip [Ending3Symbol] Frame 49
stop();
smashfloor.loseAPlayer();
Symbol 107 MovieClip Frame 4
stop();
Symbol 109 MovieClip [SurpriseSymbol] Frame 12
stop();
continue_btn.onRelease = function () {
sounds.playSound("button_snd", 1);
_global.chosenVehicle = "scooter";
_global.playerWon = 1;
smash.choosevehicle_mc.vehicles_mc.gotoAndStop("vehicle6");
smash.choosevehicle_mc.names_mc.gotoAndStop("vehicle6");
smash.choosevehicle_mc.gotoAndPlay("showvehicle");
smashfloor.gotoAndStop("default");
gotoAndStop ("default");
};
Symbol 126 MovieClip [ScooterSymbol] Frame 84
stop();
smash.choosevehicle_mc.play();
Symbol 135 MovieClip Frame 25
stop();
_parent.play();
Symbol 136 MovieClip [Ending4Symbol] Frame 1
smashfloor.wall_mc.gotoAndStop("empty");
stop();
Symbol 136 MovieClip [Ending4Symbol] Frame 2
sounds.playSound("trapdoor_snd", 1);
Symbol 136 MovieClip [Ending4Symbol] Frame 9
stop();
smashfloor.wall_mc.gotoAndStop("default");
smashfloor.loseAPlayer();
Symbol 137 MovieClip [Ending5Symbol] Frame 1
sounds.playSound("trapdoor_snd", 1);
vehicle_mc.gotoAndStop(_global.chosenVehicle);
Symbol 137 MovieClip [Ending5Symbol] Frame 8
stop();
smashfloor.playEnding();
Symbol 141 Button
on (release) {
_level7.stopInstructions();
this.master.ClearL1Instructions();
}
Symbol 142 MovieClip [InstructSymbol] Frame 14
stop();
play_btn.onPress = function () {
sounds.playSound("button_snd", 1);
play();
};
Symbol 142 MovieClip [InstructSymbol] Frame 29
stop();
if (_global.firstInstruct == 0) {
_parent.play();
_global.firstInstruct = 1;
}
Symbol 146 MovieClip [TitleSymbol] Frame 1
crashtest_txt.text = _global.textDisplay;
crashtestshadow_txt.text = _global.textDisplay;
Symbol 146 MovieClip [TitleSymbol] Frame 22
stop();
Symbol 163 MovieClip [CrashSymbol] Frame 1
stop();
Symbol 163 MovieClip [CrashSymbol] Frame 2
sounds.playSound("hitwall_snd", 1);
Symbol 163 MovieClip [CrashSymbol] Frame 12
gotoAndStop ("default");
Symbol 163 MovieClip [CrashSymbol] Frame 15
sounds.playSound("hitwall_snd", 1);
Symbol 163 MovieClip [CrashSymbol] Frame 44
smash.removePlayer();
gotoAndStop ("default");
Symbol 226 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
atv_btn.onRelease = function () {
var _local1 = _global;
sounds.playSound("beep_snd", 1);
if (_local1.vehicleClicked == 0) {
_local1.chosenVehicle = "atv";
_parent.play();
_local1.vehicleClicked = 1;
ftPlay.track();
}
};
atv_btn.onRollOver = function () {
atv_btn.gotoAndStop("rollover");
};
atv_btn.onRollOut = function () {
if (_global.vehicleClicked == 0) {
atv_btn.gotoAndStop("default");
}
};
Symbol 260 MovieClip Frame 2
cycle_btn.onRelease = function () {
var _local1 = _global;
sounds.playSound("beep_snd", 1);
if (_local1.vehicleClicked == 0) {
_local1.chosenVehicle = "cycle";
_parent.play();
_local1.vehicleClicked = 1;
ftPlay.track();
}
};
cycle_btn.onRollOver = function () {
cycle_btn.gotoAndStop("rollover");
};
cycle_btn.onRollOut = function () {
if (_global.vehicleClicked == 0) {
cycle_btn.gotoAndStop("default");
}
};
Symbol 260 MovieClip Frame 3
car_btn.onRelease = function () {
var _local1 = _global;
sounds.playSound("beep_snd", 1);
if (_local1.vehicleClicked == 0) {
_local1.chosenVehicle = "car";
_parent.play();
_local1.vehicleClicked = 1;
ftPlay.track();
}
};
car_btn.onRollOver = function () {
car_btn.gotoAndStop("rollover");
};
car_btn.onRollOut = function () {
if (_global.vehicleClicked == 0) {
car_btn.gotoAndStop("default");
}
};
Symbol 260 MovieClip Frame 4
cart_btn.onRelease = function () {
var _local1 = _global;
sounds.playSound("beep_snd", 1);
if (_local1.vehicleClicked == 0) {
_local1.chosenVehicle = "cart";
_parent.play();
_local1.vehicleClicked = 1;
ftPlay.track();
}
};
cart_btn.onRollOver = function () {
cart_btn.gotoAndStop("rollover");
};
cart_btn.onRollOut = function () {
if (_global.vehicleClicked == 0) {
cart_btn.gotoAndStop("default");
}
};
Symbol 260 MovieClip Frame 5
mower_btn.onRelease = function () {
var _local1 = _global;
sounds.playSound("beep_snd", 1);
if (_local1.vehicleClicked == 0) {
_local1.chosenVehicle = "mower";
_parent.play();
_local1.vehicleClicked = 1;
ftPlay.track();
}
};
mower_btn.onRollOver = function () {
mower_btn.gotoAndStop("rollover");
};
mower_btn.onRollOut = function () {
if (_global.vehicleClicked == 0) {
mower_btn.gotoAndStop("default");
}
};
Symbol 263 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 3
_global.angle = _global.angle - 20;
Symbol 281 MovieClip Frame 5
if (_global.playerWon == 0) {
_global.angle = _global.angle - 20;
_global.angleNum = _global.angleNum + 1;
} else {
gotoAndPlay ("down");
}
Symbol 281 MovieClip Frame 7
_global.angle = _global.angle - 20;
_global.angleNum = _global.angleNum + 1;
Symbol 281 MovieClip Frame 9
_global.angle = _global.angle - 20;
_global.angleNum = _global.angleNum + 1;
Symbol 281 MovieClip Frame 11
_global.angle = _global.angle + 20;
_global.angleNum = _global.angleNum - 1;
Symbol 281 MovieClip Frame 13
if (_global.playerWon == 0) {
_global.angle = _global.angle + 20;
_global.angleNum = _global.angleNum - 1;
} else {
_global.angle = -40;
_global.angleNum = 1;
gotoAndPlay ("down");
}
Symbol 281 MovieClip Frame 15
if (_global.playerWon == 0) {
_global.angle = _global.angle + 20;
} else {
_global.angle = -20;
_global.angleNum = 0;
}
Symbol 281 MovieClip Frame 16
if (_global.playerWon == 1) {
gotoAndPlay ("down");
}
Symbol 281 MovieClip Frame 17
_global.angle = _global.angle + 20;
_global.angleNum = _global.angleNum - 1;
Symbol 281 MovieClip Frame 18
gotoAndPlay ("start");
Symbol 281 MovieClip Frame 19
function updateSettings() {
smashfloor.loseAPlayer();
clearInterval(waitInt);
}
waitInt = setInterval("updateSettings", 2000);
Symbol 287 MovieClip Frame 20
stop();
smashfloor.removePlayer();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 6
stop();
Symbol 294 MovieClip Frame 14
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 13
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 14
gotoAndPlay ("start");
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 3
_global.speed = _global.speed + 2;
Symbol 315 MovieClip Frame 4
_global.speed = _global.speed + 2;
Symbol 315 MovieClip Frame 5
_global.speed = _global.speed + 2;
Symbol 315 MovieClip Frame 7
_global.speed = _global.speed - 2;
Symbol 315 MovieClip Frame 8
_global.speed = _global.speed - 2;
Symbol 315 MovieClip Frame 9
_global.speed = _global.speed - 2;
Symbol 315 MovieClip Frame 10
gotoAndPlay ("start");
Symbol 344 MovieClip Frame 1
function gameSettings() {
var _local1 = _global;
_local1.speed = 6;
_local1.angle = 0;
_local1.angleNum = 0;
_local1.speedClicked = 0;
_local1.angleClicked = 0;
if (_local1.playerWon == 0) {
crash_txt.text = "CRASH " + _local1.textDisplay;
}
}
function playEnding() {
var _local1 = _global;
if (((_local1.angle == -20) && (_local1.speed == 6)) && (_local1.playerWon == 0)) {
ending_mc = attachMovie("Ending1Symbol", ending, 450);
ending_mc._y = -12;
} else if (((_local1.angle == -20) && (_local1.speed == 8)) && (_local1.playerWon == 0)) {
ending_mc = attachMovie("Ending2Symbol", ending, 450);
ending_mc._y = -12;
} else if (((_local1.angle == -20) && (_local1.speed == 10)) && (_local1.playerWon == 0)) {
ending_mc = attachMovie("Ending3Symbol", ending, 450);
ending_mc._y = -12;
} else if (((_local1.angle == -20) && (_local1.speed == 12)) && (_local1.playerWon == 0)) {
ending_mc = attachMovie("Ending4Symbol", ending, 450);
ending_mc._y = -12;
} else {
loseAPlayer();
}
}
function removePlayer() {
var _local1 = _global;
whichPlayer = "head" + _local1.lostPlayer;
removeMovieClip(whichPlayer);
if ((_local1.angle == -40) && (_local1.playerWon == 0)) {
surprise_mc = attachMovie("SurpriseSymbol", surprise, 250);
} else if ((_local1.textDisplay >= 4) && (_local1.playerWon == 0)) {
gotoAndPlay ("endscreen");
_local1.gameover = 1;
} else if ((_local1.textDisplay <= 4) && (_local1.playerWon == 1)) {
gotoAndPlay ("endscreen");
_local1.gameover = 1;
} else {
gotoAndPlay ("playgame");
gameSettings();
}
}
function loseAPlayer() {
var _local1 = _global;
_local1.lostPlayer = _local1.lostPlayer + 1;
_local1.textDisplay = _local1.textDisplay + 1;
_local1.numPlayers = _local1.numPlayers - 1;
smashfloor.removePlayer();
}
_global.smashfloor = this;
_global.gameover = 0;
sounds.playSound("opendoor_snd", 1);
angleArray = new Array("2", "5", "10", "15");
loadVariables ("../../common/getauthcookie.aspx", this);
Symbol 344 MovieClip Frame 10
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
mx.events.EventDispatcher.initialize(_local1);
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {eventName:"updateAll"};
viewRef.modelChanged(_local1);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if (_local1 < 0) {
} else {
if (_local1 < _local2.length) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(value) == "object") {
_local2.items[_local1] = value;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var _local3 = {eventName:"addItems", firstItem:_local1, lastItem:_local1};
_local2.updateViews(_local3);
}
};
RsDataProviderClass.prototype.addItem = function (value) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.addItemAt(_local1.length, value);
}
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {eventName:"deleteItems", firstItem:_local1, lastItem:_local1};
_local2.updateViews(_local3);
return(tmpItm);
}
return(undefined);
};
RsDataProviderClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items = new Array();
_local1.updateViews({eventName:"removeItems", firstItem:0, lastItem:_local1.length - 1});
}
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = itemObj;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({eventName:"updateItems", firstItem:_local1, lastItem:_local1});
}
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.addProperty("length", RsDataProviderClass.prototype.getLength, null);
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItems = function (compareFunc, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({eventName:"sort"});
}
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({eventName:"sort", fieldName:fieldName, order:order});
}
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = eventObj;
_local2.type = "modelChanged";
this.dispatchEvent(_local2);
var _local3 = this.views.length;
if (_local3 > 0) {
switch (_local2.eventName) {
case "addItems" :
_local2.event = "addRows";
break;
case "updateItems" :
_local2.event = "updateRows";
break;
case "removeItems" :
_local2.event = "deleteRows";
}
_local2.firstRow = _local2.firstItem;
_local2.lastRow = _local2.lastItem;
var _local1 = 0;
while (_local1 < _local3) {
this.views[_local1].modelChanged(_local2);
_local1++;
}
}
};
_global.RecordSet = function (columnNames) {
var _local1 = this;
if (_local1.mTitles != null) {
_local1.views = new Array();
} else {
_local1.init();
if (_local1.serverinfo == null) {
if (_local1.serverInfo != null) {
_local1.serverinfo = _local1.serverInfo;
}
}
if (_local1.serverinfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverinfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverinfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverinfo.cursor == null) ? 0 : (_local1.serverinfo.cursor - 1)), _local1.serverinfo.initialData);
if (_local1.serverinfo.initialData.length != _local1.serverinfo.totalCount) {
_local1.mRecordSetID = _local1.serverinfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverinfo.serviceName == null) ? "RecordSet" : (_local1.serverinfo.serviceName));
_local1.mTotalCount = _local1.serverinfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverinfo = null;
}
}
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordset();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = 0;
}
}
return(_local1.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
};
RecordSet.prototype.addProperty("length", RecordSet.prototype.getLength, null);
RecordSet.prototype.getItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.length)) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews({eventName:"updateItems", firstItem:_local1, lastItem:_local1});
}
};
RecordSet.prototype.filter = function (filterFunction, context) {
if (!this.checkLocal()) {
} else {
var _local3 = new RecordSet(this.mTitles);
var rcount = this.length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = this.getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
};
RecordSet.prototype.sort = function (compareFunc) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews({eventName:"sort"});
}
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.length);
}
return(_local1.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = mode;
_local1.mDeliveryMode = _local3;
_local1.stopFetchAll();
if (_local3 == "ondemand") {
} else {
if (_local2 == null) {
_local2 = _local1.views[0].getRowCount();
if (_local2 == null) {
_local2 = 25;
}
}
if (_local3 == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = numPrefetchPages;
} else if (_local3 == "fetchall") {
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
} else {
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
};
RecordSet.prototype.getRecords_Result = function (info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews({eventName:"updateItems", firstItem:_local2.Cursor - 1, lastItem:((_local2.Cursor - 1) + _local2.Page.length) - 1});
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews({eventName:"allRows"});
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
};
RecordSet.prototype.release_Result = function () {
};
RecordSet.prototype.arrayToObject = function (anArray) {
if (this.mTitles == null) {
NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local1 = 0;
while (_local1 < alen) {
var _local2 = this.mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local2 = 0;
while (_local2 < datalen) {
var _local3 = _local2 + start;
var rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
};
RecordSet.prototype.requestOneRecord = function (index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews({eventName:"fetchRows", firstItem:_local2, lastItem:_local2});
}
};
RecordSet.prototype.requestRecord = function (index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.requestRecordRange(_local2, _local3);
}
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.length) {
lastIndex = _local2.length - 1;
}
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
var _local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
var last = (_local1 - 1);
if (_local3 <= last) {
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews({eventName:"fetchRows", firstItem:_local3, lastItem:last});
}
}
return(highestRequested);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
var _local1 = this;
_local1.mDataFetcher.disable();
_local1.mDataFetcher = new RsDataFetcher(_local1, pagesize);
};
RecordSet.prototype.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
RecordSet.prototype.checkLocal = function () {
if (this.isLocal()) {
return(true);
}
NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(false);
};
_global.RsDataFetcher = function (recordSet, increment) {
var _local1 = this;
_local1.mRecordSet = recordSet;
_local1.mRecordSet.addView(_local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
};
RsDataFetcher.prototype.disable = function () {
var _local1 = this;
_local1.mEnabled = false;
_local1.mRecordSet.removeView(_local1);
};
RsDataFetcher.prototype.doNext = function () {
var _local1 = this;
if (!_local1.mEnabled) {
} else {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.length) {
return;
}
_local1.mHighestRequested = _local1.mRecordSet.requestRecordRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local3 = result;
var _local1 = this.service.client;
_local3._setParentService(this.service);
var _local2 = this.methodName + "_Result";
if (typeof(_local1[_local2]) == "function") {
_local1[_local2](_local3);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local3);
} else {
NetServices.trace("NetServices", "info", 1, (_local2 + " was received from server: ") + _local3);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local1 = result;
var _local2 = this.service.client;
var _local3 = this.methodName + "_Status";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](_local1);
} else if (typeof(_local2.onStatus) == "function") {
_local2.onStatus(_local1);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local1);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local1);
} else {
NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local1.level) + "> ") + _local1.description);
}
};
_global.NetServiceProxy = function (nc, serviceName, client) {
var _local1 = this;
if (nc != null) {
_local1.nc = nc;
_local1.serviceName = serviceName;
_local1.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local1 = this;
var _local2 = arguments;
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetConnection.prototype.getService = function (serviceName, client) {
var _local1 = new NetServiceProxy(this, serviceName, client);
return(_local1);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
var _local1 = info;
this.addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
};
NetConnection.prototype.AppendToGatewayUrl = function (urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local1 = new NetConnection();
_local1.connect(this.uri);
return(_local1);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices.gatewayUrl = gatewayUrl;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
var _local1 = url;
if (_local1 == undefined) {
_local1 = NetServices.gatewayUrl;
if (_local1 == undefined) {
_local1 = NetServices.defaultGatewayUrl;
}
}
if (_local1 == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local2 = new NetConnection();
_local2.connect(_local1);
return(_local2);
};
NetServices.getHostUrl = function () {
var _local2 = _root;
if (!NetServices.isHttpUrl(_local2._url)) {
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
return(null);
}
return(_local2._url.substring(0, _local1));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.DataGlue = function (dataProvider) {
this.dataProvider = dataProvider;
};
_global.DataGlue.bindFormatStrings = function (dataConsumer, dataProvider, labelString, dataString) {
var _local1 = new DataGlue(dataProvider);
_local1.labelString = labelString;
_local1.dataString = dataString;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatString;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.bindFormatFunction = function (dataConsumer, dataProvider, formatFunction) {
var _local1 = new DataGlue(dataProvider);
_local1.formatFunction = formatFunction;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.prototype.addView = function (viewRef) {
return(this.dataProvider.addView(viewRef));
};
_global.DataGlue.prototype.getLength = function () {
return(this.dataProvider.length);
};
_global.DataGlue.prototype.format = function (formatString, record) {
var _local2 = formatString.split("#");
var _local3 = "";
var tlen = _local2.length;
var _local1 = 0;
while (_local1 < tlen) {
_local3 = _local3 + _local2[_local1];
_local3 = _local3 + ((_local2[_local1 + 1] == "") ? "#" : (record[_local2[_local1 + 1]]));
_local1 = _local1 + 2;
}
return(_local3);
};
_global.DataGlue.getItemAt_FormatString = function (index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.labelString, _local1), data:((_local2.dataString == null) ? (_local1) : (_local2.format(_local2.dataString, _local1)))});
};
_global.DataGlue.getItemAt_FormatFunction = function (index) {
var _local1 = this.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(this.formatFunction(_local1));
};
_global.DataGlue.prototype.getItemID = function (index) {
return(this.dataProvider.getItemID(index));
};
_global.DataGlue.prototype.addItemAt = function (index, value) {
return(this.dataProvider.addItemAt(index, value));
};
_global.DataGlue.prototype.addItem = function (value) {
return(this.dataProvider.addItem(value));
};
_global.DataGlue.prototype.removeItemAt = function (index) {
return(this.dataProvider.removeItemAt(index));
};
_global.DataGlue.prototype.removeAll = function () {
return(this.dataProvider.removeAll());
};
_global.DataGlue.prototype.replaceItemAt = function (index, itemObj) {
return(this.dataProvider.replaceItemAt(index, itemObj));
};
_global.DataGlue.prototype.sortItemsBy = function (fieldName, order) {
return(this.dataProvider.sortItemsBy(fieldName, order));
};
_global.DataGlue.prototype.sortItems = function (compareFunc, order) {
return(this.dataProvider.sortItems(compareFunc, order));
};
EventBroadcaster = function () {
this.init();
};
EventBroadcaster.prototype.init = function () {
this.$listeners = new Array();
};
EventBroadcaster.prototype.addEventListener = function (ev, obj, evHand) {
if (!this.eventListenerExists()) {
this.$listeners.push({ev:ev, obj:obj, evHand:evHand});
return(true);
}
return(false);
};
EventBroadcaster.prototype.removeEventListener = function (ev, obj, evHand) {
var _local1 = this.$indexOfEventListener(ev, obj, evHand);
if (_local1 != -1) {
this.$listeners.splice(_local1, 1);
return(true);
}
return(false);
};
EventBroadcaster.prototype.addListener = function (obj) {
return(this.addEventListener("ALL", obj));
};
EventBroadcaster.prototype.removeListener = function (obj) {
return(this.removeEventListener("ALL", obj));
};
EventBroadcaster.prototype.removeAllEventListeners = function (ev) {
var _local1 = this;
if (ev == null) {
_local1.$listeners = new Array();
} else {
var _local3;
var _local2;
for (_local2 in _local1.$listeners) {
_local3 = _local1.$listeners[_local2];
if (_local3.ev == ev) {
_local1.$listeners.splice(_local2, 1);
}
}
}
};
EventBroadcaster.prototype.eventListenerExists = function (ev, obj, evHand) {
return(this.$indexOfEventListener(ev, obj, evHand) != -1);
};
EventBroadcaster.prototype.notify = function () {
var _local3 = arguments;
var _local2 = _local3.shift();
var _local1;
var i;
for (i in this.$listeners) {
_local1 = this.$listeners[i];
if ((_local1.ev == _local2) || (_local1.ev == "ALL")) {
if (_local1.evHand == null) {
_local1.obj[_local2].apply(_local1.obj, _local3);
} else {
_local1.obj[_local1.evHand].apply(_local1.obj, _local3);
}
}
}
};
EventBroadcaster.prototype.$indexOfEventListener = function (ev, obj, evHand) {
var _local3 = this;
var _local1;
var _local2;
for (_local2 in _local3.$listeners) {
_local1 = _local3.$listeners[_local2];
if (((_local1.ev == ev) && (_local1.obj == obj)) && (_local1.evHand == evHand)) {
return(_local2);
}
}
return(-1);
};
EventBroadcaster.initialize = function (obj) {
var _local3 = obj;
var _local2 = new EventBroadcaster();
var _local1;
for (_local1 in _local2) {
_local3[_local1] = _local2[_local1];
}
};
if (EventBroadcaster == null) {
trace("SharedGameServicesOldGames: Cannot find EventBroadcaster. It is required for this class.");
}
GameServicesOldGames = function () {
this.init.apply(this, arguments);
};
GameServicesOldGames.prototype = new EventBroadcaster();
GameServicesOldGames.prototype.init = function (connection, altService) {
var _local1 = this;
super.init();
_local1.oldgame_service = connection.getService(((altService == null) ? "Mattel.GameService.Data.Shared_GameService_OldGames" : (altService)), _local1);
_local1.avatar = "";
};
GameServicesOldGames.prototype.recordScoreOldGame = function (userid, siteid, gameid, score, gametime, gamelevel, credits) {
this.oldgame_service.RecordScoreOldGame(userid, siteid, gameid, score, gametime, gamelevel, credits);
};
GameServicesOldGames.prototype.RecordScoreOldGame_Result = function (result) {
var _local2 = this;
var _local1 = result.Table.getItemAt(0);
_local2.status_value = _local1.status_value;
_local2.notify("onRecordScoreOldGame", _local2);
};
var gameid = 107;
var siteid = 34;
NetServices.setDefaultGatewayURL("/gateway.aspx");
connection = NetServices.createGatewayConnection();
loadVariables ("../../common/getauthcookie.aspx", this);
myOldGameServices = new GameServicesOldGames(connection);
myOldGameServices.addListener(this);
myOldGameServices.recordScoreOldGame(Number(userID), siteid, gameid, 0, 0, 0, 0);
onRecordScoreOldGame = function (c) {
};
sounds.stopSound("intro_snd");
sounds.playSound("playing_snd", 999);
if (_global.speedClicked == 0) {
speed_btn.gotoAndStop("on");
}
if (_global.angleClicked == 0) {
angle_btn.gotoAndStop("on");
}
if (_global.playerWon == 1) {
gotoAndStop ("playerwon");
} else {
instruct_mc = attachMovie("InstructSymbol", instruct, 500);
}
stop();
Symbol 344 MovieClip Frame 11
play();
gameSettings();
if (_global.playerWon == 0) {
_global.lostPlayer = -1;
if (numPlayers == 1) {
headX = 73;
} else if (numPlayers == 2) {
headX = 43;
} else {
headX = 13;
}
i = 0;
while (i < numPlayers) {
head_mc = attachMovie("HeadSymbol", "head" + i, 50 + i);
head_mc._x = head_mc._x + headX;
head_mc._y = -160.5;
headX = headX + 30;
i++;
}
}
Symbol 344 MovieClip Frame 12
function crashDummy() {
var _local1 = _global;
sounds.playSound("playrev_snd", 1);
_local1.movecar = attachMovie("VehiclesSymbol", car, 100);
movecar._x = -250;
movecar._y = 0;
_local1.newAngle = angleArray[_local1.angleNum];
movecar.startMove();
}
if (_global.playerWon == 0) {
title_mc = attachMovie("TitleSymbol", title, 600);
crashtest_txt.text = _global.textDisplay;
}
arrows_mc.gotoAndPlay("start");
crank_mc.gotoAndPlay("start");
if (_global.playerWon != 0) {
(ramp_mc.gotoAndPlay("up"));// not popped
} else {
(ramp_mc.gotoAndPlay("start"));// not popped
}
help_btn.onPress = function () {
sounds.playSound("button_snd", 1);
if ((_global.gameover == 0) && (_global.firstInstruct == 1)) {
instruct_mc = attachMovie("InstructSymbol", instruct, 500);
}
};
speed_btn.onRelease = function () {
var _local1 = _global;
sounds.playSound("button_snd", 1);
speed_btn.gotoAndStop("default");
if (_local1.speedClicked == 0) {
arrows_mc.stop();
_local1.speedClicked = 1;
if ((_local1.speedClicked == 1) && (_local1.angleClicked == 1)) {
crashDummy();
}
}
};
speed_btn.onRollOver = function () {
speed_btn.gotoAndStop("rollover");
};
speed_btn.onRollOut = function () {
speed_btn.gotoAndStop("default");
};
angle_btn.onRelease = function () {
var _local1 = _global;
angle_btn.gotoAndStop("default");
sounds.playSound("button_snd", 1);
if (_local1.angleClicked == 0) {
ramp_mc.stop();
crank_mc.stop();
_local1.angleClicked = 1;
if ((_local1.speedClicked == 1) && (_local1.angleClicked == 1)) {
crashDummy();
}
}
};
angle_btn.onRollOver = function () {
angle_btn.gotoAndStop("rollover");
};
angle_btn.onRollOut = function () {
angle_btn.gotoAndStop("default");
};
Symbol 344 MovieClip Frame 22
stop();
Symbol 344 MovieClip Frame 23
sounds.playSound("opendoor_snd", 1);
Symbol 344 MovieClip Frame 43
((_global.playerWon == 0) ? ((endTitle = "GAME OVER")) : ((endTitle = "WAY TO GO, DUMMY!")));
((_global.playerWon == 0) ? ((endText = "BETTER LUCK NEXT TIME!")) : ((endText = "YOU WIN!")));
endscreen_mc.endtitle_txt.text = endTitle;
endscreen_mc.endtext_txt.text = endText;
Symbol 344 MovieClip Frame 52
stop();
_root.email_mc.gotoAndStop("start");
playagain_btn.onPress = function () {
sounds.playSound("button_snd", 1);
gotoAndStop ("printad");
ftPlayAgain.track();
};
Symbol 344 MovieClip Frame 53
function wait() {
sounds.stopSound("intro_snd");
sounds.playSound("button_snd", 1);
sounds.playSound("intro_snd", 999);
clearInterval(waitInt);
smash.email_mc.gotoAndStop("default");
gotoAndStop ("default");
smash.choosevehicle_mc.gotoAndPlay("start");
}
waitInt = setInterval(wait, 4000);
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
play();
_global.chosenVehicle;
_global.vehicleClicked = 0;
_global.playerWon = 0;
_global.ltarrowClicked = 0;
_global.rtarrowClicked = 0;
_global.speedClicked = 0;
_global.angleClicked = 0;
_global.firstInstruct = 0;
_global.textDisplay = 1;
_global.numPlayers = 3;
Symbol 345 MovieClip Frame 27
stop();
vehicleNum = 1;
if (_global.ltarrowClicked == 0) {
left_btn.gotoAndStop("rollover");
}
if (_global.rtarrowClicked == 0) {
right_btn.gotoAndStop("rollover");
}
right_btn.onPress = function () {
sounds.playSound("button_snd", 1);
if (vehicleClicked == 0) {
if (vehicleNum >= 5) {
vehicleNum = 1;
} else {
vehicleNum = vehicleNum + 1;
}
vehicles_mc.gotoAndStop("vehicle" + vehicleNum);
names_mc.gotoAndStop("vehicle" + vehicleNum);
}
};
right_btn.onRollOver = function () {
right_btn.gotoAndStop("rollover");
left_btn.gotoAndStop("default");
};
right_btn.onRollOut = function () {
_global.arrowClicked = 1;
right_btn.gotoAndStop("default");
};
left_btn.onPress = function () {
sounds.playSound("button_snd", 1);
if (vehicleClicked == 0) {
if (vehicleNum <= 1) {
vehicleNum = 5;
} else {
vehicleNum = vehicleNum - 1;
}
vehicles_mc.gotoAndStop("vehicle" + vehicleNum);
names_mc.gotoAndStop("vehicle" + vehicleNum);
}
};
left_btn.onRollOver = function () {
left_btn.gotoAndStop("rollover");
right_btn.gotoAndStop("default");
};
left_btn.onRollOut = function () {
_global.arrowClicked = 1;
left_btn.gotoAndStop("default");
};
Symbol 345 MovieClip Frame 43
sounds.playSound("opendoor_snd", 1);
if (playerWon == 1) {
vehicles_mc.gotoAndStop("unlocked");
names_mc.gotoAndStop("vehicle6");
sounds.playSound("tada_snd", 1);
}
Symbol 345 MovieClip Frame 54
function moveVehicle() {
if (movevehicle_mc._x < 280) {
movevehicle_mc._x = movevehicle_mc._x + 10;
} else {
clearInterval(moveInt);
play();
}
}
stop();
sounds.playSound("conveyor_snd", 3);
movevehicle_mc.gotoAndStop(_global.chosenVehicle);
if (_global.playerWon == 1) {
scooter_mc = attachMovie("ScooterSymbol", scooter, 70);
scooter_mc._y = -25;
} else {
moveInt = setInterval(moveVehicle, 50);
}
Symbol 345 MovieClip Frame 55
sounds.playSound("opendoor_snd", 1);
names_mc.gotoAndStop("default");
Symbol 345 MovieClip Frame 76
stop();
Symbol 364 MovieClip Frame 7
sounds.playSound("rev_snd", 1);
Symbol 364 MovieClip Frame 30
sounds.playSound("splashcrash_snd", 1);
Symbol 364 MovieClip Frame 49
sounds.playSound("intro_snd", 999);
Symbol 364 MovieClip Frame 73
stop();
smash.choosevehicle_mc.gotoAndPlay("start");