Frame 1
function loadBabe() {
babeMovie = ((_level0.swfUrl + "babes/") + babeName) + "2.swf";
babes[babeName].loadMovie(babeMovie);
loadingData = true;
crashMovie = _level0.swfUrl + "babes/crash.swf";
crashMC.girl.loadMovie(crashMovie);
}
function loadAnotherBabe(n) {
var _local2 = n;
if (babeCount < 3) {
if (_local2 < 3) {
babeMovie = ((_level0.swfUrl + "babes/") + ladies[_local2]) + "2.swf";
var _local1 = ladies[_local2];
} else {
babeMovie = ((_level0.swfUrl + "babes/") + ladies[0]) + "2.swf";
var _local1 = ladies[0];
}
babes[_local1].loadMovie(babeMovie);
}
}
function chooseBabe() {
babes[babeName].gotoAndStop("wait");
babes[babeName].display = "";
babeNum = random(3) + 1;
babeName = _root.ladies[babeNum - 1];
}
function controlPannel(which) {
controlMC.gotoAndPlay(2);
}
function enter() {
enterMovie = _level0.swfUrl + "babes/enter.swf";
enterMC.loadMovie(enterMovie);
enterMC.swapDepths(300);
}
function closeEnter() {
enterMC.unloadMovie();
}
function initSessionSend() {
_global.gameInfo = this;
gameSender = new LoadVars();
gameReceiver = new LoadVars();
}
function submitSessionInfo() {
gameSender.d = gTime;
gameSender.g = guid;
gameSender.f = 1;
trace("gameSending = " + gameSender.toString());
gameSender.sendAndLoad(processScpt, gameReceiver, "GET");
}
Stage.showMenu = false;
Stage.scaleMode = "noScale";
_level0.swfUrl = _level0._url.substr(0, _level0._url.lastIndexOf("/")) + "/";
processScpt = _level0.swfUrl + "process.asp";
initSessionSend();
_global.soundState = true;
gamePlay = 0;
ladies = new Array("kerry", "jess", "holly");
babeCount = 0;
chooseBabe();
loadBabe();
Instance of Symbol 38 MovieClip "controlMC" in Frame 1
/* no clip actions */
Frame 3
babeTotal = babes[babeName].getBytesTotal();
if (babeTotal > 20) {
gameTotal = getBytesTotal();
bytesTotal = babeTotal + gameTotal;
loadingData = false;
loading = true;
gotoAndPlay ("load");
}
Frame 4
gotoAndPlay(_currentframe - 1);
Frame 6
babeLoad = babes[babeName].getBytesLoaded();
gameLoad = getBytesLoaded();
bytesLoaded = babeLoad + gameLoad;
if ((bytesLoaded != bytesTotal) && (bytesLoaded > 0)) {
var percent = ((bytesLoaded / bytesTotal) * 200);
intro.loading.bar._width = percent;
} else {
intro.loading.gotoAndStop(2);
intro.copy.play();
loading = false;
gotoAndStop ("game");
}
Frame 7
gotoAndPlay(_currentframe - 1);
Frame 11
function sortSpeed() {
if (bikeAccel || (bringOnRamp)) {
xspeed = xspeed + accel;
} else {
xspeed = xspeed;
}
if (jumping) {
xspeed = xspeed - accel;
}
if (scoring) {
xspeed = xspeed - accel;
}
return(xspeed);
}
function bikeRot() {
if (startJump) {
if ((xPos > bikeStartRot) && (xPos < xRamp)) {
var _local2 = ((xPos - bikeStartRot) / (xRamp - bikeStartRot)) * rampAngle;
bike._rotation = -_local2;
}
if (xPos > xRamp) {
hitramp = true;
bike._rotation = -rampAngle;
var ang = degsToRads(rampAngle);
var _local3 = xPos - xRamp;
yPos = Math.tan(ang) * _local3;
}
}
if (jumping) {
if (xPos < (bikeDist / 2)) {
var _local2 = -20 + (((xPos - xTarget) / (bikeDist / 2)) * -45);
} else {
var _local2 = -45 + (((xPos - (bikeDist / 2)) / bikeDist) * 20);
}
bike._rotation = _local2;
}
if (crashing) {
var _local2 = -20 + (((xPos - xTarget) / bikeDist) * 100);
bike._rotation = _local2;
}
if (landing) {
if ((xPos > bikeEndRot) && (xPos < runOffX)) {
var _local2 = (1 - ((xPos - bikeEndRot) / (runOffX - bikeEndRot))) * rampAngle;
bike._rotation = _local2;
var ang = degsToRads(rampAngle);
var _local1 = runOffX - xPos;
yPos = Math.tan(ang) * _local1;
} else {
bike._rotation = 0;
yPos = 0;
}
if ((xPos > bikeEndX) && (xPos < bikeEndRot)) {
bike._rotation = rampAngle;
var ang = degsToRads(rampAngle);
var _local1 = runOffX - xPos;
yPos = Math.tan(ang) * _local1;
}
}
}
function PosToStage(x, xy) {
var _local1 = x;
if (xy == "x") {
_local1 = _local1 - _root.xScreenOffset;
} else {
_local1 = _root.yScreenOffset - _local1;
}
return(_local1);
}
function degsToRads(degrees) {
var _local1 = (degrees / 180) * Math.PI;
return(_local1);
}
function workOutDistance(n) {
dist = 50 + ((Math.pow(releaseX, 2) / Math.pow(xTarget, 2)) * ((jumpDistMax - 75) + random(26)));
screenDist = dist * 10;
}
function varsForBringOnRamp() {
bikeStartX = xPos;
bikeDist = halfStageWidth;
bikeEndX = xPos + bikeDist;
crowdMC.init();
gndWidth = gndMC._width;
bgWidth = crowdMC._width;
endX = gndWidth - bike._width;
screenStartX = xScreenOffset;
screenDiffX = halfStageWidth;
bgDiffX = -(halfStageWidth / 3);
bringOnRamp = true;
}
function varsForJump() {
bikeDist = screenDist + (bike._width / 2);
bikeEndX = xTarget + bikeDist;
bikeMaxY = (rampHeight * 2) + ((Math.pow(dist, 2) / Math.pow(jumpDistMax, 2)) * (450 - (rampHeight * 2)));
gndMC.init(dist);
bgX = crowdMC._x;
crowdMC.init();
gndWidth = gndMC._width;
bgWidth = crowdMC._width;
cloudWidth = cloudsMC._width;
endX = gndWidth - (bike._width * 2);
screenStartX = xScreenOffset;
screenDiffX = (gndWidth - stageWidth) - halfStageWidth;
bgDiffX = (stageWidth - bgWidth) - bgX;
cloudDiffX = stageWidth - cloudWidth;
}
function crashVars() {
gndMC.swapDepths(75);
dist = jumpDistMax;
screenDist = dist * 10;
gndMC.init(dist);
bikeDist = gndMC.gnd.bus_mc.bus_3._x;
bikeEndX = xTarget + bikeDist;
bikeMaxY = (Math.pow(xspeed, 2) / 2536.633225) * 125;
gndWidth = xTarget + gndMC.gnd.bus_mc.bus_4._x;
endY = rampHeight + 50;
endX = gndWidth - bike._width;
screenStartX = xScreenOffset;
screenDiffX = (gndWidth - stageWidth) - halfStageWidth;
}
function sortLanding() {
landing = true;
runOffX = gndMC.runOff._x;
bikeEndRot = runOffX - (bike._width - 35);
cameras.gotoAndPlay(2);
}
function reset() {
if (_global.soundState) {
Rev = true;
revSnd.start(0, 9999);
revSnd.setVolume(100);
}
getGameTime();
xScreenOffset = -25;
yScreenOffset = 460;
xPos = 0;
yPos = 0;
if (!crashed) {
gndMC.runOff._width = gndMC.runOff._width - stageWidth;
}
if (gamePlay >= 1) {
submitSessionInfo();
chooseBabe();
}
bike._rotation = 0;
bikeAccel = false;
jumping = false;
landing = false;
crashing = false;
crashed = false;
startJump = false;
scoring = false;
buttRelease = false;
xspeed = random(50) / 40;
gndMC.reset();
crowdMC.delBoard();
crowdMC._x = PosToStage(xPos, "x") + xScreenOffset;
cloudsMC._x = PosToStage(xPos, "x") + xScreenOffset;
bike._x = PosToStage(xPos, "x");
bike._y = PosToStage(yPos, "y");
gndMC._x = PosToStage(xPos, "x");
bike.gotoAndStop(1);
bike.swapDepths(50);
gndMC.swapDepths(25);
babes.swapDepths(150);
crashMC.swapDepths(175);
controlMC.swapDepths(180);
controlMC.gotoAndStop(1);
cheerOK = false;
babes._y = 550;
crashMC._y = 550;
gamePlay++;
Active = false;
}
function limit(x, min, max) {
var _local1 = x;
if (_local1 > max) {
return(max);
}
if (_local1 < min) {
return(min);
}
return(_local1);
}
function dispDist(d) {
var _local1 = d;
if (_local1 < 126) {
dispPose = "pos1";
} else if (_local1 < 241) {
dispPose = "pos2";
} else if (_local1 < 265) {
dispPose = "pos3";
} else if (_local1 < 285) {
dispPose = "pos4";
} else {
cheerOK = true;
dispPose = "pos5";
}
babes[babeName].gotoAndStop(dispPose);
_local1 = Math.round(_local1 * 10);
_local1 = String(_local1);
var _local2 = length(_local1);
_root.gScore = ((_local1.substr(0, _local2 - 1) + ".") + _local1.substr(_local2 - 1)) + "M";
babes[babeName].display = ((_local1.substr(0, _local2 - 1) + ".") + _local1.substr(_local2 - 1)) + "M";
bringOnBabe();
}
function bringOnBabe() {
t = getTimer();
scoreTime = 550;
xEndTarget = xpos + stageWidth;
scoreDiffX = stageWidth - PosToStage(xPos, "x");
gndMC.runOff._width = gndMC.runOff._width + stageWidth;
gndWidth = gndMC._width;
scoreBikeStart = xPos;
scoreBikeEnd = gndWidth - 150;
scoreBikeDiff = scoreBikeEnd - scoreBikeStart;
screenStartX = xScreenOffset;
screenEndX = screenStartX + stageWidth;
screenDiffX = stageWidth;
bike._rotation = 0;
babes._x = 0;
babes._y = 550;
scoring = true;
}
function bringOnCrash() {
d = random(4) + 1;
dispPose = "pos" + d;
crashMC.girl.gotoAndStop(dispPose);
t = getTimer();
scoreTime = 550;
crashMC._x = 0;
crashMC._y = 550;
crashGirl = true;
}
function initSnd() {
accelSnd = new Sound();
accelSnd.attachSound("accel");
accelVol = 250;
decelSnd = new Sound();
decelSnd.attachSound("decel");
decelVol = 250;
cheerSnd = new Sound();
cheerSnd.attachSound("cheer");
cheerVol = 100;
crashSnd = new Sound();
crashSnd.attachSound("crash");
crashVol = 100;
revSnd = new Sound();
revSnd.attachSound("rev");
revVol = 100;
}
function playSnd(a) {
var _local1 = a;
var _local2 = this;
if (_global.soundState) {
_local2[_local1 + "Snd"].start();
_local2[_local1 + "Snd"].setVolume(_local2[_local1 + "Vol"]);
}
}
function endSnd(a) {
if (_global.soundState) {
this[a + "Snd"].stop();
}
}
function getGameTime() {
gTime = Math.ceil((getTimer() - startTime) / 1000);
}
stageWidth = 770;
halfStageWidth = (stageWidth / 2) + 200;
xTarget = 690 + halfStageWidth;
xRamp = 350 + halfStageWidth;
jumpDistMax = 302.5;
rampAngle = 20;
accel = 2.16;
startTime = getTimer();
bikeStartRot = xRamp - (bike._width - 35);
rampHeight = gndMC.upRamp.height._height;
initSnd();
reset();
mainBt.useHandCursor = false;
bike.onEnterFrame = function () {
if (keepAccel) {
if (xPos > xRamp) {
bikeAccel = false;
keepAccel = false;
}
}
if (bringOnRamp) {
var relX = xPos;
fraction = limit(relX / halfStageWidth, 0, 1);
sortSpeed();
xPos = xPos + xspeed;
if (xPos > bikeEndX) {
xPos = bikeEndX;
fraction = 1;
bringOnRamp = false;
startJump = true;
bikeAccel = true;
jumpVoid = false;
}
xScreenOffset = (screenDiffX * fraction) + screenStartX;
gndMC._x = PosToStage(0, "x");
crowdMC._x = bgDiffX * fraction;
}
if (startJump) {
sortSpeed();
xPos = xPos + xspeed;
bikeRot();
if ((xPos > xTarget) && (!bikeAccel)) {
jumping = true;
xspeed = xspeed - (accel * 6);
releaseY = yPos;
if (!jumpVoid) {
workOutDistance(releaseX);
}
varsForJump();
startJump = false;
endSnd("accel");
}
if ((xPos > xTarget) && (bikeAccel)) {
jumpVoid = true;
crashing = true;
crashed = true;
startJump = false;
crashVars();
endSnd("accel");
}
}
if (jumping) {
var relX = (xPos - xTarget);
fraction = limit(relX / bikeDist, 0, 1);
var _local3 = (rampHeight - releaseY) * fraction;
var _local2 = fraction * Math.PI;
var relY = ((bikeMaxY - releaseY) * Math.sin(_local2));
yPos = (releaseY + relY) + _local3;
xPos = xPos + xspeed;
if (xPos > bikeEndX) {
xPos = bikeEndX;
fraction = 1;
jumping = false;
playSnd("decel");
bike.gotoAndStop(1);
sortLanding();
}
bikeRot();
xScreenOffset = (screenDiffX * fraction) + screenStartX;
gndMC._x = PosToStage(0, "x");
crowdMC._x = (bgDiffX * fraction) + bgX;
cloudsMC._x = cloudDiffX * fraction;
}
if (crashing) {
var relX = (xPos - xTarget);
fraction = limit(relX / bikeDist, 0, 1);
var _local2 = fraction * Math.PI;
var relY = ((bikeMaxY - (rampHeight + this.width)) * Math.sin(_local2));
yPos = rampHeight + relY;
xPos = xPos + xspeed;
if (xPos > bikeEndX) {
xPos = bikeEndX;
yPos = endY;
fraction = 1;
crashing = false;
gndMC.gnd.bus_mc.bus_3.gotoAndPlay("crash");
}
bikeRot();
xScreenOffset = (screenDiffX * fraction) + screenStartX;
gndMC._x = PosToStage(0, "x");
}
if (crashGirl) {
var _local1 = getTimer() - t;
fraction = limit(_local1 / scoreTime, 0, 1);
var _local2 = fraction * (Math.PI/2);
if (_local1 > scoreTime) {
_local1 = scoreTime;
fraction = 1;
crashGirl = false;
crashMC.girl.play();
}
crashYPos = 550 - (550 * Math.sin(_local2));
crashMC._y = crashYPos;
}
if (landing) {
if (xspeed > 0) {
xspeed = xspeed - accel;
} else {
xspeed = 0;
dispDist(dist);
landing = false;
if (cheerOK) {
playSnd("cheer");
}
}
xPos = xPos + xspeed;
bikeRot();
if (xPos > endX) {
xPos = endX;
dispDist(dist);
landing = false;
if (cheerOK) {
playSnd("cheer");
}
}
}
if (scoring) {
var _local1 = getTimer() - t;
fraction = limit(_local1 / scoreTime, 0, 1);
var _local2 = fraction * (Math.PI/2);
if (_local1 > scoreTime) {
_local1 = scoreTime;
fraction = 1;
scoring = false;
pause = true;
}
xScreenOffset = (stageWidth * Math.sin(_local2)) + screenStartX;
babeYPos = 550 - (550 * Math.sin(_local2));
xPos = scoreBikeStart + (scoreBikeDiff * Math.sin(_local2));
gndMC._x = PosToStage(0, "x");
babes._y = babeYPos;
}
if (pause) {
var _local1 = getTimer() - t;
fraction = limit(_local1 / 1000, 0, 1);
if (_local1 > 1000) {
_local1 = 1000;
fraction = 1;
babes[babeName].play();
pause = false;
}
}
this._x = PosToStage(xPos, "x");
this._y = PosToStage(yPos, "y");
};
Frame 19
stop();
mainBt.onPress = function () {
if (!Active) {
Active = true;
if (bike._x < xTarget) {
endSnd("rev");
playSnd("accel");
varsForBringOnRamp();
}
}
};
mainBt.onRelease = function () {
if (!buttRelease) {
buttRelease = true;
if (xPos < xRamp) {
keepAccel = true;
}
if (xPos > xRamp) {
bikeAccel = false;
}
if (!crashed) {
bike.gotoAndStop(2);
}
releaseX = xPos;
}
};
Symbol 15 Button
on (release) {
_root.reset();
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 35 Button
on (release) {
gotoAndPlay ("close");
}
Symbol 36 MovieClip Frame 1
_parent.infoShow = false;
stop();
Symbol 36 MovieClip Frame 2
infoBt.useHandCursor = false;
_parent.infoShow = true;
Symbol 36 MovieClip Frame 7
stop();
Symbol 36 MovieClip Frame 12
_parent.infoShow = false;
Symbol 38 MovieClip Frame 1
board.form.formReset();
stop();
Symbol 38 MovieClip Frame 2
tim = getTimer();
board.form.gotoAndStop(1);
Symbol 38 MovieClip Frame 4
if ((getTimer() - tim) < 1000) {
gotoAndPlay(_currentframe - 1);
}
Symbol 38 MovieClip Frame 13
stop();
Symbol 60 Button
on (release) {
_parent.play();
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 6
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 14
stop();
Symbol 68 MovieClip Frame 25
_root.play();
stop();
Symbol 71 Button
on (release) {
gotoAndStop (2);
stopAllSounds();
_global.soundState = false;
}
Symbol 73 Button
on (release) {
gotoAndStop (1);
_global.soundState = true;
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
var n = _parent._name;
var nam = n.split("_");
var num = nam[1];
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 9
_root.playSnd("crash");
Symbol 120 MovieClip Frame 61
_root.bringOnCrash();
stop();
Symbol 121 MovieClip Frame 1
function dupBus(a, x, n, cnt) {
var _local1 = this;
var _local2 = a;
var _local3 = n;
if (_local2 == 2) {
bus_1._x = _local3 / 2;
}
i = _local2;
while (i <= cnt) {
duplicateMovieClip ("bus_1", "bus_" + i, i);
_local1["bus_" + i]._y = 0;
_local1["bus_" + i]._x = ((i - 0.5) * _local3) + x;
i++;
}
}
function delBus(a, n, cnt) {
var _local1 = a;
var _local2 = cnt;
i = _local1;
while (i <= _local2) {
removeMovieClip("bus_" + i);
i++;
}
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
init = function () {
var _local1 = _root;
funWidth = 350;
busWidth = 200;
halfway = _local1.screenDist / 2;
firstStretch = halfway - (funWidth / 2);
busCount = Math.floor(firstStretch / busWidth);
busInterval = firstStretch / busCount;
funFrm = Math.ceil(Math.random() * 11);
fun.gotoAndStop(funFrm);
if (_local1.screenDist < (funWidth + (busWidth * 2))) {
busCount = Math.floor(_local1.screenDist / busWidth);
busInterval = _local1.screenDist / busCount;
bus_mc.dupBus(2, 0, busInterval, busCount);
fun._visible = false;
} else {
bus_mc.dupBus(2, 0, busInterval, busCount);
fun._visible = true;
fun._x = halfway;
bus_mc.dupBus(busCount + 1, funWidth, busInterval, busCount * 2);
}
};
reset = function () {
bus_mc.delBus(2, busInterval, busCount);
bus_mc.delBus(busCount + 1, busInterval, busCount * 2);
fun._x = 370;
bus_mc.bus_1._x = 100;
};
Symbol 156 MovieClip Frame 1
init = function (d) {
var _local1 = this;
var _local2 = _local1._x;
var length1 = (_local1.runway._width + _local1.upRamp._width);
_local1.gnd.road._width = _parent.screenDist;
_local1.gnd.init();
_local1.downRamp._x = length1 + _local1.gnd.road._width;
_local1.runOff._x = _local1.downRamp._x + _local1.downRamp._width;
var _local3 = _local1._width;
gndEndX = (_local2 - _local3) + _parent.stageWidth;
};
reset = function () {
var _local1 = this;
_local1.gnd.reset();
var _local2 = _local1.runway._width + _local1.upRamp._width;
_local1.gnd.road._width = 100;
_local1.downRamp._x = _local2 + _local1.gnd.road._width;
_local1.runOff._x = _local1.downRamp._x + _local1.downRamp._width;
};
Symbol 163 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
function delBoard() {
i = 4;
while (i <= boardCount) {
removeMovieClip("board_" + i);
i++;
}
}
init = function () {
var _local1 = this;
boardWidth = board_1._width;
crowdLength = _root.screenDist * 0.55;
boardCount = Math.floor(crowdLength / boardWidth) + 1;
i = 4;
while (i <= boardCount) {
duplicateMovieClip ("board_1", "board_" + i, i);
_local1["board_" + i]._y = 0;
_local1["board_" + i]._x = (i - 1) * boardWidth;
i++;
}
};
Symbol 173 MovieClip Frame 11
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 28
stop();