Frame 3
var tPC = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (tPC == 100) {
play();
} else {
gotoAndPlay ("loading");
}
Frame 5
_root.attachMovie("mc.soundclip", "snd_mc", 99999);
Frame 35
_global.gGame = 1;
bplay1_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gGame = 1;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("g1");
};
bplay2_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gGame = 2;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("g2");
};
bplay3_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gGame = 3;
_global.gCourse = 1;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = _global;
var _local2 = _root;
if (chr(Key.getAscii()) == "1") {
Key.removeListener(keyListener);
_local1.gGame = 1;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("g1");
}
if (chr(Key.getAscii()) == "2") {
Key.removeListener(keyListener);
_local1.gGame = 2;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("g2");
}
if (chr(Key.getAscii()) == "3") {
Key.removeListener(keyListener);
_local1.gGame = 3;
_local1.gCourse = 1;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
};
Key.addListener(keyListener);
stop();
Frame 46
bplay1_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gCourse = 1;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
bplay2_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gCourse = 2;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
bplay3_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gCourse = 3;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = _global;
var _local2 = _root;
if (chr(Key.getAscii()) == "1") {
Key.removeListener(keyListener);
_local1.gCourse = 1;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
if (chr(Key.getAscii()) == "2") {
Key.removeListener(keyListener);
_local1.gCourse = 2;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
if (chr(Key.getAscii()) == "3") {
Key.removeListener(keyListener);
_local1.gCourse = 3;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
};
Key.addListener(keyListener);
stop();
Frame 54
bplay1_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gCourse = 1;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
bplay2_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gCourse = 2;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
bplay3_mc.onPress = function () {
Key.removeListener(keyListener);
_global.gCourse = 3;
_root.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = _global;
var _local2 = _root;
if (chr(Key.getAscii()) == "1") {
Key.removeListener(keyListener);
_local1.gCourse = 1;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
if (chr(Key.getAscii()) == "2") {
Key.removeListener(keyListener);
_local1.gCourse = 2;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
if (chr(Key.getAscii()) == "3") {
Key.removeListener(keyListener);
_local1.gCourse = 3;
_local2.snd_mc.playsound("pButton");
gotoAndPlay ("choicedone");
}
};
Key.addListener(keyListener);
stop();
Frame 73
gotoAndPlay (74);
Instance of Symbol 536 MovieClip "charstats_mc" in Frame 74
onClipEvent (load) {
this.gotoAndStop(9);
}
Frame 84
_global.gChar = 4;
left_mc.onPress = function () {
var _local1 = this;
var _local2 = _global;
_root.snd_mc.playsound("pSwipe");
_local1._parent.carouselchar_mc.spinMe(-1);
_local2.gChar++;
if (_local2.gChar == 5) {
_local2.gChar = 1;
}
_local1._parent.charstats_mc.gotoAndStop((_local2.gChar * 2) + 1);
_local1._visible = 0;
_local1._parent.right_mc._visible = 0;
_local1._parent.bselect_mc._visible = 0;
};
right_mc.onPress = function () {
var _local1 = this;
var _local2 = _global;
_root.snd_mc.playsound("pSwipe");
_local1._parent.carouselchar_mc.spinMe(1);
_local2.gChar--;
if (_local2.gChar == 0) {
_local2.gChar = 4;
}
_local1._parent.charstats_mc.gotoAndStop((_local2.gChar * 2) + 1);
_local1._visible = 0;
_local1._parent.left_mc._visible = 0;
_local1._parent.bselect_mc._visible = 0;
};
bselect_mc.onPress = function () {
var _local1 = this;
_root.snd_mc.playsound("pButton");
_root.snd_mc.setCharSound(_global.gChar);
_local1._visible = 0;
_local1._parent.left_mc._visible = 0;
_local1._parent.right_mc._visible = 0;
_local1._parent.carouselchar_mc.spinOff();
Key.removeListener(keyListener);
play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = _global;
var _local2 = _root;
if (Key.getCode() == 37) {
_local2.snd_mc.playsound("pSwipe");
carouselchar_mc.spinMe(-1);
_local1.gChar++;
if (_local1.gChar == 5) {
_local1.gChar = 1;
}
charstats_mc.gotoAndStop((_local1.gChar * 2) + 1);
left_mc._visible = 0;
right_mc._visible = 0;
bselect_mc._visible = 0;
}
if (Key.getCode() == 39) {
_local2.snd_mc.playsound("pSwipe");
carouselchar_mc.spinMe(1);
_local1.gChar--;
if (_local1.gChar == 0) {
_local1.gChar = 4;
}
charstats_mc.gotoAndStop((_local1.gChar * 2) + 1);
left_mc._visible = 0;
right_mc._visible = 0;
bselect_mc._visible = 0;
}
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_local2.snd_mc.playsound("pButton");
_local2.snd_mc.setCharSound(_local1.gChar);
bselect_mc._visible = 0;
left_mc._visible = 0;
right_mc._visible = 0;
carouselchar_mc.spinOff();
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 102
gotoAndPlay (103);
Frame 113
_global.gBoard = 8;
left_mc.onPress = function () {
var _local1 = this;
var _local2 = _global;
_root.snd_mc.playsound("pSwipe");
_local1._parent.carouselboard_mc.spinMe(-1);
_local2.gBoard++;
if (_local2.gBoard == 10) {
_local2.gBoard = 1;
}
_local1._visible = 0;
_local1._parent.right_mc._visible = 0;
_local1._parent.bselect_mc._visible = 0;
};
right_mc.onPress = function () {
var _local1 = this;
var _local2 = _global;
_root.snd_mc.playsound("pSwipe");
_local1._parent.carouselboard_mc.spinMe(1);
_local2.gBoard--;
if (_local2.gBoard == 0) {
_local2.gBoard = 9;
}
_local1._visible = 0;
_local1._parent.left_mc._visible = 0;
_local1._parent.bselect_mc._visible = 0;
};
bselect_mc.onPress = function () {
var _local1 = this;
_root.snd_mc.playsound("pButton");
_local1._visible = 0;
_local1._parent.left_mc._visible = 0;
_local1._parent.right_mc._visible = 0;
_local1._parent.carouselboard_mc.spinOff();
Key.removeListener(keyListener);
play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = _global;
var _local2 = _root;
if (Key.getCode() == 37) {
_local2.snd_mc.playsound("pSwipe");
carouselboard_mc.spinMe(-1);
_local1.gBoard++;
if (_local1.gBoard == 10) {
_local1.gBoard = 1;
}
left_mc._visible = 0;
right_mc._visible = 0;
bselect_mc._visible = 0;
}
if (Key.getCode() == 39) {
_local2.snd_mc.playsound("pSwipe");
carouselboard_mc.spinMe(1);
_local1.gBoard--;
if (_local1.gBoard == 0) {
_local1.gBoard = 9;
}
right_mc._visible = 0;
left_mc._visible = 0;
bselect_mc._visible = 0;
}
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_local2.snd_mc.playsound("pButton");
bselect_mc._visible = 0;
left_mc._visible = 0;
right_mc._visible = 0;
carouselboard_mc.spinOff();
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 131
switch (_global.gGame) {
case 1 :
gotoAndPlay (132);
break;
case 2 :
gotoAndPlay (148);
break;
case 3 :
gotoAndPlay (179);
}
Frame 138
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 147
gotoAndPlay (196);
Frame 153
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 163
gotoAndPlay (196);
Frame 184
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 195
gotoAndPlay (196);
Frame 196
_global.distance = function (obj1, obj2) {
var _local3 = Math.abs(obj1.pLocX - obj2.pLocX);
var _local2 = Math.abs(obj1.pLocY - obj2.pLocY);
var _local1 = Math.sqrt(Math.pow(_local3, 2) + Math.pow(_local2, 2));
return(_local1);
};
_global.getX = function (obj) {
return(obj.pLocY + 40);
};
_global.getY = function (obj) {
return(300 - (obj.pLocY * 1.5));
};
_global.gDist = 0;
_global.gDistance = 0;
Frame 198
function moveBod() {
ty = 0;
if (Key.isDown(37) || (Key.isDown(40))) {
ty--;
}
if (Key.isDown(39) || (Key.isDown(38))) {
ty++;
}
this.bod_mc.nudge(ty);
}
function jumpKey() {
var _local2 = Key.getCode();
if (((gGame == 3) && (gX < 3000)) && (_local2 == 32)) {
switch (pState) {
case "setAngle" :
pAngle = pFrame;
pFrame = 1;
pState = "setAccuracy";
power_mc.play();
break;
case "setAccuracy" :
pAcc = pFrame;
pState = "jump";
power_mc.play();
break;
case "jump" :
}
} else {
var _local1 = 0;
switch (_local2) {
case 49 :
_local1 = 1;
break;
case 50 :
_local1 = 2;
break;
case 51 :
_local1 = 3;
}
if (_local1 > 0) {
bod_mc.jump(_local1);
}
}
}
this.onEnterFrame = function () {
var _local1 = this;
switch (gGame) {
case 1 :
moveBod();
return;
case 2 :
moveBod();
return;
case 3 :
if (gX > 3000) {
moveBod();
} else {
switch (_local1.pState) {
case "ready" :
_local1.pFrame++;
if (_local1.pFrame == 48) {
_local1.pState = "setAngle";
_local1.pFrame = 0;
power_mc.play();
}
break;
case "setAngle" :
_local1.pFrame++;
if ((_local1.pAngle = -1)) {
power_mc.arrow_mc._rotation = -_local1.pFrame;
}
if (_local1.pFrame == 60) {
_local1.pAngle = 60;
_local1.pFrame = 1;
_local1.pState = "setAccuracy";
}
break;
case "setAccuracy" :
_local1.pFrame = _local1.pFrame + _local1.pArrowDir;
if ((_local1.pFrame < 2) || (_local1.pFrame > 20)) {
_local1.pArrowDir = -_local1.pArrowDir;
}
if (!((_local1.pAcc = -1))) {
break;
}
power_mc.arrow_mc.gotoAndStop(_local1.pFrame);
}
moveBod();
}
}
};
Key.removeListener(jumpListener);
jumpListener = undefined;
var jumpListener = new Object();
jumpListener.onKeyDown = jumpKey;
Key.addListener(jumpListener);
switch (_global.gGame) {
case 1 :
control_mc.launchGate(0);
control_mc.launchGate(1);
control_mc.launchGate(2);
control_mc.launchGate(3);
i = 0;
while (i < 15) {
control_mc.launchStar(i);
i++;
}
this._parent.time_mc._y = 375;
control_mc.setStartTime();
switch (gCourse) {
case 1 :
lvltxt_txt.text = "Slalom: Bloo's Bluff";
break;
case 2 :
lvltxt_txt.text = "Slalom: Mount Mac";
break;
case 3 :
lvltxt_txt.text = "Slalom: Coco Ridge";
}
break;
case 2 :
control_mc.launchRamp();
control_mc.launchRamp();
i = 0;
while (i < 15) {
control_mc.launchStar(i);
i++;
}
this._parent.time_mc._y = 375;
control_mc.setStartTime();
switch (gCourse) {
case 1 :
lvltxt_txt.text = "Freestyle: Bloo's Bluff";
break;
case 2 :
lvltxt_txt.text = "Freestyle: Mount Mac";
break;
case 3 :
lvltxt_txt.text = "Freestyle: Coco Ridge";
}
break;
case 3 :
control_mc.launchGate(0);
control_mc.launchGate(1);
control_mc.launchGate(2);
control_mc.launchGate(3);
control_mc.launchRamp();
control_mc.launchRamp();
i = 0;
while (i < 15) {
control_mc.launchStar(i);
i++;
}
arro0_mc.reset(400, 80);
arro1_mc.reset(600, 80);
arro2_mc.reset(900, 80);
arro3_mc.reset(1200, 80);
control_mc.setStartTime();
rampbig_mc.reset();
this.pState = "ready";
this.pFrame = 0;
this.pArrowDir = 1;
this.pAngle = -1;
this.pAcc = -1;
this._parent.time_mc._y = 375;
lvltxt_txt.text = "Big Air Challenge";
break;
}
hills_mc.getinterval();
stop();
Frame 200
Key.removeListener(jumpListener);
_root.snd_mc.endgame();
Frame 239
switch (_global.gGame) {
case 1 :
gotoAndPlay (240);
break;
case 2 :
gotoAndPlay (261);
break;
case 3 :
gotoAndPlay (282);
}
Instance of Symbol 620 MovieClip "scorebase_mc" in Frame 240
onClipEvent (load) {
this.setNum(_global.gSC);
}
Frame 249
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 260
gotoAndPlay (303);
Instance of Symbol 620 MovieClip "scorebase_mc" in Frame 263
onClipEvent (load) {
this.setNum(_global.gSC);
}
Frame 270
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 281
gotoAndPlay (303);
Instance of Symbol 620 MovieClip "scorebase_mc" in Frame 284
onClipEvent (load) {
this.setNum(_global.gSC);
}
Frame 291
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
jumpagain_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
gotoAndPlay (196);
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 302
gotoAndPlay (303);
Frame 304
var jumpNgrindX_so = SharedObject.getLocal("jumpNgrind");
var data1a = jumpNgrindX_so.data.game1a;
var data1b = jumpNgrindX_so.data.game1b;
var data1c = jumpNgrindX_so.data.game1c;
if (data1a == undefined) {
data1a = 0;
}
if (data1b == undefined) {
data1b = 0;
}
if (data1c == undefined) {
data1c = 0;
}
var data2a = jumpNgrindX_so.data.game2a;
var data2b = jumpNgrindX_so.data.game2b;
var data2c = jumpNgrindX_so.data.game2c;
if (data2a == undefined) {
data2a = 0;
}
if (data2b == undefined) {
data2b = 0;
}
if (data2c == undefined) {
data2c = 0;
}
var data3 = jumpNgrindX_so.data.game3;
if (data3 == undefined) {
data3 = 0;
}
switch (_global.gGame) {
case 1 :
switch (_global.gCourse) {
case 1 :
if (gSC > data1a) {
data1a = gSC;
jumpNgrindX_so.data.game1a = gSC;
this.newstar_mc._x = 316;
this.newstar_mc._y = 112;
_root.snd_mc.endgame();
}
break;
case 2 :
if (gSC > data1b) {
data1b = gSC;
jumpNgrindX_so.data.game1b = gSC;
this.newstar_mc._x = 451;
this.newstar_mc._y = 112;
_root.snd_mc.endgame();
}
break;
case 3 :
if (gSC <= data1c) {
break;
}
data1c = gSC;
jumpNgrindX_so.data.game1c = gSC;
this.newstar_mc._x = 577;
this.newstar_mc._y = 112;
_root.snd_mc.endgame();
}
break;
case 2 :
switch (_global.gCourse) {
case 1 :
if (gSC > data2a) {
data2a = gSC;
jumpNgrindX_so.data.game2a = gSC;
this.newstar_mc._x = 316;
this.newstar_mc._y = 158;
_root.snd_mc.endgame();
}
break;
case 2 :
if (gSC > data2b) {
data2b = gSC;
jumpNgrindX_so.data.game2b = gSC;
this.newstar_mc._x = 451;
this.newstar_mc._y = 158;
_root.snd_mc.endgame();
}
break;
case 3 :
if (gSC <= data2c) {
break;
}
data2c = gSC;
jumpNgrindX_so.data.game2c = gSC;
this.newstar_mc._x = 577;
this.newstar_mc._y = 158;
_root.snd_mc.endgame();
}
break;
case 3 :
if (gSC <= data3) {
break;
}
data3 = gSC;
jumpNgrindX_so.data.game3 = gSC;
this.newstar_mc._x = 316;
this.newstar_mc._y = 210;
_root.snd_mc.endgame();
}
jumpNgrindX_so.flush();
this.highscore1a_mc.setNum(data1a);
this.highscore1b_mc.setNum(data1b);
this.highscore1c_mc.setNum(data1c);
this.highscore2a_mc.setNum(data2a);
this.highscore2b_mc.setNum(data2b);
this.highscore2c_mc.setNum(data2c);
this.highscore3_mc.setNum(data3);
Frame 324
bok_mc.onPress = function () {
Key.removeListener(keyListener);
_root.snd_mc.playsound("pButton");
this._parent.play();
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getCode() == 13) || (Key.getCode() == 32)) || (Key.getCode() == 40)) {
_root.snd_mc.playsound("pButton");
Key.removeListener(keyListener);
play();
}
};
Key.addListener(keyListener);
stop();
Frame 338
gotoAndPlay (8);
Symbol 6 MovieClip [mc.soundclip] Frame 1
function setCharSound(tChar) {
switch (tChar) {
case 1 :
pStart.attachSound("snd.bloostart");
pJump1.attachSound("snd.bloojump1");
pJump2.attachSound("snd.bloojump2");
pJump3.attachSound("snd.bloojump3");
pFall.attachSound("snd.bloofall");
break;
case 2 :
pStart.attachSound("snd.macstart");
pJump1.attachSound("snd.macjump1");
pJump2.attachSound("snd.macjump2");
pJump3.attachSound("snd.macjump3");
pFall.attachSound("snd.macjump2");
break;
case 3 :
pStart.attachSound("snd.cocostart");
pJump1.attachSound("snd.cocojump1");
pJump2.attachSound("snd.cocojump2");
pJump3.attachSound("snd.cocojump3");
pFall.attachSound("snd.cocofall");
break;
case 4 :
pStart.attachSound("snd.wiltjump2");
pJump1.attachSound("snd.wiltjump1");
pJump2.attachSound("snd.wiltjump2");
pJump3.attachSound("snd.wiltjump1");
pFall.attachSound("snd.wiltjump2");
break;
case 5 :
pStart.attachSound("snd.eduardostart");
pJump1.attachSound("snd.eduardojump1");
pJump2.attachSound("snd.eduardojump2");
pJump3.attachSound("snd.eduardojump3");
pFall.attachSound("snd.eduardofall");
}
this.playsound("pJump1");
}
function setVol(x) {
var _local1 = x;
pButton.setVolume(_local1 * 100);
pStar.setVolume(_local1 * 100);
pBonus.setVolume(_local1 * 100);
pBoing.setVolume(_local1 * 100);
pBail.setVolume(_local1 * 100);
pJumpKick.setVolume(_local1 * 100);
pRoll.setVolume(_local1 * 100);
pSlide.setVolume(_local1 * 100);
pGameloop.setVolume(_local1 * 100);
pStart.setVolume(_local1 * 100);
pJump1.setVolume(_local1 * 100);
pJump2.setVolume(_local1 * 100);
pJump3.setVolume(_local1 * 100);
pFall.setVolume(_local1 * 100);
pLanding.setVolume(_local1 * 100);
pSwipe.setVolume(_local1 * 100);
if (_local1 == 1) {
pGameloop.start(0, 999);
} else {
pGameloop.stop();
}
}
function playmusic() {
pGameloop.start(0, 999);
}
function fallover() {
pBail.start();
}
function jumpkick() {
pJumpKick.start();
}
function playroll() {
}
function playsound(snd) {
eval (snd).start();
}
function onRelease() {
if (pVol == 100) {
pVol = 0;
this.setVol(0);
gotoAndStop (2);
} else {
pVol = 100;
this.setVol(1);
gotoAndStop (1);
}
}
var pVol = 100;
this._y = 390;
this._x = 575;
var pButton = new Sound();
pButton.attachSound("snd.button.wav");
var pStar = new Sound();
pStar.attachSound("snd.ztink");
var pBonus = new Sound();
pBonus.attachSound("snd.bonus");
var pBoing = new Sound();
pBoing.attachSound("snd.boing");
var pBail = new Sound();
pBail.attachSound("snd.bail.wav");
var pJumpKick = new Sound();
pJumpKick.attachSound("snd.jumpkick.wav");
var pRoll = new Sound();
pRoll.attachSound("snd.roll.wav");
var pSlide = new Sound();
pSlide.attachSound("snd.slide.wav");
var pLanding = new Sound();
pLanding.attachSound("snd.landing.wav");
var pGameloop = new Sound();
pGameloop.attachSound("snd.gameloop");
var pSwipe = new Sound();
pSwipe.attachSound("snd.swipe.wav");
var pStart = new Sound();
var pJump1 = new Sound();
var pJump2 = new Sound();
var pJump3 = new Sound();
playmusic();
stop();
Symbol 16 MovieClip Frame 1
onenterframe = function () {
persen = math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
r = (persen / 100) * 180;
j1._rotation = r;
j2._rotation = -r;
};
Symbol 38 MovieClip Frame 1
next = 1;
xs = 1;
onenterframe = function () {
var _local3 = this;
var _local2 = 1;
while (_local2 <= 11) {
var _local1 = _local3["c" + _local2];
if (_local1._xscale > 100) {
_local1._xscale = 100 + ((_local1._xscale - 100) / 1.5);
_local1._yscale = 100 + ((_local1._xscale - 100) / 1.5);
}
_local1._alpha = 75 + (2 * (_local1._xscale - 100));
_local2++;
}
};
Symbol 38 MovieClip Frame 2
next = next + xs;
if ((next > 11) or (next < 1)) {
xs = -xs;
}
var c = this["c" + next];
ska = 150;
c._xscale = ska;
c._yscale = ska;
Symbol 38 MovieClip Frame 4
gotoAndPlay ("l");
Symbol 39 MovieClip Frame 26
stop();
Symbol 49 MovieClip Frame 1
stop();
stop();
Symbol 49 MovieClip Frame 4
stop();
Symbol 49 MovieClip Frame 8
stop();
Symbol 65 MovieClip Frame 1
if (this._parent._name != "carouselboard_mc") {
gotoAndStop(_global.gBoard);
}
stop();
Symbol 76 MovieClip Frame 1
delete onenterframe;
onenterframe = function () {
if (/:btalk) {
play();
}
};
stop();
Symbol 76 MovieClip Frame 2
delete onenterframe;
d = 0;
onenterframe = function () {
d++;
if (d > 200) {
Set("/:btalk", 0);
}
if (!/:btalk) {
play();
}
};
stop();
Symbol 100 MovieClip Frame 8
stop();
Symbol 109 MovieClip Frame 8
this._parent.gotoAndStop("uprumble");
trace("going to uprumble");
Symbol 116 MovieClip Frame 8
stop();
Symbol 117 MovieClip Frame 8
this._parent.gotoAndStop("downrumble");
Symbol 126 MovieClip [mc.bodbloo] Frame 1
stop();
Symbol 169 MovieClip Frame 8
stop();
Symbol 171 MovieClip Frame 3
stop();
Symbol 173 MovieClip Frame 8
stop();
Symbol 175 MovieClip Frame 3
stop();
Symbol 201 MovieClip [mc.bodcoco] Frame 1
stop();
Symbol 243 MovieClip Frame 1
delete onenterframe;
onenterframe = function () {
if (/:etalk) {
play();
}
};
stop();
Symbol 243 MovieClip Frame 2
delete onenterframe;
d = 0;
onenterframe = function () {
d++;
if (d > 200) {
Set("/:etalk", 0);
}
if (!/:etalk) {
play();
}
};
stop();
Symbol 265 MovieClip Frame 8
stop();
Symbol 266 MovieClip Frame 8
stop();
Symbol 269 MovieClip Frame 8
stop();
Symbol 270 MovieClip Frame 8
stop();
Symbol 272 MovieClip Frame 3
stop();
Symbol 276 MovieClip [mc.bodeduardo] Frame 1
stop();
Symbol 287 MovieClip Frame 1
if (this._parent._name != "carouselboard_mc") {
gotoAndStop(_global.gBoard);
}
stop();
Symbol 317 MovieClip Frame 8
stop();
Symbol 320 MovieClip Frame 8
this._parent.gotoAndStop("uprumble");
trace("going to uprumble");
Symbol 321 MovieClip Frame 8
this._parent.gotoAndStop("uprumble");
trace("going to uprumble");
Symbol 325 MovieClip Frame 8
stop();
Symbol 326 MovieClip Frame 8
this._parent.gotoAndStop("downrumble");
Symbol 327 MovieClip Frame 8
this._parent.gotoAndStop("downrumble");
Symbol 336 MovieClip Frame 14
stop();
Symbol 404 MovieClip [mc.bodmac] Frame 1
stop();
Symbol 437 MovieClip Frame 5
stop();
Symbol 439 MovieClip Frame 8
stop();
Symbol 441 MovieClip Frame 3
stop();
Symbol 443 MovieClip Frame 8
stop();
Symbol 445 MovieClip Frame 3
stop();
Symbol 451 MovieClip [mc.bodwilt] Frame 1
stop();
Symbol 454 MovieClip Frame 19
this.gotoAndPlay(2);
Symbol 455 MovieClip [mc.stargfx] Frame 1
stop();
Symbol 457 MovieClip [mc.signred] Frame 1
stop();
Symbol 457 MovieClip [mc.signred] Frame 20
stop();
Symbol 459 MovieClip [mc.signblue] Frame 1
stop();
Symbol 459 MovieClip [mc.signblue] Frame 20
stop();
Symbol 462 MovieClip [mc.hills] Frame 1
function update() {
_y = (100 + (_global.gX / 300));
}
function clearUp() {
clearInterval(pInterval);
}
function getinterval() {
pInterval = setInterval(this.update, 300);
}
var pInterval = null;
stop();
Symbol 469 MovieClip [mc.fenceimg] Frame 1
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 8
d++;
if (d > 1) {
stop();
}
Symbol 526 MovieClip Frame 1
function onEnterFrame() {
var _local2 = this;
if (pSpdList.length > 0) {
pSpeed = pSpdList.shift();
pAngle = pAngle + (pSpeed * pDir);
var _local1 = 1;
while (_local1 < 5) {
var _local3 = (pAngle + (_local1 * 90)) * pRadsConvert;
_local2[("char" + _local1) + "_mc"]._x = Math.cos(_local3) * 180;
_local2[("char" + _local1) + "_mc"]._y = Math.sin(_local3) * 30;
_local2[("char" + _local1) + "_mc"]._yscale = (_local2[("char" + _local1) + "_mc"]._y * 1.5) + 90;
_local2[("char" + _local1) + "_mc"]._xscale = (_local2[("char" + _local1) + "_mc"]._y * 1.5) + 90;
_local2[("char" + _local1) + "_mc"].swapDepths((_local2[("char" + _local1) + "_mc"]._yscale * 5) + _local1);
_local1++;
}
if (pSpdList.length == 0) {
_local2._parent.left_mc._visible = 1;
_local2._parent.right_mc._visible = 1;
_local2._parent.bselect_mc._visible = 1;
}
}
if (pPanelList.length > 0) {
pPanelLoc = pPanelList.shift();
_local2._parent.charstats_mc._y = pPanelLoc;
}
}
function spinMe(tPlusMinus) {
pDir = tPlusMinus;
pSpdList = new Array(1, 2, 3, 4, 6, 8, 12, 18, 12, 8, 6, 4, 3, 2, 1);
pPanelList.push(340, 410, 600, 480, 380, 330, 305, 316, 312, 308, 305);
trace("");
trace("");
}
function spinOff() {
pSpdList.push(1, 2, 3, 4, 6, 8, 10, 12, 15, 18, 24, 28, 33, 38, 44, 50, 57, 60);
}
var pAngle = 0;
var pSpeed = 0;
var pDir = 1;
var pSpdList = new Array(1, 2, 3, 4, 6, 8, 12, 18, 12, 8, 6, 4, 3, 2, 1);
var pPanelList = new Array();
var pPanelLoc = 0;
var pRadsConvert = (Math.PI/180);
Symbol 529 MovieClip Frame 22
stop();
Symbol 536 MovieClip Frame 3
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 1
function onEnterFrame() {
var _local2 = this;
if (pSpdList.length > 0) {
pSpeed = pSpdList.shift();
pAngle = pAngle + (pSpeed * pDir);
var _local1 = 1;
while (_local1 < 10) {
var _local3 = ((90 + pAngle) + (_local1 * 40)) * pRadsConvert;
_local2[("board" + _local1) + "_mc"]._x = Math.cos(_local3) * 200;
_local2[("board" + _local1) + "_mc"]._y = Math.sin(_local3) * 30;
_local2[("board" + _local1) + "_mc"]._yscale = _local2[("board" + _local1) + "_mc"]._y + 50;
_local2[("board" + _local1) + "_mc"]._xscale = _local2[("board" + _local1) + "_mc"]._y + 50;
_local2[("board" + _local1) + "_mc"].swapDepths((_local2[("board" + _local1) + "_mc"]._yscale * 9) + _local1);
_local1++;
}
if (pSpdList.length == 0) {
_local2._parent.left_mc._visible = 1;
_local2._parent.right_mc._visible = 1;
_local2._parent.bselect_mc._visible = 1;
}
}
}
function spinMe(tPlusMinus) {
pDir = tPlusMinus;
pSpdList.push(1, 2, 3, 4, 6, 8, 6, 4, 3, 2, 1);
}
function spinOff() {
pSpdList.push(1, 2, 3, 4, 6, 8, 10, 12, 15, 18, 24, 28, 33, 38, 44, 50, 57, 60);
}
var pAngle = 0;
var pSpeed = 0;
var pDir = 1;
var pSpdList = new Array(1, 2, 3, 4, 6, 8, 6, 4, 3, 2, 1);
var pPanelLoc = 0;
var pRadsConvert = (Math.PI/180);
var i = 1;
while (i < 10) {
this[("board" + i) + "_mc"].gotoAndStop(i);
i++;
}
Symbol 557 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
this.gotoAndStop(gCourse + 5);
stop();
Symbol 571 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function nudge() {
var _local1 = this;
var _local2 = _global.gX - pLocX;
_local1._x = getX(_local1) + _local2;
_local1._y = getY(_local1) + ((_local2 / 15) * 4);
if (_local1._x < -100) {
pLocX = pLocX - 735;
}
}
function setPos(x, y) {
pLocX = x;
pLocY = y;
pState = "active";
}
function blur(boo) {
if (boo == 1) {
eval ("fence" + pNum).gotoAndStop(2);
} else {
eval ("fence" + pNum).gotoAndStop(2);
}
}
var pNum = Number(this._name.slice(5, -3));
var pState = "active";
var pLocX = 0;
var pLocY = 0;
this.attachMovie("mc.fenceimg", "fence" + pNum, 200 + pNum);
this.blur(1);
this.setPos(22000 - (pNum * 105), 145);
stop();
Symbol 573 MovieClip Frame 1
function onEnterFrame() {
var _local2 = this;
var _local1 = _global.gX - pLocX;
_local2._x = getX(_local2) + _local1;
_local2._y = getY(_local2) + ((_local1 / 15) * 4);
}
var pLocX = -100;
var pLocY = 140;
var pLocZ = 0;
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
stop();
Symbol 575 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function nudge() {
var _local1 = this;
var _local2 = _global.gX - pLocX;
_local1._x = getX(_local1) + _local2;
_local1._y = getY(_local1) + ((_local2 / 15) * 4);
if (_local1._x < -20) {
_local1.setAside();
}
}
function reset(x, y) {
pLocX = x;
pLocY = y;
pLocZ = 0;
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
pState = "active";
}
function setAside() {
this._x = pNum * 100;
this._y = 5000;
pState = "inactive";
}
var pNum = Number(this._name.slice(4, -3));
var pLocX = 50000;
var pLocY = 0;
var pLocZ = 0;
var pState = "inactive";
this._y = -1000;
stop();
Symbol 576 MovieClip Frame 23
this._parent.gotoAndStop("idle");
stop();
Symbol 577 MovieClip Frame 35
this._parent.gotoAndStop("idle");
stop();
Symbol 578 MovieClip Frame 35
this._parent.gotoAndStop("idle");
stop();
Symbol 579 MovieClip Frame 35
this._parent.gotoAndStop("idle");
stop();
Symbol 580 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function nudge() {
var _local1 = this;
pLocX = _global.gX;
pLocY = _global.gY;
pLocZ = 0;
_local1._xscale = 40 - (pLocY / 10);
_local1._yscale = 40 - (pLocY / 10);
_local1._x = getX(_local1);
_local1._y = getY(_local1) - pLocZ;
}
function jump(tj) {
var _local1 = this;
pLocX = _global.gX;
pLocY = _global.gY;
pState = "active";
switch (tj) {
case 2 :
_local1.gotoAndStop("jump2");
_local1.sjump2_mc.play();
return;
case 3 :
_local1.gotoAndStop("jump3");
_local1.sjump3_mc.play();
return;
case 4 :
_local1.gotoAndStop("jump4");
_local1.sjump4_mc.play();
return;
case 5 :
_local1.gotoAndStop("jump5");
_local1.sjump4_mc.play();
}
}
function resetMe() {
this._x = 2000;
pState = "inactive";
}
var pLocX = 0;
var pLocY = 0;
var pLocZ = 0;
var pState = "inactive";
this._x = -1000;
this._y = -1000;
stop();
Symbol 582 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function nudge() {
var _local1 = this;
var _local2 = _global.gX - pLocX;
_local1._x = getX(_local1) + _local2;
_local1._y = getY(_local1) + ((_local2 / 15) * 4);
if (_local1._x < -200) {
pLocX = 0;
}
}
function reset(x, y) {
pLocX = x;
pLocY = y;
}
function setAside() {
this._x = pNum * 100;
this._y = 1000;
pState = "inactive";
}
var pNum = Number(this._name.slice(4, -3));
var pLocX = 22000;
var pLocY = 70;
var pLocZ = 0;
var pState = "active";
this._y = -1000;
stop();
Symbol 595 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function reset(x, y) {
pLocX = x;
pLocY = y;
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
pState = "active";
}
function setAside() {
_x = -1000;
pState = "inactive";
}
function nudge() {
var _local1 = this;
var _local2 = _global;
var _local3 = _local2.gX - pLocX;
ttt = getX(_local1) + _local3;
_local1._x = getX(_local1) + _local3;
_local1._y = getY(_local1) + ((_local3 / 15) * 4);
if (_local1._x < -100) {
_local1._parent.control_mc.launchRamp(pNum);
}
pOnRamp = 0;
if (_local1.hitTest(_local1._parent.bod_mc) == 1) {
tpp = _local2.gX - pLocX;
hisdepth = _local1._parent.bod_mc.getDepth();
mydepth = _local1.getDepth();
if (_local2.gY < (pLocY + 10)) {
if (hisdepth < mydepth) {
_local1.swapDepths(_local1._parent.bod_mc);
}
} else if (hisdepth > mydepth) {
_local1.swapDepths(_local1._parent.bod_mc);
}
if ((_local2.gY < (pLocY + 10)) && (_local2.gY > (pLocY - 10))) {
if ((_local2.gX < pLocX) && (_local2.gX > (pLocX - 130))) {
var tDX = (pLocX - _local2.gX);
pOnRamp = _local1._parent.bod_mc.ramp(tDX, pLocY);
}
}
}
}
var pNum = Number(this._name.slice(4, -3));
var pMyRamp = ("ramp" + pNum);
var pLocX = 50000;
var pLocY = 0;
var pLocZ = 0;
var pState = "inactive";
var pOnRamp = 0;
this.attachMovie("gfx.ramp", "ramp" + pNum, 1000);
this._y = -1000;
stop();
Symbol 601 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function reset() {
pLocX = 200;
pLocY = 70;
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
pState = "active";
}
function setAside() {
_x = -1000;
pState = "inactive";
}
function nudge() {
var _local1 = this;
var _local2 = _global;
var _local3 = _local2.gX - pLocX;
ttt = getX(_local1) + _local3;
_local1._x = getX(_local1) + _local3;
_local1._y = getY(_local1) + ((_local3 / 15) * 4);
if (_local1._x < -300) {
_local1.setAside();
}
pOnRamp = 0;
if (_local1.hitTest(_local1._parent.bod_mc) == 1) {
tpp = _local2.gX - pLocX;
hisdepth = _local1._parent.bod_mc.getDepth();
mydepth = _local1.getDepth();
if (_local2.gY < (pLocY + 10)) {
if (hisdepth < mydepth) {
_local1.swapDepths(_local1._parent.bod_mc);
}
} else if (hisdepth > mydepth) {
_local1.swapDepths(_local1._parent.bod_mc);
}
if ((_local2.gY < (pLocY + 10)) && (_local2.gY > (pLocY - 10))) {
if ((_local2.gX < pLocX) && (_local2.gX > (pLocX - 260))) {
var tDX = (pLocX - _local2.gX);
pOnRamp = _local1._parent.bod_mc.ramp(tDX, pLocY);
}
}
}
}
var pLocX = 50000;
var pLocY = 0;
var pLocZ = 0;
var pState = "inactive";
var pOnRamp = 0;
this._y = -1000;
stop();
Symbol 602 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function nudge() {
var _local1 = this;
var _local2 = _global;
var _local3 = _local2.gX - pLocX;
_local1._x = getX(_local1) + _local3;
_local1._y = getY(_local1) + ((_local3 / 15) * 4);
if (_local1._x < -20) {
_local1._parent.control_mc.launchStar(pNum);
}
if (_local1._parent.bod_mc.pState == "active") {
if (distance(_local1, _local1._parent.bod_mc) < 15) {
if (((_local2.gZ == 0) && (pLocZ == 10)) || ((_local2.gZ != 0) && (pLocZ > 10))) {
_local1._parent.control_mc.score(100);
_local1._parent.control_mc.launchStar(pNum);
if (_local2.gGame == 3) {
_local1._parent.bod_mc.speedStar();
}
_local1._y = 3000;
_root.snd_mc.playsound("pStar");
}
}
hisdepth = _local1._parent.bod_mc.getDepth();
mydepth = _local1.getDepth();
if (pLocY > _local2.gY) {
if (hisdepth < mydepth) {
_local1.swapDepths(_local1._parent.bod_mc);
}
} else if (pLocY < _local2.gY) {
if (hisdepth > mydepth) {
_local1.swapDepths(_local1._parent.bod_mc);
}
}
}
}
function reset(x, y, z) {
pLocX = x;
pLocY = y;
pLocZ = z * 10;
eval ("this.star" + pNum).gotoAndStop(z);
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
}
function setAside() {
this._x = pNum * 100;
this._y = 5000;
pState = "inactive";
}
var pNum = Number(this._name.slice(4, -3));
var pLocX = 0;
var pLocY = 0;
var pLocZ = 0;
var pState = "active";
this.attachMovie("mc.stargfx", "star" + pNum, 2000);
this._y = -1000;
stop();
Symbol 603 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function reset(x, y) {
pLocX = x;
pLocY = y;
pPassed = 0;
pUpright = 1;
eval ("gatepost" + pNum).gotoAndStop(1);
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
pState = "active";
}
function setAside() {
pState = "inactive";
this._y = 3000;
}
function nudge() {
var tX = (_global.gX - pLocX);
this._x = getX(this) + tX;
this._y = getY(this) + ((tX / 15) * 4);
if (this._x < -100) {
this._parent.control_mc.launchGate(pNum);
}
if (this.hitTest(this._parent.bod_mc) == 1) {
hisdepth = this._parent.bod_mc.getDepth();
mydepth = this.getDepth();
if (pUpright == 0) {
if (hisdepth < mydepth) {
this.swapDepths(this._parent.bod_mc);
}
} else if (pLocY > _global.gY) {
if (hisdepth < mydepth) {
this.swapDepths(this._parent.bod_mc);
}
} else if (pLocY < _global.gY) {
if (hisdepth > mydepth) {
this.swapDepths(this._parent.bod_mc);
}
}
if (pUpright == 1) {
if (distance(this, this._parent.bod_mc) < 20) {
if (Math.abs(pLocY - _global.gY) < 5) {
eval ("gatepost" + pNum).gotoAndPlay(2);
this._parent.bod_mc.slowDown();
pUpright = 0;
_root.snd_mc.playsound("pBoing");
_global.gINC = 0;
}
}
}
}
if (pPassed == 0) {
if (pLocX > _global.gX) {
pPassed = 1;
if (pUpright == 1) {
if (((_global.gY > pLocY) && ((pNum == 1) || (pNum == 3))) || ((_global.gY < pLocY) && ((pNum == 0) || (pNum == 2)))) {
_global.gINC = _global.gINC + 100;
_root.snd_mc.playsound("pBonus");
this._parent.control_mc.score(_global.gINC);
this._parent.control_mc.launchBonus(this._parent.bod_mc._x, this._parent.bod_mc._y, _global.gINC);
} else {
_global.gINC = 0;
}
} else {
_global.gINC = 0;
}
}
}
}
var pNum = Number(this._name.slice(4, -3));
var pMyPost = ("gatepost" + pNum);
var pLocX = 0;
var pLocY = 0;
var pLocZ = 0;
var pState = "inactive";
var pPassed = 0;
var pUpright = 1;
if ((pNum == 1) || (pNum == 3)) {
this.attachMovie("mc.signred", "gatepost" + pNum, 1000);
} else {
this.attachMovie("mc.signblue", "gatepost" + pNum, 1000);
}
this._y = -1000;
stop();
Symbol 605 MovieClip Frame 1
function onEnterFrame() {
var _local2 = this;
var _local1 = _global.gX - pLocX;
_local2._x = getX(_local2) + _local1;
_local2._y = getY(_local2) + ((_local1 / 15) * 4);
}
var pLocX = 100;
var pLocY = 0;
var pLocZ = 0;
this._xscale = 100 - (pLocY / 5);
this._yscale = 100 - (pLocY / 5);
stop();
Symbol 606 MovieClip Frame 1
function launchGate(pNum) {
if (pGateLocs.length == 0) {
eval (("this._parent.gate" + pNum) + "_mc").setAside(tx, ty);
} else {
var tx = pGateLocs.shift();
var ty = pGateLocs.shift();
eval (("this._parent.gate" + pNum) + "_mc").reset(tx, ty);
}
if (pGate == 0) {
pGate = 1;
} else {
pGate = 0;
}
}
function launchStar(pNum) {
if (pStarLocs.length == 0) {
eval (("this._parent.star" + pNum) + "_mc").setAside(tx, ty);
} else {
var tx = pStarLocs.shift();
var ty = pStarLocs.shift();
var tz = pStarLocs.shift();
eval (("this._parent.star" + pNum) + "_mc").reset(tx, ty, tz);
}
}
function launchRamp() {
if (pRampLocs.length == 0) {
eval (("this._parent.ramp" + pRamp) + "_mc").setAside(tx, ty);
} else {
var tx = pRampLocs.shift();
var ty = pRampLocs.shift();
eval (("this._parent.ramp" + pRamp) + "_mc").reset(tx, ty);
}
if (pRamp == 0) {
pRamp = 1;
} else {
pRamp = 0;
}
}
function launchBonus(tx, ty, sc) {
eval (("this._parent.bonus" + pBonus) + "_mc").reset(tx, ty, sc);
if (pBonus == 0) {
pBonus = 1;
} else {
pBonus = 0;
}
}
function setStartTime() {
_global.gTime = 90;
pFrames = 23;
this._parent.time_mc.setNum("90000");
this._parent.blurrednums_mc.turnon();
}
function setStartLength() {
this._parent.time_mc.setNum("00000");
this._parent.blurrednums_mc.turnon();
}
function onEnterFrame() {
var _local2 = _global;
if (pFrames < 24) {
pFrames--;
if (pFrames == 0) {
_local2.gTime--;
if (_local2.gTime < 0) {
_local2.gTime = 0;
this.stopTimer();
}
var _local3 = "00" + String(_local2.gTime);
var _local1 = _local3.substr(-2);
_local1 = _local1 + "000";
this._parent.time_mc.setNum(_local1);
pFrames = 23;
}
}
}
function stopTimer() {
var _local2 = String(Math.floor((pFrames * 41.6666666666667) * 1000));
if (pFrames == 0) {
_local2 = "0";
}
var _local1 = _local2.substr(0, 3);
_local2 = Number(_local1) + Math.round(Math.random() * 23);
_local1 = String(_global.gTime) + _local2;
this._parent.time_mc.setNum(_local1);
_global.gTime = Number(_local1);
this._parent.blurrednums_mc.turnoff();
pFrames = 99;
}
function setStopLength(tlandingpoint) {
var _local1 = _global;
if (tlandingpoint == 0) {
_local1.gDistance = "00000";
} else {
var _local3 = Math.floor(_local1.gX);
_local1.gDist = Math.abs(_local3) * 10;
_local1.gDist = _local1.gDist + Math.floor(tlandingpoint * 100);
var tstr = ("00000" + String(_local1.gDist));
var _local2 = tstr.substr(-5);
trace("distance: " + _local2);
_local1.gDistance = _local2;
}
}
function score(num) {
_global.gSC = _global.gSC + num;
this._parent.score_mc.setNum(_global.gSC);
}
function ping() {
trace("ping");
}
_global.gSC = 0;
var pGate = 1;
var pRamp = 0;
var pBonus = 0;
_global.gInc = 0;
switch (_global.gGame) {
case 1 :
switch (_global.gCourse) {
case 1 :
var pStarLocs = new Array(21125, 77, 1, 20425, 89, 1, 19850, 65, 1, 19275, 73, 1, 18675, 61, 1, 18100, 65, 1, 17500, 57, 1, 17400, 77, 1, 16850, 65, 1, 16300, 77, 1, 15800, 49, 1, 15325, 77, 1, 14800, 65, 1, 14325, 69, 1, 13900, 69, 1, 13375, 65, 1, 12850, 65, 1, 12375, 61, 1, 11850, 77, 1, 11300, 65, 1, 11225, 81, 1, 10700, 73, 1, 10175, 61, 1, 10100, 73, 1, 9625, 73, 1, 9525, 61, 1, 9125, 65, 1, 8525, 61, 1, 8025, 77, 1, 7550, 81, 1, 7450, 73, 1, 6950, 57, 1, 6475, 73, 1, 5975, 61, 1, 5500, 69, 1, 4975, 69, 1, 4500, 61, 1, 3975, 65, 1, 3875, 81, 1, 3350, 77, 1, 3200, 61, 1, 2700, 73, 1, 2200, 73, 1, 1725, 69, 1, 1200, 73, 1, 725, 73, 1);
var pGateLocs = new Array(21400, 73, 20825, 93, 20150, 73, 19550, 73, 18950, 57, 18375, 77, 17800, 53, 17150, 89, 16575, 61, 16075, 65, 15600, 61, 15050, 81, 14575, 57, 14125, 89, 13650, 53, 13150, 81, 12600, 57, 12125, 77, 11600, 69, 11000, 89, 10425, 65, 9875, 81, 9300, 53, 8825, 81, 8275, 65, 7775, 85, 7200, 57, 6700, 73, 6200, 61, 5750, 69, 5250, 69, 4750, 69, 4225, 57, 3650, 85, 2975, 69, 2450, 85, 2000, 69, 1475, 81, 1000, 73, 525, 81);
break;
case 2 :
var pStarLocs = new Array(21075, 81, 1, 20675, 77, 1, 20250, 77, 1, 19775, 73, 1, 19350, 77, 1, 18900, 77, 1, 18450, 65, 1, 18300, 81, 1, 17825, 85, 1, 17725, 69, 1, 17325, 77, 1, 16900, 85, 1, 16425, 85, 1, 16000, 77, 1, 15600, 49, 1, 15475, 77, 1, 15050, 61, 1, 14600, 77, 1, 14500, 85, 1, 14075, 81, 1, 13625, 65, 1, 13075, 69, 1, 12700, 65, 1, 12600, 77, 1, 12175, 77, 1, 12050, 57, 1, 11625, 77, 1, 11100, 69, 1, 10675, 77, 1, 10200, 77, 1, 9775, 69, 1, 9300, 81, 1, 8850, 65, 1, 8400, 77, 1, 8250, 61, 1, 7775, 57, 1, 7675, 73, 1, 7275, 65, 1, 6850, 57, 1, 6400, 61, 1, 5900, 81, 1, 5525, 85, 1, 5425, 73, 1, 5000, 73, 1, 4925, 85, 1, 4450, 73, 1, 3950, 77, 1, 3500, 77, 1, 3025, 81, 1, 2600, 77, 1, 2150, 77, 1, 1700, 89, 1, 1550, 73, 1, 1025, 73, 1, 575, 81, 1, 425, 81, 1, 250, 81, 1);
var pGateLocs = new Array(21350, 69, 20875, 85, 20450, 77, 20025, 85, 19550, 73, 19150, 89, 18675, 73, 18050, 89, 17525, 61, 17125, 85, 16675, 85, 16225, 85, 15750, 65, 15300, 77, 14850, 61, 14325, 89, 13875, 69, 13375, 85, 12925, 57, 12400, 85, 11900, 69, 11375, 93, 10900, 77, 10450, 77, 10000, 77, 9500, 77, 9100, 53, 8625, 69, 8000, 53, 7475, 81, 7075, 57, 6625, 57, 6200, 65, 5750, 93, 5225, 65, 4725, 81, 4200, 57, 3700, 77, 3275, 69, 2800, 81, 2400, 65, 1925, 81, 1300, 65, 825, 85);
break;
case 3 :
var pStarLocs = new Array(21275, 73, 1, 21175, 81, 1, 20750, 77, 1, 20350, 61, 1, 19850, 65, 1, 19525, 61, 1, 19425, 73, 1, 19050, 73, 1, 18925, 53, 1, 18500, 73, 1, 18025, 65, 1, 17675, 77, 1, 17300, 85, 1, 16875, 85, 1, 16500, 77, 1, 16100, 61, 1, 15975, 77, 1, 15550, 61, 1, 15075, 77, 1, 14675, 73, 1, 14300, 73, 1, 13825, 69, 1, 13475, 81, 1, 13100, 85, 1, 12700, 61, 1, 12575, 77, 1, 12125, 73, 1, 11725, 77, 1, 11375, 69, 1, 11025, 77, 1, 10675, 77, 1, 10200, 77, 1, 9775, 69, 1, 9300, 81, 1, 8850, 81, 1, 8450, 69, 1, 8300, 85, 1, 7875, 89, 1, 7775, 73, 1, 7350, 65, 1, 6925, 69, 1, 6500, 69, 1, 6050, 73, 1, 5625, 61, 1, 5550, 73, 1, 5175, 73, 1, 5075, 61, 1, 4750, 65, 1, 4300, 85, 1, 3900, 89, 1, 3525, 81, 1, 3100, 77, 1, 2700, 73, 1, 2325, 73, 1, 1850, 69, 1, 1750, 57, 1, 1475, 73, 1, 1075, 73, 1, 725, 61, 1, 575, 69, 1, 425, 77, 1, 250, 77, 1);
var pGateLocs = new Array(21475, 57, 21000, 85, 20600, 65, 20100, 89, 19700, 49, 19225, 81, 18775, 65, 18300, 101, 17875, 73, 17475, 85, 17075, 85, 16675, 85, 16250, 53, 15800, 93, 15350, 65, 14825, 81, 14500, 73, 14075, 81, 13650, 53, 13300, 101, 12875, 73, 12325, 85, 11900, 53, 11550, 73, 11150, 73, 10850, 73, 10525, 77, 10050, 77, 9500, 77, 9100, 93, 8675, 77, 8100, 101, 7575, 49, 7150, 77, 6750, 69, 6300, 101, 5825, 65, 5375, 81, 4900, 53, 4500, 81, 4125, 89, 3725, 89, 3325, 49, 2900, 93, 2525, 73, 2125, 93, 1675, 69, 1325, 85, 900, 69);
}
break;
case 2 :
switch (_global.gCourse) {
case 1 :
var pStarLocs = new Array(21550, 73, 1, 21300, 61, 1, 20975, 57, 1, 20700, 53, 1, 20100, 53, 7, 20000, 53, 9, 19900, 53, 7, 19225, 53, 1, 18900, 57, 1, 18600, 61, 1, 18325, 69, 1, 18025, 81, 1, 17750, 89, 1, 17250, 89, 7, 17150, 89, 9, 17050, 89, 7, 16275, 85, 1, 16025, 77, 1, 15750, 65, 1, 15525, 53, 1, 14925, 45, 7, 14875, 45, 8, 14825, 45, 9, 14775, 45, 8, 14725, 45, 7, 13950, 49, 1, 13650, 57, 1, 13375, 65, 1, 13050, 73, 1, 12750, 77, 1, 12475, 77, 1, 11975, 77, 7, 11925, 77, 8, 11875, 77, 9, 11825, 77, 8, 11775, 77, 7, 11200, 61, 1, 10975, 53, 1, 10750, 49, 1, 10200, 49, 7, 10100, 49, 9, 10000, 49, 7, 9350, 73, 1, 9125, 89, 1, 8700, 97, 5, 8600, 97, 7, 8500, 97, 9, 8400, 97, 7, 8300, 97, 6, 8200, 97, 4, 7725, 81, 1, 7450, 69, 1, 7200, 61, 1, 6975, 53, 1, 6600, 49, 5, 6500, 49, 7, 6400, 49, 9, 6300, 49, 7, 6200, 49, 6, 6100, 49, 4, 5425, 57, 1, 5175, 73, 1, 4925, 89, 1, 4675, 101, 1, 4100, 105, 7, 4000, 105, 9, 3900, 105, 7, 3175, 101, 1, 2875, 93, 1, 2650, 81, 1, 2375, 65, 1, 2175, 53, 1, 1950, 45, 1, 1675, 49, 1, 1425, 57, 1, 1075, 61, 4, 1025, 61, 5, 975, 61, 6, 925, 61, 7, 875, 61, 8, 825, 61, 9, 775, 61, 8, 725, 61, 7, 675, 61, 7, 625, 61, 6, 575, 61, 5, 525, 61, 4);
var pRampLocs = new Array(20375, 53, 17525, 89, 15200, 45, 12250, 77, 10475, 49, 8875, 97, 6775, 49, 4375, 105, 1200, 61);
break;
case 2 :
var pStarLocs = new Array(20100, 53, 7, 20000, 53, 9, 19900, 53, 7, 19500, 57, 1, 19350, 65, 1, 19175, 77, 1, 18975, 85, 1, 18775, 85, 1, 18225, 85, 7, 18125, 85, 9, 18025, 85, 7, 17500, 81, 1, 17325, 73, 1, 17150, 69, 1, 16975, 69, 1, 16525, 69, 7, 16475, 69, 8, 16425, 69, 9, 16375, 69, 8, 16325, 69, 7, 15775, 61, 1, 15650, 53, 1, 15475, 49, 1, 15275, 49, 1, 14725, 49, 7, 14625, 49, 9, 14525, 49, 7, 13950, 73, 1, 13800, 81, 1, 13625, 89, 1, 13475, 89, 1, 13000, 89, 7, 12950, 89, 8, 12900, 89, 9, 12850, 89, 8, 12800, 89, 7, 12325, 69, 1, 12175, 61, 1, 12000, 53, 1, 11875, 49, 1, 11550, 49, 5, 11450, 49, 7, 11350, 49, 9, 11250, 49, 7, 11150, 49, 6, 11050, 49, 4, 10625, 53, 1, 10475, 61, 1, 10325, 69, 1, 9925, 69, 5, 9825, 69, 7, 9725, 69, 9, 9625, 69, 7, 9525, 69, 6, 9425, 69, 4, 8925, 73, 1, 8925, 61, 1, 8775, 81, 1, 8775, 57, 1, 8600, 85, 1, 8600, 53, 1, 8400, 89, 1, 8400, 49, 1, 7950, 93, 7, 7950, 49, 7, 7900, 93, 8, 7850, 93, 9, 7850, 49, 9, 7800, 93, 8, 7750, 93, 7, 7750, 49, 7, 7400, 45, 1, 7375, 93, 1, 7225, 49, 1, 7200, 89, 1, 7075, 89, 1, 7050, 57, 1, 6925, 89, 1, 6900, 57, 1, 6500, 89, 7, 6500, 57, 7, 6450, 89, 8, 6400, 89, 9, 6400, 57, 9, 6350, 89, 8, 6300, 89, 7, 6300, 57, 7, 5850, 61, 1, 5825, 81, 1, 5700, 73, 1, 5700, 65, 1, 5550, 69, 1, 5375, 69, 1, 5250, 73, 1, 4925, 73, 5, 4825, 73, 7, 4725, 73, 9, 4625, 73, 7, 4525, 73, 6, 4425, 73, 4, 4075, 69, 1, 3925, 65, 1, 3775, 57, 1, 3625, 53, 1, 3175, 53, 7, 3125, 53, 8, 3075, 53, 9, 3025, 53, 8, 2975, 53, 7, 2550, 65, 1, 2400, 77, 1, 2250, 85, 1, 1850, 69, 1, 1775, 93, 7, 1725, 93, 8, 1700, 65, 1, 1675, 93, 9, 1625, 93, 8, 1575, 93, 7, 1550, 65, 1, 1250, 65, 4, 1200, 65, 5, 1150, 65, 6, 1125, 93, 1, 1100, 65, 7, 1050, 65, 8, 1000, 65, 9, 950, 65, 8, 925, 89, 1, 900, 65, 7, 850, 65, 7, 800, 65, 6, 750, 65, 5, 700, 89, 1, 700, 65, 4);
var pRampLocs = new Array(20375, 53, 18500, 85, 16800, 69, 15000, 49, 13275, 89, 11725, 49, 10100, 69, 8225, 93, 8225, 49, 6775, 89, 6775, 57, 5100, 73, 3450, 53, 2050, 93, 1375, 65);
break;
case 3 :
var pStarLocs = new Array(20625, 73, 5, 20525, 73, 7, 20425, 73, 9, 20325, 73, 7, 20225, 73, 6, 20125, 73, 4, 19700, 73, 1, 19500, 77, 1, 19325, 81, 1, 19150, 89, 1, 18750, 89, 7, 18700, 89, 8, 18650, 89, 9, 18600, 89, 8, 18550, 89, 7, 18200, 61, 1, 18125, 97, 1, 18050, 53, 1, 17950, 105, 1, 17900, 49, 1, 17750, 105, 1, 17700, 57, 1, 17625, 93, 1, 17550, 65, 1, 17525, 81, 1, 17425, 73, 1, 17325, 61, 1, 17275, 81, 1, 17125, 89, 1, 16950, 93, 1, 16925, 57, 7, 16825, 57, 9, 16725, 57, 7, 16500, 93, 7, 16450, 93, 8, 16400, 93, 9, 16400, 49, 1, 16350, 93, 8, 16300, 93, 7, 16225, 45, 1, 16025, 53, 1, 15975, 93, 1, 15875, 61, 1, 15850, 85, 1, 15725, 73, 1, 15600, 81, 1, 15550, 61, 1, 15475, 85, 1, 15400, 53, 1, 15250, 49, 1, 15050, 89, 7, 14950, 89, 9, 14850, 89, 7, 14725, 49, 7, 14625, 49, 9, 14525, 49, 7, 14425, 85, 1, 14250, 85, 1, 14125, 49, 1, 14100, 81, 1, 13975, 53, 1, 13950, 73, 1, 13825, 65, 1, 13650, 73, 1, 13475, 81, 1, 13000, 89, 7, 12950, 89, 8, 12900, 89, 9, 12850, 89, 8, 12800, 89, 7, 12475, 85, 1, 12325, 77, 1, 12225, 65, 1, 12050, 49, 1, 11675, 49, 5, 11575, 49, 7, 11475, 49, 9, 11375, 49, 7, 11275, 49, 6, 11175, 49, 4, 10850, 49, 1, 10725, 61, 1, 10625, 81, 1, 10500, 97, 1, 10450, 97, 1, 10375, 81, 1, 10300, 61, 1, 10225, 41, 1, 10175, 41, 1, 10100, 57, 1, 10000, 69, 1, 9675, 69, 5, 9575, 69, 7, 9475, 69, 9, 9375, 69, 7, 9275, 69, 6, 9175, 69, 4, 8900, 57, 1, 8875, 97, 1, 8850, 45, 1, 8800, 105, 1, 8775, 37, 1, 8700, 105, 1, 8675, 41, 1, 8625, 93, 1, 8600, 53, 1, 8550, 77, 1, 8525, 69, 1, 8475, 57, 1, 8450, 81, 1, 8450, 49, 1, 8375, 93, 1, 8075, 49, 7, 7975, 49, 9, 7950, 93, 7, 7900, 93, 8, 7875, 49, 7, 7850, 93, 9, 7800, 93, 8, 7750, 93, 7, 7625, 53, 1, 7500, 89, 1, 7500, 57, 1, 7400, 81, 1, 7400, 65, 1, 7325, 73, 1, 7250, 73, 1, 7225, 65, 1, 7150, 61, 1, 7125, 81, 1, 7025, 89, 1, 6900, 89, 1, 6875, 61, 5, 6775, 61, 7, 6675, 61, 9, 6575, 61, 7, 6500, 89, 7, 6475, 61, 6, 6450, 89, 8, 6400, 89, 9, 6375, 61, 4, 6350, 89, 8, 6300, 89, 7, 6125, 61, 1, 6025, 89, 1, 6025, 57, 1, 5925, 49, 1, 5900, 77, 1, 5825, 61, 1, 5825, 37, 1, 5750, 45, 1, 5750, 37, 1, 5675, 37, 1, 5600, 37, 1, 5550, 41, 1, 5475, 53, 1, 5425, 65, 1, 5350, 81, 1, 5325, 53, 1, 5275, 93, 1, 5250, 53, 1, 5175, 101, 1, 5175, 57, 1, 5100, 97, 1, 5100, 57, 1, 5050, 81, 1, 5025, 57, 1, 5000, 65, 1, 4625, 57, 7, 4525, 57, 9, 4425, 57, 7, 4175, 61, 1, 4100, 69, 1, 4050, 53, 1, 4025, 77, 1, 3975, 85, 1, 3925, 53, 1, 3825, 49, 1, 3700, 49, 1, 3575, 89, 7, 3575, 49, 1, 3475, 89, 9, 3375, 89, 7, 3175, 53, 7, 3125, 53, 8, 3075, 53, 9, 3025, 53, 8, 2975, 53, 7, 2650, 53, 1, 2600, 89, 7, 2575, 49, 1, 2550, 89, 8, 2500, 89, 9, 2450, 89, 8, 2425, 41, 1, 2400, 89, 7, 2300, 37, 1, 2175, 37, 1, 2150, 89, 1, 2075, 41, 1, 2050, 93, 1, 1950, 49, 1, 1925, 93, 1, 1825, 85, 1, 1800, 57, 1, 1750, 77, 1, 1650, 69, 1, 1650, 61, 1, 1525, 65, 1, 1250, 65, 4, 1200, 65, 5, 1150, 65, 6, 1100, 65, 7, 1050, 65, 8, 1000, 65, 9, 950, 65, 8, 900, 65, 7, 850, 65, 7, 800, 65, 6, 750, 65, 5, 700, 65, 4);
var pRampLocs = new Array(20800, 73, 19025, 89, 17200, 57, 16775, 93, 15325, 89, 15000, 49, 13275, 89, 11850, 49, 9850, 69, 8350, 49, 8225, 93, 7050, 61, 6775, 89, 4900, 57, 3850, 89, 3450, 53, 2875, 89, 1375, 65);
}
break;
case 3 :
var pStarLocs = new Array(21725, 65, 1, 21300, 77, 1, 20925, 77, 1, 20825, 69, 1, 20400, 73, 1, 20075, 93, 1, 19600, 85, 7, 19550, 85, 8, 19500, 85, 9, 19450, 85, 8, 19400, 85, 7, 18475, 77, 1, 18350, 97, 1, 17925, 77, 1, 17450, 85, 1, 17100, 73, 1, 16725, 65, 1, 16300, 65, 1, 15925, 73, 1, 15425, 73, 7, 15375, 73, 8, 15325, 73, 9, 15275, 73, 8, 15225, 73, 7, 14325, 77, 1, 13850, 81, 1, 13500, 69, 1, 13125, 65, 1, 12725, 89, 1, 12600, 73, 1, 12150, 77, 1, 11725, 73, 7, 11675, 73, 8, 11625, 73, 9, 11575, 73, 8, 11525, 73, 7, 10725, 73, 1, 10375, 81, 1, 10025, 73, 1, 9675, 73, 1, 8900, 85, 7, 8850, 85, 8, 8800, 85, 9, 8750, 85, 8, 8700, 85, 7, 7675, 69, 1, 7275, 81, 1, 7125, 65, 1, 6700, 61, 1, 6600, 77, 1, 6175, 85, 1, 5750, 81, 1, 5125, 57, 7, 5075, 57, 8, 5025, 57, 9, 4975, 57, 8, 4925, 57, 7, 4100, 81, 1, 3675, 65, 1, 3250, 69, 1, 2850, 73, 1, 2300, 73, 7, 2250, 73, 8, 2200, 73, 9, 2150, 73, 8, 2100, 73, 7);
var pGateLocs = new Array(21525, 61, 21125, 93, 20650, 65, 20250, 85, 18650, 69, 18200, 85, 17725, 49, 17300, 77, 16900, 65, 16500, 65, 16100, 65, 14525, 77, 14100, 69, 13675, 97, 13325, 49, 12900, 77, 12350, 65, 10900, 97, 10550, 77, 10150, 77, 9850, 77, 9525, 73, 7925, 57, 7500, 73, 6925, 49, 6400, 101, 5975, 73, 4250, 93, 3850, 65, 3475, 97, 3050, 53);
var pRampLocs = new Array(19875, 85, 15700, 73, 12000, 73, 9175, 85, 5400, 57, 2575, 73);
}
var pFrames = 99;
stop();
Symbol 619 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 1
function setNum(num) {
var tstr = ("000000" + String(num));
var _local3 = tstr.substr(-6);
var _local1 = 0;
while (_local1 < 6) {
var _local2 = Number(_local3.charAt(_local1)) + 1;
this[("num" + _local1) + "_mc"].gotoAndStop(_local2);
_local1++;
}
}
switch (this._name) {
case "scoretotal_mc" :
_global.gSC = _global.gSC + (Number(_global.gTime) + Number(_global.gDistance));
this.setNum(_global.gSC);
break;
case "highscore1_mc" :
break;
case "highscore2_mc" :
break;
case "highscore3_mc" :
break;
default :
this.setNum(_global.gSC);
}
stop();
Symbol 629 MovieClip Frame 1
function turnon() {
this._y = 358;
}
function turnoff() {
this._y = 1000;
}
Symbol 629 MovieClip Frame 9
gotoAndPlay (2);
Symbol 630 MovieClip Frame 35
this._parent.gotoAndStop("idle");
stop();
Symbol 631 MovieClip Frame 35
this._parent.gotoAndStop("idle");
stop();
Symbol 632 MovieClip Frame 35
this._parent.gotoAndStop("idle");
stop();
Symbol 633 MovieClip Frame 91
this._parent.gotoAndStop("idle");
stop();
Symbol 634 MovieClip Frame 67
this._parent._parent.bod_mc.standUp();
this._parent.gotoAndStop("idle");
this.resetMe();
stop();
Symbol 635 MovieClip Frame 1
function onEnterFrame() {
if (pState == "active") {
this.nudge();
}
}
function nudge() {
var _local1 = this;
var _local2 = _global;
pLocX = _local2.gX;
pLocY = _local2.gY;
pLocZ = _local2.gZ * 0.7;
_local1._xscale = 40 - (pLocY / 10);
_local1._yscale = 40 - (pLocY / 10);
_local1._x = getX(_local1);
_local1._y = getY(_local1) - pLocZ;
}
function jump(tj) {
var _local1 = this;
var _local2 = tj;
var _local3 = _global;
trace("board jump: " + _local2);
pLocX = _local3.gX;
pLocY = _local3.gY;
pLocZ = _local3.gZ;
pState = "active";
switch (_local2) {
case 2 :
_local1.gotoAndStop("jump2");
_local1.bjump2_mc.play();
break;
case 3 :
_local1.gotoAndStop("jump3");
_local1.bjump3_mc.play();
break;
case 4 :
_local1.gotoAndStop("jump4");
_local1.bjump4_mc.play();
break;
case 5 :
_local1.gotoAndStop("jump5");
_local1.bjump4_mc.play();
}
_local1._parent.xtrashadow_mc.jump(_local2);
}
function fall() {
var _local1 = _global;
pLocX = _local1.gX;
pLocY = _local1.gY;
pLocZ = _local1.gZ;
pState = "active";
this.gotoAndStop("fall");
this.bfall_mc.play();
}
function resetMe() {
this._x = 2000;
pState = "inactive";
}
var pLocX = 0;
var pLocY = 0;
var pLocZ = 0;
var pState = "inactive";
this._x = -1000;
this._y = -1000;
stop();
Symbol 636 MovieClip Frame 1
function nudge(py) {
var _local1 = this;
var _local2 = _global;
pOnRamp = 0;
if ((_local2.gGame == 3) && (gX < 500)) {
if (_local1._parent.rampbig_mc.pOnRamp == 1) {
pOnRamp = 1;
}
} else if ((_local1._parent.ramp0_mc.pOnRamp == 1) || (_local1._parent.ramp1_mc.pOnRamp == 1)) {
pOnRamp = 1;
}
if ((pOnRamp == 0) && (pLocZ > 0)) {
if ((_local2.gGame == 3) && (gX < 500)) {
pSpeedZ = pSpeedZ + 0.2;
} else {
pSpeedZ = pSpeedZ + 0.5;
}
pLocZ = pLocZ - pSpeedZ;
if (pLocZ < 0) {
pLocZ = 0;
pSpeedZ = 0;
_root.snd_mc.playsound("pLanding");
if ((_local2.gGame == 3) && (gX < 500)) {
trace("landed!");
_local1._parent.xtraboard_mc.resetMe();
pJumpFrames = 0;
}
if (pJumpFrames > 1) {
_local1.fallover();
_local2.gINC = 0;
} else {
_root.snd_mc.playsound("pBonus");
if ((_local2.gGame == 3) && (gX < 0)) {
_local1._parent.control_mc.setStopLength(pJumpPoint);
}
if (_local2.gINC > 0) {
_local1._parent.control_mc.score(_local2.gINC);
_local1._parent.control_mc.launchBonus(0, 0, _local2.gINC);
}
}
}
}
if (pState == "falling") {
if (pSpeedX > 0) {
pSpeedX = pSpeedX - pFallSpd;
}
} else {
if (py == 0) {
if (pSpeedX < pMaxSpd) {
pSpeedX = pSpeedX + 0.5;
} else {
pSpeedX = pSpeedX + 0.02;
}
} else if (pSpeedX > 4) {
pSpeedX = pSpeedX - 0.2;
}
if (pLocY < 35) {
if (pSpeedX > 4) {
pSpeedX = pSpeedX - 0.5;
}
} else if (pLocY > 120) {
if (pSpeedX > 4) {
pSpeedX = pSpeedX - 0.5;
}
}
if (py == 0) {
if (pSpeedY > 0) {
pSpeedY = pSpeedY - pYstep;
if (pSpeedY < 0) {
pSpeedY = 0;
}
} else if (pSpeedY < 0) {
pSpeedY = pSpeedY + pYstep;
if (pSpeedY > 0) {
pSpeedY = 0;
}
}
} else {
pSpeedY = pSpeedY + (py * pYstep);
if (pSpeedY < -8) {
pSpeedY = -8;
}
if (pSpeedY > 8) {
pSpeedY = 8;
}
}
if (pSpeedX > (pMaxSpd + pMaxSpdXtra)) {
pSpeedX = pMaxSpd + pMaxSpdXtra;
}
if (pOnRamp == 1) {
_local1.char_mc.gotoAndStop("jump1");
_local1.char_mc.jump1_mc.gotoAndStop(1);
} else if (pJumpFrames > 0) {
if (pJumping > 0) {
_local2.gINC = _local2.gINC + 500;
var tsnd = ("pJump" + (pJumping - 1));
_root.snd_mc.playsound(tsnd);
_root.snd_mc.jumpkick();
switch (pJumping) {
case 1 :
_local1.char_mc.gotoAndStop("jump1");
_local1.char_mc.jump1_mc.gotoAndPlay(2);
if (pSpeedX < (pMaxSpd - 4)) {
pSpeedZ = -2;
} else {
pSpeedZ = -4;
}
break;
case 2 :
case 3 :
case 4 :
case 5 :
_local1.char_mc.gotoAndStop("jump2");
_local1.char_mc.jump2_mc.gotoAndPlay(2);
if (pSpeedX < (pMaxSpd - 4)) {
pSpeedZ = -5;
} else {
pSpeedZ = -8;
}
}
if ((_local2.gGame == 3) && (gX < 0)) {
_local1._parent.control_mc.setStartLength();
}
_local1._parent.xtraboard_mc.jump(pJumping);
pJumpX = pSpeedX;
pJumpY = pSpeedY;
pJumping = 0;
} else {
pJumpFrames--;
pSpeedX = pJumpX;
pSpeedY = pJumpY;
}
} else if (pSpeedY == 0) {
_local1.char_mc.gotoAndStop("straight");
pAnim++;
if (pAnim > 3) {
pAnim = 1;
}
_local1.char_mc.straight_mc.gotoAndStop(pAnim);
} else if (pSpeedY == -8) {
_local1.char_mc.gotoAndStop("downrumble");
pAnim++;
if (pAnim > 3) {
pAnim = 1;
}
_local1.char_mc.downrumble_mc.gotoAndStop(pAnim);
} else if (pSpeedY == 8) {
_local1.char_mc.gotoAndStop("uprumble");
pAnim++;
if (pAnim > 3) {
pAnim = 1;
}
_local1.char_mc.uprumble_mc.gotoAndStop(pAnim);
} else if (pSpeedY < 0) {
_local1.char_mc.gotoAndStop("turndown");
var tanim = Math.ceil(Math.abs(pSpeedY));
_local1.char_mc.turndown_mc.chardown_mc.gotoAndStop(tanim);
_local1.char_mc.turndown_mc.boarddown_mc.gotoAndStop(tanim);
} else if (pSpeedY > 0) {
_local1.char_mc.gotoAndStop("turnup");
var tanim = Math.ceil(Math.abs(pSpeedY));
_local1.char_mc.turnup_mc.charup_mc.gotoAndStop(tanim);
_local1.char_mc.turnup_mc.boardup_mc.gotoAndStop(tanim);
}
}
pLocX = pLocX - pSpeedX;
pLocY = pLocY + pSpeedY;
if (pLocY < 0) {
pLocY = 0;
pSpeedY = 0;
_local1.fallover();
_local2.gINC = 0;
}
if (pLocY > 140) {
pLocY = 140;
pSpeedY = 0;
_local1.fallover();
_local2.gINC = 0;
}
if (((gGame == 3) && (pLocX < 0)) && (BIGAIR == 0)) {
_local1.jump(4);
BIGAIR = 1;
var _local3 = _local1._parent.pAngle;
var tAcc = _local1._parent.pAcc;
if ((_local3 == -1) || (tAcc == -1)) {
_local3 = 0;
tAcc = 0;
pJumpPoint = 0;
_local1._parent.power_mc.arrow_mc.gotoAndStop(1);
_local1._parent.power_mc.play();
} else {
trace((("tAng: " + _local3) + "tAcc: ") + tAcc);
var tAngPlus = (30 - Math.abs(_local3 - 30));
trace((("tAngPlus: " + tAngPlus) + "pSpeedX: ") + pSpeedX);
pJumpPoint = (tAngPlus + tAcc) + pSpeedX;
trace("pJumpPoint: " + pJumpPoint);
}
_local1._parent.power_mc.arrow_mc.gotoAndStop(1);
_local1._parent.power_mc.play();
}
_local2.gX = pLocX;
_local2.gY = pLocY;
_local2.gZ = pLocZ;
_local1._xscale = 40 - (pLocY / 10);
_local1._yscale = 40 - (pLocY / 10);
_local1._x = getX(_local1);
_local1._y = getY(_local1) - pLocZ;
switch (_local2.gGame) {
case 1 :
case 2 :
if ((pLocX < 0) && (pState == "active")) {
_local1._parent.hills_mc.clearUp();
_local1._parent.control_mc.stopTimer();
pState = "inactive";
_local1._parent.play();
}
return;
case 3 :
if (!((pLocX < 0) && (pState == "active"))) {
break;
}
if (pLocZ != 0) {
break;
}
_local1._parent.hills_mc.clearUp();
_local1._parent.control_mc.stopTimer();
_local1._parent.blurrednums_mc.turnoff();
pState = "inactive";
_local1._parent.play();
}
}
function standUp() {
pState = "active";
this.char_mc.gotoAndStop("straight");
_root.snd_mc.playroll();
}
function speedStar() {
pMaxSpdXtra = pMaxSpdXtra + 0.1;
}
function ramp(tdx, locy) {
var _local2 = _global;
var _local3 = locy;
var _local1 = 0;
if (pOnRamp == 1) {
pLocZ = tdx / 4;
_local2.gZ = pLocZ;
_local1 = 1;
} else if (tdx < pSpeedX) {
pLocZ = tdx / 4;
_local2.gZ = pLocZ;
pOnRamp = 1;
_local1 = 1;
} else {
if (pLocY < _local3) {
pLocY = _local3 - 10;
} else {
pLocY = _local3 + 10;
}
this.fallover();
_local2.gINC = 0;
_local1 = 0;
}
return(_local1);
}
function jump(tj) {
if ((gGame == 3) && (gX < 0)) {
trace("big jump");
pJumpFrames = 87;
pJumping = 5;
} else {
trace("small jump");
if (pJumpPoint == 0) {
pJumpPoint = (260 - _global.gX) / 100;
if (pJumpPoint < 0) {
pJumpPoint = -1;
}
}
if (pOnRamp == 1) {
pJumping = tj + 1;
pJumpFrames = 35;
}
}
}
function fallover() {
this.char_mc.gotoAndStop("fall");
_root.snd_mc.fallover();
pState = "falling";
pSpeedY = 0;
pFallSpd = pSpeedX / 64;
this._parent.xtraboard_mc.fall();
pJumpFrames = 0;
}
function setRamp(x) {
pOnRamp = x;
}
function increaseMaxSpd(tx) {
pMaxSpdXtra = pMaxSpdXtra + 0.5;
}
function slowDown() {
if (pSpeedX > 4) {
pSpeedX = 4;
}
this.fallover();
}
function resetMe() {
var _local1 = _global;
pSpeedX = 0;
pSpeedY = 0;
pLocY = 70;
pLocX = 22000;
_local1.gX = pLocX;
_local1.gY = pLocY;
_local1.gZ = pLocZ;
_root.snd_mc.playsound("pStart");
_root.snd_mc.playroll();
}
var pLocX = 0;
var pLocY = 0;
var pLocZ = 0;
var pState = "active";
var pAnim = 1;
var pOnRamp = 0;
var pSpeedX = 0;
var pSpeedY = 0;
var pSpeedZ = 0;
var pJumping = 0;
var pJumpFrames = 0;
var pAirY = 0;
var pMaxSpdXtra = 0;
var pJumpX = 0;
var pJumpY = 0;
var pFallSpd = 0;
var pJumpPoint = 0;
var BIGAIR = 0;
var pMaxSpd = (14 + (_global.gChar * 2));
var pYstep = (1.1 - (_global.gChar * 0.1));
this.resetMe();
switch (_global.gChar) {
case 1 :
this.attachMovie("mc.bodbloo", "char_mc", 2000);
break;
case 2 :
this.attachMovie("mc.bodmac", "char_mc", 2000);
break;
case 3 :
this.attachMovie("mc.bodcoco", "char_mc", 2000);
break;
case 4 :
this.attachMovie("mc.bodeduardo", "char_mc", 2000);
}
this._x = -1000;
this._y = -1000;
stop();
Symbol 644 MovieClip Frame 1
function reset(x, y, sc) {
var _local1 = this;
trace("sc = " + sc);
_local1._x = 80;
_local1._y = 350;
_local1.bonus_mc.bonusval_mc.txt.text = String(sc);
_local1.gotoAndPlay(2);
pState = "active";
pXSpeed = 0;
pYSpeed = 0;
}
function setAside() {
this._x = pNum * 100;
this._y = 800;
pState = "inactive";
}
var pNum = Number(this._name.slice(5, -3));
var pLocX = 0;
var pLocY = 0;
var pLocZ = 100;
var pState = "inactive";
var pXSpeed = 1;
var pYSpeed = 1;
this._y = -1000;
stop();
Symbol 644 MovieClip Frame 32
this.setAside();
this.gotoAndStop(1);
Symbol 653 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 4
stop();
Symbol 657 MovieClip Frame 7
stop();
Symbol 657 MovieClip Frame 17
stop();
Symbol 659 MovieClip Frame 1
function setNum(num) {
var tstr = ("00000" + String(num));
var _local3 = tstr.substr(-5);
var _local1 = 0;
while (_local1 < 5) {
var _local2 = Number(_local3.charAt(_local1)) + 1;
this[("num" + _local1) + "_mc"].gotoAndStop(_local2);
_local1++;
}
}
if (this._name == "distance_mc") {
var tstr2 = String(_global.gDistance);
var tstr = ("00000" + String(_global.gDistance));
var tstr2 = tstr.substr(-5);
this.setNum(tstr2);
} else if (int(_global.gTime) != 90) {
var tstr = ("00000" + String(_global.gTime));
var tstr5 = tstr.substr(-5);
var i = 0;
while (i < 5) {
var j = (Number(tstr5.charAt(i)) + 1);
this[("num" + i) + "_mc"].gotoAndStop(j);
i++;
}
}
stop();
Symbol 667 MovieClip Frame 19
stop();