Frame 1
function initSFX() {
sfxCollect = new Sound();
sfxCollect.attachSound("sfxCollect.WAV");
sfxBuzz = new Sound();
sfxBuzz.attachSound("sfxBuzz.WAV");
}
function startSounds() {
ol.sfxWind.setVolume(0);
ol.sfxWind.start(0, 10000);
skidoo.sfxMotor.setVolume(0);
skidoo.sfxMotor.start(0, 10000);
skidoo.sfxIdle.setVolume(0);
skidoo.sfxIdle.start(0, 10000);
}
function newGame() {
if (courseNum == 1) {
scoreTime = 0;
}
ol.startWind();
gameOn = true;
gameOver = false;
timerOn = false;
boostCount = 0;
bulletsNum = 10;
lap = 1;
ol.lap = 1;
screen = 1;
screenVisits = new Array();
i = 0;
while (i <= screenCount) {
screenVisits.push(0);
i++;
}
}
function rampCheck(x, y) {
rampNum = courseRamps[screen];
if (rampNum == 0) {
return(0);
}
ramp = eval ("bg.ramp" + rampNum);
onRamp = ramp.hitTest(x, y, true);
if (onRamp) {
if ((rampNum == 1) || (rampNum == 3)) {
rampTop = bg._y + ramp._y;
rampGirth = ramp._height;
} else {
rampTop = bg._x + ramp._x;
rampGirth = ramp._width;
}
if ((rampNum == 1) || (rampNum == 4)) {
rampBottom = rampTop + rampGirth;
rampBumpLine = rampTop + (rampGirth * 0.6);
rampJumpLine = rampTop + (rampGirth * 0.1);
} else {
rampBottom = rampTop - rampGirth;
rampBumpLine = rampTop - (rampGirth * 0.6);
rampJumpLine = rampTop - (rampGirth * 0.1);
}
if (!skidoo.onRamp) {
if (((((rampNum == 1) && (y < rampBumpLine)) || ((rampNum == 3) && (y > rampBumpLine))) || ((rampNum == 2) && (x > rampBumpLine))) || ((rampNum == 4) && (x < rampBumpLine))) {
return(2);
}
skidoo.onRamp = true;
} else {
if ((rampNum == 1) || (rampNum == 3)) {
scale = Math.abs(rampBottom - y);
} else {
scale = Math.abs(rampBottom - x);
}
scale = scale * (30 / rampGirth);
scale = scale + 100;
skidoo._xscale = scale;
skidoo._yscale = scale;
if (((((rampNum == 1) && (y < rampJumpLine)) || ((rampNum == 3) && (y > rampJumpLine))) || ((rampNum == 2) && (x > rampJumpLine))) || ((rampNum == 4) && (x < rampJumpLine))) {
skidoo.startJump();
}
}
} else if (skidoo.onRamp) {
skidoo._xscale = 100;
skidoo._yscale = 100;
skidoo.onRamp = false;
}
return(0);
}
function edgeCollisions(x, y) {
exit = courseExit[screen];
entrance = courseEntrance[screen];
prevScreen = screen;
if ((((x < 0) || (x > 600)) || (y < 20)) || (y > 480)) {
if ((x < 0) && ((exit == 4) || (entrance == 4))) {
skidoo._x = skidoo._x + 600;
screen++;
if (entrance == 4) {
screen = screen - 2;
}
} else if ((x > 600) && ((exit == 2) || (entrance == 2))) {
skidoo._x = skidoo._x - 600;
screen++;
if (entrance == 2) {
screen = screen - 2;
}
} else if ((y < 20) && ((exit == 1) || (entrance == 1))) {
skidoo._y = skidoo._y + 460;
screen++;
if (entrance == 1) {
screen = screen - 2;
}
} else if ((y > 480) && ((exit == 3) || (entrance == 3))) {
skidoo._y = skidoo._y - 460;
screen++;
if (entrance == 3) {
screen = screen - 2;
}
} else {
return(2);
}
if (screen > screenCount) {
screen = 1;
}
if (screen < 1) {
screen = screenCount;
}
if (screen != prevScreen) {
if (bg.ballMove) {
ball = eval ("bg.ball" + prevScreen);
bg.ballXpos[prevScreen] = ball._x;
bg.ballYpos[prevScreen] = ball._y;
bg.ballMove = false;
}
bg.gotoAndStop(screen);
screenVisits[screen] = lap;
return(1);
}
}
return(0);
}
function courseCollisions(x, y) {
if (boostCount > 0) {
boostCount = boostCount - 0.5;
ol.boost.gotoAndStop(boostCount);
}
trackCheck = bg.track.hitTest(x, y, true);
if (trackCheck) {
skidoo.topspeed = 7 + (boostCount / 15);
} else {
skidoo.speed = skidoo.speed * 0.8;
skidoo.topspeed = 7;
}
boardsCheck = bg.boards.hitTest(x, y, true);
if (boardsCheck) {
trace("hit board");
return(2);
}
ball = eval ("bg.ball" + screen);
ballCheck = ball.hitTest(x, y, true);
if (ballCheck) {
bg.moveBall(x, y, Math.abs(skidoo.speed));
return(2);
}
iceCheck = bg.ice.hitTest(x, y, true);
if (iceCheck && (skidoo.iceSkid == 0)) {
skidoo.iceSkid = 20;
}
rollerCheck = bg.roller.hitTest(x, y, false);
if (rollerCheck && (skidoo.spin == 0)) {
skidoo.spin = 50;
if (random(2) == 0) {
skidoo.spin = -50;
}
}
ammoCheck = bg.ammo.hitTest(skidoo);
if (ammoCheck) {
bulletsNum = bulletsNum + 5;
ol.bullets.gotoAndStop(11 - bulletsNum);
bg.ammo._x = -1000;
if (!mute) {
sfxCollect.start();
}
}
boostCheck = bg.boost.hitTest(skidoo);
if (boostCheck) {
boostCount = 100;
bg.boost._x = -1000;
if (!mute) {
sfxCollect.start();
}
}
if ((screen == 1) && (!gameOver)) {
startCheck = bg.startline.hitTest(skidoo);
if (startCheck) {
if ((!timerOn) && (lap == 1)) {
if (!mute) {
sfxBuzz.start();
}
ol.startTime = 0;
timerOn = true;
} else {
lapValid = true;
i = 1;
while (i <= screenCount) {
if (screenVisits[i] != lap) {
lapValid = false;
break;
}
i++;
}
if (lapValid) {
if (lap == 4) {
if (!mute) {
sfxBuzz.start();
}
skidoo.gameOverCount = 15;
gameOver = true;
timerOn = false;
} else {
if (!mute) {
sfxBuzz.start();
}
lap++;
ol.lap = lap;
}
}
}
}
}
}
_quality = "BEST";
fxOn = true;
mute = false;
initSFX();
mute = false;
fxOn = true;
play();
Instance of Symbol 15 MovieClip "progress" in Frame 1
onClipEvent (enterFrame) {
percentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndStop(percentLoaded);
if (percentLoaded > 98) {
_parent.play();
}
}
Frame 3
stop();
Frame 5
ol.gotoAndStop(1);
stop();
Instance of Symbol 100 MovieClip "ol" in Frame 5
onClipEvent (load) {
function startWind() {
sfxWind = new Sound(this);
sfxWind.attachSound("sfxWind.WAV");
sfxWind.setVolume(0);
sfxWind.start(0, 10000);
}
}
onClipEvent (enterFrame) {
if (_parent.timerOn && (_parent.gameOn)) {
startTime = startTime + 25;
time = calcTime(startTime);
if (_parent.mute) {
sfxWind.setVolume(0);
} else if (sfxWind.getVolume() < 50) {
sfxWind.setVolume(sfxWind.getVolume() + 1);
}
} else if (sfxWind.getVolume() > 0) {
sfxWind.setVolume(sfxWind.getVolume() - 1);
}
}
Frame 8
stop();
Frame 15
stop();
Instance of Symbol 179 MovieClip "bg" in Frame 15
onClipEvent (load) {
function moveBall(x, y, speed) {
ball = eval ("ball" + screen);
power = speed * 0.05;
ballDX = ((_x + ball._x) - x) * power;
ballDY = ((_y + ball._y) - y) * power;
ballRot = (-ballDX) / ballDY;
ballMove = true;
}
function hitRoller(x, y) {
rollerBounce = false;
rollerDX = rollerDX + x;
rollerDY = rollerDY - y;
}
_parent.skidoo._x = 230;
_parent.skidoo._y = 410;
_parent.skidoo.skidooFrame = 1;
_parent.shadow._x = 230;
_parent.shadow._y = 410;
_parent.courseExit = new Array(0, 1, 4, 1, 2, 2, 3, 3, 4, 1);
_parent.courseEntrance = new Array(0, 3, 3, 2, 3, 4, 4, 1, 1, 2);
_parent.courseRamps = new Array(0, 1, 0, 0, 2, 2, 0, 3, 0, 0);
_parent.screenCount = _parent.courseExit.length - 1;
ballXpos = new Array();
ballYpos = new Array();
i = 0;
while (i <= _parent.screenCount) {
ballXpos.push(-1000);
ballYpos.push(-1000);
i++;
}
ammo._x = -1000;
boost._x = -1000;
prevScreen = 1;
ballMove = false;
}
onClipEvent (enterFrame) {
screen = this._currentframe;
ball = eval ("ball" + screen);
if (screen != prevScreen) {
if (_parent.bulletsNum < 5) {
ammo._x = -200 + random(400);
ammo._y = -200 + random(400);
} else {
ammo._x = -1000;
}
if (random(2) == 0) {
boost._x = -200 + random(400);
boost._y = -200 + random(400);
} else {
boost._x = -1000;
}
rollerBounce = true;
roller._x = (200 + random(200)) - _x;
roller._y = (150 + random(200)) - _y;
rollerDir = (random(360) * Math.PI) / 180;
rollerDX = Math.sin(rollerDir) * 4;
rollerDY = Math.cos(rollerDir) * 4;
ball._rotation = random(90);
if (ballXpos[screen] > -1000) {
ball._x = ballXpos[screen];
ball._y = ballYpos[screen];
}
ballMove = false;
track.gotoAndStop(screen);
boards.gotoAndStop(screen);
extras.gotoAndStop(screen);
prevScreen = screen;
} else if (ballMove) {
ball._x = ball._x + ballDX;
ball._y = ball._y + ballDY;
ball._rotation = ball._rotation + ballRot;
edgeHit = this.track.hitTest(_x + ball._x, _y + ball._y, true);
if (!edgeHit) {
trace("hit edge");
ball._x = ball._x - ballDX;
ball._y = ball._y - ballDY;
ballDX = ballDX * -0.6;
ballDY = ballDY * -0.6;
}
ballDX = ballDX * 0.9;
ballDY = ballDY * 0.9;
ballRot = ballRot * 0.9;
}
roller._x = roller._x + rollerDX;
roller._y = roller._y + rollerDY;
if (rollerBounce) {
if (((_x + roller._x) > 650) || ((_x + roller._x) < -50)) {
rollerDX = rollerDX * -1;
}
if (((_y + roller._y) > 550) || ((_y + roller._y) < -50)) {
rollerDY = rollerDY * -1;
}
}
}
Instance of Symbol 255 MovieClip in Frame 15
onClipEvent (load) {
tNum = 30;
i = 1;
while (i <= tNum) {
duplicateMovieClip ("t", "t" + i, i);
this["t" + i]._x = -1000;
i++;
}
i = 0;
t._visible = false;
screen = 1;
}
onClipEvent (enterFrame) {
if (_parent.screen != screen) {
i = 1;
while (i <= tNum) {
this["t" + i]._x = -1000;
i++;
}
i = 0;
}
if ((_parent.fxOn && (_parent.skidoo.speed > 5)) && (!_parent.skidoo.jumping)) {
if (i < tNum) {
i = i + 3;
} else {
i = 1;
}
j = i;
while (j <= (i + 2)) {
this["t" + j].reset();
j++;
}
}
screen = _parent.screen;
}
Instance of Symbol 332 MovieClip "skidoo" in Frame 15
onClipEvent (load) {
function startJump() {
trace("start jump");
jumpStartTime = getTimer();
jumping = true;
onRamp = false;
skidooHeight = 25;
}
function bump() {
dx = dx * -1;
dy = dy * -1;
if (speed > 7) {
speed = 7;
}
speed = speed * -1.3;
outofcontrolCount = 0;
_xscale = 100;
_yscale = 100;
control = false;
if (!_parent.mute) {
sfxBump.setVolume(speed * 15);
sfxBump.start();
}
}
if (_parent.courseNum < 3) {
light._visible = false;
}
speed = 0;
accel = 0;
reverse = 0;
targetspeed = 0;
keyLeft = 0;
keyRight = 0;
lastKeyDown = "LEFT";
prevDX = 0;
prevDY = 0;
iceSkid = 0;
spin = 0;
onRamp = false;
control = true;
driving = true;
jumping = false;
defaultskidfactor = 4;
if (_parent.courseNum == 2) {
defaultskidfactor = 7;
}
defaultbrakefactor = 20;
skidfactor = defaultskidfactor;
brakefactor = defaultbrakefactor;
topspeed = 10;
accelfactor = 20;
gravity = 40;
sfxBump = new Sound(fxBump);
sfxBump.attachSound("sfxBump.WAV");
sfxIdle = new Sound(fxIdle);
sfxIdle.attachSound("sfxMotorIdle.WAV");
sfxIdle.setVolume(15 - (speed * 2));
sfxIdle.start(0, 10000);
sfxMotor = new Sound(fxMotor);
sfxMotor.attachSound("sfxMotorRun.WAV");
sfxMotor.setVolume(0);
sfxMotor.start(0, 10000);
}
onClipEvent (enterFrame) {
if (_parent.mute) {
sfxMotor.setVolume(0);
sfxIdle.setVolume(0);
} else {
sfxMotor.setVolume(speed * 7);
sfxIdle.setVolume(15 - (speed * 2));
}
if (_parent.gameOver) {
_x = (_x + dx);
_y = (_y - dy);
_parent.shadow._x = _x;
_parent.shadow._y = _y;
gameOverCount--;
if (gameOverCount == 0) {
_parent.ol.play();
}
} else if (jumping) {
edgeState = _parent.edgeCollisions(_x + dx, _y - dy);
if (edgeState == 2) {
bump();
}
t = (getTimer() - jumpStartTime) / 1000;
skidooHeight = 25 + (((Math.abs(speed) * 2) * t) - (gravity * Math.pow(t, 2)));
if (skidooHeight < 0) {
skidooHeight = 0;
jumping = false;
}
_x = (_x + dx);
_y = (_y - dy);
_xscale = (100 + skidooHeight);
_yscale = (100 + skidooHeight);
_parent.shadow._x = _x;
_parent.shadow._y = _y + skidooHeight;
_parent.shadow._xscale = 100 - skidooHeight;
_parent.shadow._yscale = 100 - skidooHeight;
} else if (driving && (_parent.gameOn)) {
if (control) {
if (Key.isDown(38)) {
targetspeed = topspeed;
reverse = 0;
} else if (Key.isDown(40)) {
if (speed > 0.5) {
targetspeed = 0;
if (brakefactor > 2) {
brakefactor = brakefactor - 0.5;
}
} else {
reverse = 1;
targetspeed = topspeed / -5;
}
} else {
brakefactor = defaultbrakefactor;
targetspeed = 0;
}
if (Key.isDown(37)) {
lastKeyDown = "LEFT";
if (keyLeft == 0) {
if (iceSkid == 0) {
keyLeft = 1;
}
if (reverse == 0) {
skidooFrame--;
} else {
skidooFrame++;
}
} else {
keyLeft = 0;
}
} else if (Key.isDown(39)) {
lastKeyDown = "RIGHT";
if (keyRight == 0) {
if (iceSkid == 0) {
keyRight = 1;
}
if (reverse == 0) {
skidooFrame++;
} else {
skidooFrame--;
}
} else {
keyRight = 0;
}
}
} else {
collState = _parent.courseCollisions(_x, _y);
if (collState != 2) {
speed = speed * 0.9;
if (speed < 0.2) {
control = true;
}
} else {
outofcontrolCount++;
if ((outofcontrolCount > 30) && (speed < 1)) {
speed = speed + 0.2;
}
}
}
if (iceSkid > 0) {
if ((iceSkid > 15) && (speed > (topspeed * 0.5))) {
if (lastKeyDown == "LEFT") {
skidooFrame--;
} else {
skidooFrame++;
}
}
iceSkid--;
}
if (spin > 0) {
skidooFrame++;
spin--;
} else if (spin < 0) {
skidooFrame--;
spin++;
}
skidfactor = defaultskidfactor + iceSkid;
if (skidooFrame >= 37) {
skidooFrame = 1;
} else if (skidooFrame <= 0) {
skidooFrame = 36;
}
if (control) {
speedDiff = targetspeed - speed;
if (speedDiff >= 0) {
accel = speedDiff / accelfactor;
} else {
accel = speedDiff / brakefactor;
}
speed = speed + accel;
}
rot = (skidooFrame - 1) * 10;
if (rot > 180) {
rot = -360 + rot;
}
rotRads = Math.PI * (rot / 180);
dx = Math.sin(rotRads) * speed;
dy = Math.cos(rotRads) * speed;
skidspeed = speed * skidfactor;
if (skidspeed > 1) {
skidX = (dx - prevDX) / skidspeed;
skidY = (dy - prevDY) / skidspeed;
} else {
skidX = dx - prevDX;
skidY = dy - prevDY;
}
dx = prevDX + skidX;
dy = prevDY + skidY;
prevDX = dx;
prevDY = dy;
if (control) {
edgeState = _parent.edgeCollisions(_x + dx, _y - dy);
if (edgeState != 1) {
collState = _parent.courseCollisions(_x + dx, _y - dy);
}
if ((edgeState == 2) || (collState == 2)) {
bump();
} else {
rampState = _parent.rampCheck(_x + dx, _y - dy);
if (rampState == 2) {
bump();
}
}
}
_x = (_x + dx);
_y = (_y - dy);
this.gotoAndStop(skidooFrame);
if (_parent.courseNum == 3) {
light.gotoAndStop(skidooFrame);
}
_parent.shadow._x = _x;
_parent.shadow._y = _y;
_parent.shadow.gotoAndStop(skidooFrame);
}
}
Frame 20
stop();
Instance of Symbol 359 MovieClip "bg" in Frame 20
onClipEvent (load) {
function moveBall(x, y, speed) {
ball = eval ("ball" + screen);
power = speed * 0.05;
ballDX = ((_x + ball._x) - x) * power;
ballDY = ((_y + ball._y) - y) * power;
ballRot = (-ballDX) / ballDY;
ballMove = true;
}
function hitRoller(x, y) {
rollerBounce = false;
rollerDX = rollerDX + x;
rollerDY = rollerDY - y;
}
_parent.skidoo._x = 385;
_parent.skidoo._y = 410;
_parent.skidoo.skidooFrame = 1;
_parent.shadow._x = 385;
_parent.shadow._y = 410;
_parent.courseExit = new Array(0, 1, 2, 3, 3, 2, 2, 3, 4, 1);
_parent.courseEntrance = new Array(0, 3, 3, 4, 1, 1, 4, 4, 1, 2);
_parent.courseRamps = new Array(0, 0, 1, 0, 3, 0, 2, 0, 4, 0);
_parent.screenCount = _parent.courseExit.length - 1;
ballXpos = new Array();
ballYpos = new Array();
i = 0;
while (i <= _parent.screenCount) {
ballXpos.push(-1000);
ballYpos.push(-1000);
i++;
}
ammo._x = -1000;
boost._x = -1000;
prevScreen = 1;
ballMove = false;
}
onClipEvent (enterFrame) {
screen = this._currentframe;
ball = eval ("ball" + screen);
if (screen != prevScreen) {
if (_parent.bulletsNum < 5) {
ammo._x = -200 + random(400);
ammo._y = -200 + random(400);
} else {
ammo._x = -1000;
}
if (random(2) == 0) {
boost._x = -200 + random(400);
boost._y = -200 + random(400);
} else {
boost._x = -1000;
}
rollerBounce = true;
roller._x = (200 + random(200)) - _x;
roller._y = (150 + random(200)) - _y;
rollerDir = (random(360) * Math.PI) / 180;
rollerDX = Math.sin(rollerDir) * 4;
rollerDY = Math.cos(rollerDir) * 4;
ball._rotation = random(90);
if (ballXpos[screen] > -1000) {
ball._x = ballXpos[screen];
ball._y = ballYpos[screen];
}
ballMove = false;
track.gotoAndStop(screen);
boards.gotoAndStop(screen);
extras.gotoAndStop(screen);
prevScreen = screen;
} else if (ballMove) {
ball._x = ball._x + ballDX;
ball._y = ball._y + ballDY;
ball._rotation = ball._rotation + ballRot;
edgeHit = this.track.hitTest(_x + ball._x, _y + ball._y, true);
if (!edgeHit) {
trace("hit edge");
ball._x = ball._x - ballDX;
ball._y = ball._y - ballDY;
ballDX = ballDX * -0.6;
ballDY = ballDY * -0.6;
}
ballDX = ballDX * 0.9;
ballDY = ballDY * 0.9;
ballRot = ballRot * 0.9;
}
roller._x = roller._x + rollerDX;
roller._y = roller._y + rollerDY;
if (rollerBounce) {
if (((_x + roller._x) > 650) || ((_x + roller._x) < -50)) {
rollerDX = rollerDX * -1;
}
if (((_y + roller._y) > 550) || ((_y + roller._y) < -50)) {
rollerDY = rollerDY * -1;
}
}
}
Frame 25
stop();
Instance of Symbol 392 MovieClip "bg" in Frame 25
onClipEvent (load) {
function moveBall(x, y, speed) {
ball = eval ("ball" + screen);
power = speed * 0.05;
ballDX = ((_x + ball._x) - x) * power;
ballDY = ((_y + ball._y) - y) * power;
ballRot = (-ballDX) / ballDY;
ballMove = true;
}
function hitRoller(x, y) {
rollerBounce = false;
rollerDX = rollerDX + x;
rollerDY = rollerDY - y;
}
_parent.skidoo._x = 520;
_parent.skidoo._y = 240;
_parent.skidoo.skidooFrame = 28;
_parent.skidoo.gotoAndStop(28);
_parent.shadow._x = 520;
_parent.shadow._y = 240;
_parent.shadow.gotoAndStop(28);
_parent.courseExit = new Array(0, 4, 3, 3, 4, 3, 2, 2, 1, 4);
_parent.courseEntrance = new Array(0, 2, 2, 1, 1, 2, 1, 4, 4, 3);
_parent.courseRamps = new Array(0, 4, 0, 0, 4, 0, 2, 2, 0, 0);
_parent.screenCount = _parent.courseExit.length - 1;
ballXpos = new Array();
ballYpos = new Array();
i = 0;
while (i <= _parent.screenCount) {
ballXpos.push(-1000);
ballYpos.push(-1000);
i++;
}
ammo._x = -1000;
boost._x = -1000;
prevScreen = 1;
ballMove = false;
}
onClipEvent (enterFrame) {
screen = this._currentframe;
ball = eval ("ball" + screen);
if (screen != prevScreen) {
if (_parent.bulletsNum < 5) {
ammo._x = -200 + random(400);
ammo._y = -200 + random(400);
} else {
ammo._x = -1000;
}
if (random(2) == 0) {
boost._x = -200 + random(400);
boost._y = -200 + random(400);
} else {
boost._x = -1000;
}
rollerBounce = true;
roller._x = (200 + random(200)) - _x;
roller._y = (150 + random(200)) - _y;
rollerDir = (random(360) * Math.PI) / 180;
rollerDX = Math.sin(rollerDir) * 4;
rollerDY = Math.cos(rollerDir) * 4;
ball._rotation = random(90);
if (ballXpos[screen] > -1000) {
ball._x = ballXpos[screen];
ball._y = ballYpos[screen];
}
ballMove = false;
track.gotoAndStop(screen);
boards.gotoAndStop(screen);
extras.gotoAndStop(screen);
prevScreen = screen;
} else if (ballMove) {
ball._x = ball._x + ballDX;
ball._y = ball._y + ballDY;
ball._rotation = ball._rotation + ballRot;
edgeHit = this.track.hitTest(_x + ball._x, _y + ball._y, true);
if (!edgeHit) {
trace("hit edge");
ball._x = ball._x - ballDX;
ball._y = ball._y - ballDY;
ballDX = ballDX * -0.6;
ballDY = ballDY * -0.6;
}
ballDX = ballDX * 0.9;
ballDY = ballDY * 0.9;
ballRot = ballRot * 0.9;
}
roller._x = roller._x + rollerDX;
roller._y = roller._y + rollerDY;
if (rollerBounce) {
if (((_x + roller._x) > 650) || ((_x + roller._x) < -50)) {
rollerDX = rollerDX * -1;
}
if (((_y + roller._y) > 550) || ((_y + roller._y) < -50)) {
rollerDY = rollerDY * -1;
}
}
}
Frame 30
stopAllSounds();
gameOn = false;
stop();
Frame 35
stopAllSounds();
gameOn = false;
stop();
Instance of Symbol 425 MovieClip "comHighscores" in Frame 35
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.scoreTime";
gamename = "skidoott";
saveScore = true;
scoreIsTime = true;
scoreReversed = true;
}
Frame 40
stopAllSounds();
gameOn = false;
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 23 Button
on (release) {
_parent._parent._parent.mute = true;
stopAllSounds();
nextFrame();
}
Symbol 25 Button
on (release) {
_parent._parent._parent.mute = false;
_parent._parent._parent.startSounds();
prevFrame();
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip "mute" in Symbol 27 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._parent.mute) {
this.nextFrame();
}
}
Symbol 30 Button
on (release) {
nextFrame();
}
Symbol 36 Button
on (release) {
nextFrame();
}
Symbol 39 Button
on (release) {
gotoAndStop (1);
}
Symbol 43 Button
on (release) {
prevFrame();
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 72 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 87 Button
on (press, keyPress "p") {
if (_parent.gameOn) {
_parent.gameOn = false;
} else {
_parent.gameOn = true;
}
}
Symbol 90 Button
on (press, keyPress "f") {
if (_parent.fxOn) {
_parent.fxOn = false;
} else {
_parent.fxOn = true;
}
}
Symbol 100 MovieClip Frame 1
function calcTime(xTime) {
secs = Math.floor(xTime / 1000);
mins = Math.floor(secs / 60);
if (mins > 0) {
secs = secs - (mins * 60);
}
if (mins < 10) {
timeTemp = "0" + mins;
} else {
timeTemp = mins;
}
timeTemp = timeTemp + ":";
if (secs < 10) {
timeTemp = timeTemp + "0";
}
timeTemp = timeTemp + (secs + ":");
if (mins < 1) {
millis = Math.floor((xTime - (secs * 1000)) / 10);
} else {
millis = Math.floor((xTime - ((secs * 1000) + (mins * 60000))) / 10);
}
if (millis < 10) {
timeTemp = timeTemp + "0";
}
timeTemp = timeTemp + millis;
return(timeTemp);
}
stop();
Symbol 100 MovieClip Frame 20
time = calcTime(0);
_parent.newGame();
stop();
Symbol 100 MovieClip Frame 40
if (_parent.gameMode == "TT") {
timeInfo = "";
time1 = "";
time2 = "";
time3 = "";
_parent.scoreTime = startTime;
_parent.gotoAndStop("gameOverTT");
} else {
this["time" + _parent.courseNum] = time;
_parent.scoreTime = _parent.scoreTime + startTime;
time = calcTime(_parent.scoreTime);
if (_parent.courseNum == 3) {
_parent.gotoAndStop("gameOverArcade");
} else {
time3 = "--:--:--";
if (_parent.courseNum == 1) {
time2 = "--:--:--";
}
_parent.gotoAndStop("courseOver");
}
}
stop();
Symbol 100 MovieClip Frame 41
gotoAndPlay (2);
Symbol 102 Button
on (release) {
gameMode = "TT";
gotoAndStop ("tt");
}
Symbol 104 Button
on (release) {
courseNum = 1;
gameMode = "ARCADE";
ol.play();
gotoAndStop ("course1");
}
Symbol 109 Button
on (release) {
_parent.fxOn = false;
nextFrame();
}
on (rollOver) {
info.gotoAndStop(3);
}
on (rollOut) {
info.gotoAndStop(1);
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 114 Button
on (release) {
_parent.fxOn = true;
prevFrame();
}
on (rollOver) {
info.gotoAndStop(2);
}
on (rollOut) {
info.gotoAndStop(1);
}
Symbol 115 MovieClip Frame 1
if (!_parent.fxOn) {
nextFrame();
}
stop();
Symbol 117 Button
on (release) {
courseNum = 2;
ol.play();
gotoAndStop ("course2");
}
Symbol 119 Button
on (release) {
courseNum = 1;
ol.play();
gotoAndStop ("course1");
}
Symbol 121 Button
on (release) {
courseNum = 3;
ol.play();
gotoAndStop ("course3");
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Instance of Symbol 129 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (load) {
tNum = 300;
i = 1;
while (i <= tNum) {
duplicateMovieClip ("t", "t" + i, i);
this["t" + i]._x = -1000;
i++;
}
i = 0;
t._visible = false;
screen = 1;
}
onClipEvent (enterFrame) {
if (_parent._parent.screen != screen) {
i = 1;
while (i <= tNum) {
this["t" + i]._x = -1000;
i++;
}
i = 0;
}
if (((_parent._parent.fxOn && (_parent._parent.skidoo.control)) && (_parent._parent.skidoo.speed > 3)) && (!_parent._parent.skidoo.jumping)) {
if (i < tNum) {
i++;
} else {
i = 1;
}
this["t" + i]._x = _parent._parent.skidoo._x;
this["t" + i]._y = _parent._parent.skidoo._y;
this["t" + i]._rotation = _parent._parent.skidoo.rot;
}
screen = _parent._parent.screen;
}
Symbol 252 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "t" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
function reset() {
rot = _parent._parent.skidoo.rotRads;
_rotation = _parent._parent.skidoo.rot;
rot = rot * (1.3 - (random(11) * 0.06));
xOff = Math.sin(rot) * 30;
yOff = Math.cos(rot) * 30;
_x = (_parent._parent.skidoo._x - xOff);
_y = (_parent._parent.skidoo._y + yOff);
_xscale = (100 * (1.5 - (random(11) * 0.075)));
_yscale = (100 * (1.5 - (random(11) * 0.075)));
dx = _parent._parent.skidoo.dx * 0.5;
dy = _parent._parent.skidoo.dy * 0.5;
dx = dx * (1.5 - (random(11) * 0.075));
dy = dy * (1.5 - (random(11) * 0.075));
count = 10;
}
_x = -1000;
count = 0;
}
onClipEvent (enterFrame) {
if (count > 0) {
count--;
_x = (_x - dx);
_y = (_y + dy);
} else if (_x > -500) {
_x = -1000;
}
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 336 Button
on (keyPress "<Space>") {
if (_parent.bulletsNum > 0) {
i++;
_parent.bulletsNum--;
_parent.ol.bullets.nextFrame();
duplicateMovieClip ("b", "b" + i, i);
if (!_parent.mute) {
sfxShoot.start();
}
} else if (!_parent.mute) {
sfxEmpty.start();
}
}
Symbol 337 MovieClip Frame 1
i = 0;
b._visible = false;
sfxShoot = new Sound(this);
sfxShoot.attachSound("sfxShoot.WAV");
sfxEmpty = new Sound(this);
sfxEmpty.attachSound("sfxEmpty.WAV");
sfxHit = new Sound(this);
sfxHit.attachSound("sfxHit.WAV");
stop();
Instance of Symbol 335 MovieClip "b" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
if (_name != "b") {
dir = _parent._parent.skidoo.rotRads;
dx = Math.sin(dir) * 10;
dy = Math.cos(dir) * 10;
_x = (_parent._parent.skidoo._x + (dx * 3));
_y = (_parent._parent.skidoo._y - (dy * 3));
}
}
onClipEvent (enterFrame) {
if (_name != "b") {
_x = (_x + dx);
_y = (_y - dy);
ball = eval ("_parent._parent.bg.ball" + _parent._parent.screen);
hitball = ball.hitTest(_x, _y, true);
if (hitball) {
if (!_parent._parent.mute) {
_parent.sfxHit.start();
}
_parent._parent.bg.moveBall(_x, _y, 20);
this.removeMovieClip();
}
hitroller = _parent._parent.bg.roller.hitTest(_x, _y, true);
if (hitroller) {
if (!_parent._parent.mute) {
_parent.sfxHit.start();
}
_parent._parent.bg.hitRoller(dx, dy);
this.removeMovieClip();
}
if ((((_x < 0) || (_x > 600)) || (_y < 0)) || (_y > 500)) {
this.removeMovieClip();
}
}
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Instance of Symbol 129 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (load) {
tNum = 300;
i = 1;
while (i <= tNum) {
duplicateMovieClip ("t", "t" + i, i);
this["t" + i]._x = -1000;
i++;
}
i = 0;
t._visible = false;
screen = 1;
}
onClipEvent (enterFrame) {
if (_parent._parent.screen != screen) {
i = 1;
while (i <= tNum) {
this["t" + i]._x = -1000;
i++;
}
i = 0;
}
if (((_parent._parent.fxOn && (_parent._parent.skidoo.control)) && (_parent._parent.skidoo.speed > 3)) && (!_parent._parent.skidoo.jumping)) {
if (i < tNum) {
i++;
} else {
i = 1;
}
this["t" + i]._x = _parent._parent.skidoo._x;
this["t" + i]._y = _parent._parent.skidoo._y;
this["t" + i]._rotation = _parent._parent.skidoo.rot;
}
screen = _parent._parent.screen;
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Instance of Symbol 129 MovieClip in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
tNum = 300;
i = 1;
while (i <= tNum) {
duplicateMovieClip ("t", "t" + i, i);
this["t" + i]._x = -1000;
i++;
}
i = 0;
t._visible = false;
screen = 1;
}
onClipEvent (enterFrame) {
if (_parent._parent.screen != screen) {
i = 1;
while (i <= tNum) {
this["t" + i]._x = -1000;
i++;
}
i = 0;
}
if (((_parent._parent.fxOn && (_parent._parent.skidoo.control)) && (_parent._parent.skidoo.speed > 3)) && (!_parent._parent.skidoo.jumping)) {
if (i < tNum) {
i++;
} else {
i = 1;
}
this["t" + i]._x = _parent._parent.skidoo._x;
this["t" + i]._y = _parent._parent.skidoo._y;
this["t" + i]._rotation = _parent._parent.skidoo.rot;
}
screen = _parent._parent.screen;
}
Symbol 394 Button
on (release) {
ol.play();
courseNum++;
gotoAndStop("course" + courseNum);
}
Symbol 396 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 405 MovieClip Frame 1
this._visible = false;
Symbol 420 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 405 MovieClip "mcHighscores" in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 425 MovieClip Frame 2
if (((_url.slice(0, 23) != "http://www.miniclip.com") and (_url.slice(0, 19) != "http://miniclip.com")) and (_url.slice(0, 20) != "http://66.132.254.49")) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
this.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
stop();
}
Symbol 425 MovieClip Frame 3
stop();