Frame 1
Stage.showMenu = false;
reSoundP = true;
mute = false;
highScore = 0;
f = 0;
f2 = 0;
f3 = 0;
f4 = 0;
f5 = 0;
f6 = 0;
f7 = 0;
stop();
xspeedC = 0;
m1 = _xmouse;
mX = _xmouse;
this.onEnterFrame = function () {
mX = _xmouse;
if (((mX - m1) / 10) > 0) {
xspeedC = xspeedC + ((mX - m1) / 30);
}
if (((mX - m1) / 10) < 0) {
xspeedC = xspeedC + ((mX - m1) / 30);
}
if (xspeedC > 20) {
xspeedC = 20;
}
if (xspeedC < -20) {
xspeedC = -20;
}
m1 = mX;
};
Stage.showMenu = false;
Frame 2
function moveAll(object) {
object._x = object._x + xspeed;
object._y = object._y + yspeed;
}
function zoomAny(thing) {
thing._xscale = zoomVar;
thing._yscale = zoomVar;
}
function hitSnow() {
var _local2 = 0;
while (_local2 < 5) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.attachMovie("snow", "snow" + snowN, 0);
_root["snow" + snowN].yspeed = _root.playerS.yspeed - random(3);
_root["snow" + snowN].xspeed = (_root.playerS.xspeed - 3) + random(7);
_root["snow" + snowN]._y = ((_root.playerS._height / 3) - 2) + random(4);
_root["snow" + snowN]._x = (_root.playerS - 3) + random(7);
var _local3 = 50 + random(51);
_root["snow" + snowN]._yscale = _local3;
_root["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function snowSpinLeft() {
var _local2 = 0;
while (_local2 < 3) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.startScreen.attachMovie("snow", "snow" + snowN, 6501 + snowN);
_root.startScreen["snow" + snowN].yspeed = (_root.startScreen.playerS.yspeed + 1) + random(5);
_root.startScreen["snow" + snowN].xspeed = (_root.startScreen.playerS.xspeed - 1) - random(7);
_root.startScreen["snow" + snowN]._y = (_root.startScreen.playerS._y - (_root.startScreen.playerS._height / 3)) + random(5);
_root.startScreen["snow" + snowN]._x = (_root.startScreen.playerS._x + (_root.startScreen.playerS.board._width / 2)) + random(4);
var _local3 = 30 + random(30);
_root.startScreen["snow" + snowN]._yscale = _local3;
_root.startScreen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function snowSpinRight() {
var _local2 = 0;
while (_local2 < 3) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.startScreen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.startScreen["snow" + snowN].yspeed = (_root.startScreen.playerS.yspeed + 1) + random(5);
_root.startScreen["snow" + snowN].xspeed = (_root.startScreen.playerS.xspeed + 1) + random(7);
_root.startScreen["snow" + snowN]._y = (_root.startScreen.playerS._y - (_root.startScreen.playerS._height / 3)) + random(5);
_root.startScreen["snow" + snowN]._x = (_root.startScreen.playerS._x - (_root.startScreen.playerS.board._width / 2)) - random(4);
var _local3 = 30 + random(30);
_root.startScreen["snow" + snowN]._yscale = _local3;
_root.startScreen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function setObject(screen, object, objectN, objectMax, xtra) {
screen.attachMovie(object, object + objectN, screen.getNextHighestDepth());
var _local13 = random(2);
if (_local13 == 0) {
var _local14 = -1;
}
if (_local13 == 1) {
var _local14 = 1;
}
screen[object + objectN]._x = _local14 * random(1000 + (speedLevel * 600));
screen[object + objectN]._y = 400 + (speedLevel * 500);
var _local5 = 0;
while (_local5 < 60) {
var _local12 = Math.abs(screen[object + objectN]._x);
var _local9 = Math.abs(screen[object + objectN]._y);
var _local10 = Math.abs(screen["tree" + _local5]._x);
var _local7 = Math.abs(screen["tree" + _local5]._y);
if (((_local5 != objectN) && (Math.abs(_local12 - _local10) < (100 + xtra))) && (Math.abs(_local9 - _local7) < (100 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local5 = 0;
}
_local5++;
}
var _local4 = 0;
while (_local4 < 20) {
var _local12 = Math.abs(screen[object + objectN]._x);
var _local9 = Math.abs(screen[object + objectN]._y);
var _local11 = Math.abs(screen["sRamp" + _local4]._x);
var _local8 = Math.abs(screen["sRamp" + _local4]._y);
if (((_local4 != objectN) && (Math.abs(_local12 - _local11) < (100 + xtra))) && (Math.abs(_local9 - _local8) < (100 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local4 = 0;
}
_local4++;
}
}
function points(t, s, s2, s3, s4, s5, s6, s7) {
score = score + s;
score2 = score2 + s2;
score3 = score3 + s3;
score4 = score4 + s4;
score5 = score5 + s5;
score6 = score6 + s6;
score7 = score7 + s7;
treeG++;
var _local2 = treeG;
_root.attachMovie(t, t + _local2, _root.getNextHighestDepth());
_root[t + _local2]._x = 600;
_root[t + _local2]._y = 300;
jumped++;
}
function seconds(movie) {
treeG++;
var _local2 = treeG;
_root.attachMovie(movie, movie + _local2, _root.getNextHighestDepth());
_root[movie + _local2]._x = 345;
_root[movie + _local2]._y = 55;
_root[movie + _local2]._xscale = 120;
_root[movie + _local2]._yscale = 120;
}
function secondsM(movie) {
treeG++;
var _local2 = treeG;
_root.attachMovie(movie, movie + _local2, _root.getNextHighestDepth());
_root[movie + _local2]._x = 450;
_root[movie + _local2]._y = 25;
_root[movie + _local2]._xscale = 120;
_root[movie + _local2]._yscale = 120;
}
function snowS() {
if (snowN > 150) {
snowN = 0;
}
snowN++;
_root.attachMovie("snowS", "snowS" + snowN, 8000 + snowN);
_root["snowS" + snowN].xspeed = -2 + random(5);
_root["snowS" + snowN].yspeed = (speedLevel * 4) + random(7);
_root["snowS" + snowN]._x = random(801);
_root["snowS" + snowN]._y = 650;
var _local2 = 20 + random(30);
_root["snowS" + snowN]._xscale = _local2;
_root["snowS" + snowN]._yscale = _local2;
}
zoomVar = 100;
skiColor = 1;
headN = 2;
bodyN = 1;
trailC = 0;
trailN = 0;
treeG = 0;
trailDepth = 1000;
gate = 0;
jumped = 0;
snowN = 1;
score = 0;
score2 = 0;
score3 = 0;
score4 = 0;
score5 = 0;
score6 = 0;
score7 = 0;
timeT = 20;
timeTimer = 0;
timeTimer2 = 9;
timeTimer3 = 0;
speedLevel = 1;
ppause = false;
gameOver = false;
tog = 20;
snowN = 0;
music = 0;
delSnow = true;
rollslalom = false;
rollfree = false;
rollcon = false;
rollcred = false;
fM.stop();
b.stop();
reSound = true;
stop();
this.onEnterFrame = function () {
if ((_root.mute == false) && (_root.reSound == true)) {
reSound = false;
introM = new Sound(_root.musicIntro);
introM.attachSound("intro");
introM.start(0, 99);
}
if (tog > -2) {
tog--;
}
if (ppause == false) {
if (treeG > 20) {
treeG = 0;
}
if ((gate == 5) && (speedLevel < 3)) {
speedLevel = speedLevel + 0.05;
gate = 0;
}
if (timeT < 0) {
timeTimer3--;
timeT = 20;
}
timeT--;
if (timeTimer3 < 0) {
timeTimer3 = 9;
timeTimer2--;
}
if (timeTimer3 > 9) {
timeTimer3 = timeTimer3 - 10;
timeTimer2++;
}
if (timeTimer2 < 0) {
timeTimer2 = 9;
timeTimer--;
}
if (timeTimer2 > 9) {
timeTimer2 = timeTimer2 - 10;
timeTimer++;
}
if (timeTimer < 0) {
}
if (timeTimer > 9) {
timeTimer = 9;
}
score = score + Math.round(Math.abs(yspeed) / 5);
if (score > 9) {
score2++;
score = score - 10;
}
if (score2 > 9) {
score3++;
score2 = score2 - 10;
}
if (score3 > 9) {
score4++;
score3 = score3 - 10;
}
if (score4 > 9) {
score5++;
score4 = score4 - 10;
}
if (score5 > 9) {
score6++;
score5 = score5 - 10;
}
if (score6 > 9) {
score7++;
score6 = score6 - 10;
}
if (trailN > 1) {
trailN = 0;
}
if (trailDepth > 1100) {
trailDepth = 1000;
}
if (trailC > 100) {
trailC = 0;
}
}
};
Frame 3
function moveAll(object) {
object._x = object._x + xspeed;
object._y = object._y + yspeed;
}
function zoomAny(thing) {
thing._xscale = zoomVar;
thing._yscale = zoomVar;
}
function depth(object, y) {
object.swapDepths(((5000 + y) + _root.screen.player._height) + object._y);
}
function hitSnow() {
var _local2 = 0;
while (_local2 < 5) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = _root.screen.player.yspeed - random(3);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed - 3) + random(7);
_root.screen["snow" + snowN]._y = ((_root.screen.player._height / 3) - 2) + random(4);
_root.screen["snow" + snowN]._x = (_root.screen.player - 3) + random(7);
var _local3 = 50 + random(51);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function hitSnowLand() {
var _local2 = 0;
while (_local2 < 10) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = (_root.screen.player.yspeed + 1) + random(5);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed - 3) + random(7);
_root.screen["snow" + snowN]._y = _root.screen.player._y - (_root.screen.player._height / 2);
var _local3 = 50 + random(51);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function snowSpinLeft() {
var _local2 = 0;
while (_local2 < 3) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = (_root.screen.player.yspeed + 1) + random(5);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed - 1) - random(7);
_root.screen["snow" + snowN]._y = (_root.screen.player._y - (_root.screen.player._height / 3)) + random(5);
_root.screen["snow" + snowN]._x = (_root.screen.player._x + (_root.screen.player.board._width / 2)) + random(4);
var _local3 = 30 + random(30);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function snowSpinRight() {
var _local2 = 0;
while (_local2 < 3) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = (_root.screen.player.yspeed + 1) + random(5);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed + 1) + random(7);
_root.screen["snow" + snowN]._y = (_root.screen.player._y - (_root.screen.player._height / 3)) + random(5);
_root.screen["snow" + snowN]._x = (_root.screen.player._x - (_root.screen.player.board._width / 2)) - random(4);
var _local3 = 30 + random(30);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function hitSnowFall() {
var _local2 = 0;
while (_local2 < 1) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snowf", "snowf" + snowN, 6005 + snowN);
_root.screen["snowf" + snowN].yspeed = (_root.screen.player.yspeed + 3) + random(3);
_root.screen["snowf" + snowN].xspeed = (_root.screen.player.xspeed - 5) + random(11);
_root.screen["snowf" + snowN]._y = ((_root.screen.player._height / 2) - 3) + random(7);
_root.screen["snowf" + snowN]._x = -4 + random(9);
var _local3 = 50 + random(30);
_root.screen["snowf" + snowN]._yscale = _local3;
_root.screen["snowf" + snowN]._xscale = _local3;
_local2++;
}
}
function setObject(screen, object, objectN, objectMax, xtra) {
screen.attachMovie(object, object + objectN, screen.getNextHighestDepth());
var _local16 = random(2);
if (_local16 == 0) {
var _local17 = -1;
}
if (_local16 == 1) {
var _local17 = 1;
}
screen[object + objectN]._x = _local17 * random(1000 + (speedLevel * 600));
screen[object + objectN]._y = 400 + (speedLevel * 500);
screen[object + objectN].numbN = objectN;
var _local5 = 0;
while (_local5 < 60) {
var _local14 = Math.abs(screen[object + objectN]._x);
var _local11 = Math.abs(screen[object + objectN]._y);
var _local12 = Math.abs(screen["tree" + _local5]._x);
var _local9 = Math.abs(screen["tree" + _local5]._y);
if (((_local5 != objectN) && (Math.abs(_local14 - _local12) < (100 + xtra))) && (Math.abs(_local11 - _local9) < (100 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local5 = 0;
}
_local5++;
}
var _local4 = 0;
while (_local4 < 20) {
var _local14 = Math.abs(screen[object + objectN]._x);
var _local11 = Math.abs(screen[object + objectN]._y);
var _local13 = Math.abs(screen["sRamp" + _local4]._x);
var _local10 = Math.abs(screen["sRamp" + _local4]._y);
if (((_local4 != objectN) && (Math.abs(_local14 - _local13) < (100 + xtra))) && (Math.abs(_local11 - _local10) < (100 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local4 = 0;
}
_local4++;
}
var _local6 = 0;
while (_local6 <= 5) {
var _local14 = Math.abs(screen[object + objectN]._x);
var _local11 = Math.abs(screen[object + objectN]._y);
var _local8 = Math.abs(screen["slalom" + _local6]._x);
var _local15 = Math.abs(screen["slalom" + _local6]._y);
if ((Math.abs(_local14 - _local8) < (200 + xtra)) && (Math.abs(_local11 - xY) < (200 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local6 = 0;
}
_local6++;
}
}
function points(t, s, s2, s3, s4, s5, s6, s7) {
score = score + s;
score2 = score2 + s2;
score3 = score3 + s3;
score4 = score4 + s4;
score5 = score5 + s5;
score6 = score6 + s6;
score7 = score7 + s7;
treeG++;
var _local2 = treeG;
_root.attachMovie(t, t + _local2, 7000 + _local2);
_root[t + _local2]._x = 600;
_root[t + _local2]._y = 300;
jumped++;
}
function seconds(movie) {
treeG++;
var _local2 = treeG;
_root.attachMovie(movie, movie + _local2, 7000 + _local2);
_root[movie + _local2]._x = 345;
_root[movie + _local2]._y = 55;
_root[movie + _local2]._xscale = 120;
_root[movie + _local2]._yscale = 120;
}
function secondsM(movie) {
treeG++;
var _local2 = treeG;
_root.attachMovie(movie, movie + _local2, 7000 + _local2);
_root[movie + _local2]._x = 450;
_root[movie + _local2]._y = 25;
_root[movie + _local2]._xscale = 120;
_root[movie + _local2]._yscale = 120;
}
function speedPlus() {
treeG++;
var _local2 = treeG;
_root.attachMovie("speedUPP", "speedUPP" + _local2, 7000 + _local2);
_root["speedUPP" + _local2]._x = 300;
_root["speedUPP" + _local2]._y = 200;
}
zoomVar = 100;
skiColor = 1;
headN = 2;
bodyN = 1;
trailC = 0;
trailN = 0;
treeG = 0;
trailDepth = 1000;
gate = 0;
jumped = 0;
snowN = 1;
score = 0;
score2 = 0;
score3 = 0;
score4 = 0;
score5 = 0;
score6 = 0;
score7 = 0;
timeT = 30;
timeTimer = 0;
timeTimer2 = 5;
timeTimer3 = 0;
speedLevel = 1;
ppause = false;
free = false;
treeG = 0;
gameOver = false;
tog = 20;
music = 1;
delSnow = false;
introM.stop();
reSound = true;
vol = 100;
stop();
this.onEnterFrame = function () {
if ((_root.mute == false) && (reSound == true)) {
reSound = false;
fM = new Sound(musicO);
fM.attachSound("techno");
fM.start(0, 100);
}
fM.setVolume(vol);
if (tog > -2) {
tog--;
}
if ((Key.isDown(80) && (tog <= 0)) && (gameOver == false)) {
tog = 20;
if (ppause == false) {
vol = 20;
ppause = true;
_root.attachMovie("pause", "pause", _root.getNextHighestDepth());
_root.pause._x = 404;
_root.pause._y = 300;
} else if (ppause == true) {
vol = 100;
ppause = false;
}
}
if (ppause == false) {
if (treeG > 30) {
treeG = 0;
}
if ((gate == 5) && (speedLevel < 3)) {
if (_root.mute == false) {
u = new Sound(_root.fx3);
u.attachSound("speedUp");
u.start(0, 0);
}
speedPlus();
speedLevel = speedLevel + 0.05;
gate = 0;
}
if (timeT < 0) {
timeTimer3--;
timeT = 22;
}
timeT--;
if (timeTimer3 < 0) {
timeTimer3 = 9;
timeTimer2--;
}
if (timeTimer3 > 9) {
timeTimer3 = timeTimer3 - 10;
timeTimer2++;
}
if (timeTimer2 < 0) {
timeTimer2 = 9;
timeTimer--;
}
if (timeTimer2 > 9) {
timeTimer2 = timeTimer2 - 10;
timeTimer++;
}
if (timeTimer < 0) {
}
if (timeTimer > 9) {
timeTimer = 9;
}
if ((((timeTimer <= 0) && (timeTimer2 <= 0)) && (timeTimer3 <= 0)) && (gameOver == false)) {
ppause = true;
gameOver = true;
_root.attachMovie("gameOver", "gameOver", _root.getNextHighestDepth());
}
score = score + Math.round(Math.abs(yspeed) / 5);
if (score > 9) {
score2++;
score = score - 10;
}
if (score2 > 9) {
score3++;
score2 = score2 - 10;
}
if (score3 > 9) {
score4++;
score3 = score3 - 10;
}
if (score4 > 9) {
score5++;
score4 = score4 - 10;
}
if (score5 > 9) {
score6++;
score5 = score5 - 10;
}
if (score6 > 9) {
score7++;
score6 = score6 - 10;
}
if (trailN > 1) {
trailN = 0;
}
if (trailDepth > 1100) {
trailDepth = 1000;
}
if (trailC > 100) {
trailC = 0;
}
}
};
Frame 4
function moveAll(object) {
object._x = object._x + xspeed;
object._y = object._y + yspeed;
}
function zoomAny(thing) {
thing._xscale = zoomVar;
thing._yscale = zoomVar;
}
function depth(object, y) {
object.swapDepths(((5000 + y) + _root.screen.player._height) + object._y);
}
function hitSnow() {
var _local2 = 0;
while (_local2 < 5) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = _root.screen.player.yspeed - random(3);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed - 3) + random(7);
_root.screen["snow" + snowN]._y = ((_root.screen.player._height / 3) - 2) + random(4);
_root.screen["snow" + snowN]._x = (_root.screen.player - 3) + random(7);
var _local3 = 50 + random(51);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function hitSnowLand() {
var _local2 = 0;
while (_local2 < 10) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = (_root.screen.player.yspeed + 1) + random(5);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed - 3) + random(7);
_root.screen["snow" + snowN]._y = _root.screen.player._y - (_root.screen.player._height / 2);
var _local3 = 50 + random(51);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function snowSpinLeft() {
var _local2 = 0;
while (_local2 < 3) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = (_root.screen.player.yspeed + 1) + random(5);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed - 1) - random(7);
_root.screen["snow" + snowN]._y = (_root.screen.player._y - (_root.screen.player._height / 3)) + random(5);
_root.screen["snow" + snowN]._x = (_root.screen.player._x + (_root.screen.player.board._width / 2)) + random(4);
var _local3 = 30 + random(30);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function snowSpinRight() {
var _local2 = 0;
while (_local2 < 3) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snow", "snow" + snowN, 6005 + snowN);
_root.screen["snow" + snowN].yspeed = (_root.screen.player.yspeed + 1) + random(5);
_root.screen["snow" + snowN].xspeed = (_root.screen.player.xspeed + 1) + random(7);
_root.screen["snow" + snowN]._y = (_root.screen.player._y - (_root.screen.player._height / 3)) + random(5);
_root.screen["snow" + snowN]._x = (_root.screen.player._x - (_root.screen.player.board._width / 2)) - random(4);
var _local3 = 30 + random(30);
_root.screen["snow" + snowN]._yscale = _local3;
_root.screen["snow" + snowN]._xscale = _local3;
_local2++;
}
}
function hitSnowFall() {
var _local2 = 0;
while (_local2 < 1) {
if (snowN > 70) {
snowN = 1;
}
snowN++;
_root.screen.attachMovie("snowf", "snowf" + snowN, 6005 + snowN);
_root.screen["snowf" + snowN].yspeed = (_root.screen.player.yspeed + 3) + random(3);
_root.screen["snowf" + snowN].xspeed = (_root.screen.player.xspeed - 5) + random(11);
_root.screen["snowf" + snowN]._y = ((_root.screen.player._height / 2) - 3) + random(7);
_root.screen["snowf" + snowN]._x = -4 + random(9);
var _local3 = 50 + random(30);
_root.screen["snowf" + snowN]._yscale = _local3;
_root.screen["snowf" + snowN]._xscale = _local3;
_local2++;
}
}
function setObject(screen, object, objectN, objectMax, xtra) {
screen.attachMovie(object, object + objectN, screen.getNextHighestDepth());
var _local13 = random(2);
if (_local13 == 0) {
var _local14 = -1;
}
if (_local13 == 1) {
var _local14 = 1;
}
screen[object + objectN]._x = _local14 * random(1000 + (speedLevel * 600));
screen[object + objectN]._y = 400 + (speedLevel * 500);
screen[object + objectN].numbN = objectN;
var _local5 = 0;
while (_local5 < 60) {
var _local12 = Math.abs(screen[object + objectN]._x);
var _local9 = Math.abs(screen[object + objectN]._y);
var _local10 = Math.abs(screen["tree" + _local5]._x);
var _local7 = Math.abs(screen["tree" + _local5]._y);
if (((_local5 != objectN) && (Math.abs(_local12 - _local10) < (100 + xtra))) && (Math.abs(_local9 - _local7) < (100 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local5 = 0;
}
_local5++;
}
var _local4 = 0;
while (_local4 < 25) {
var _local12 = Math.abs(screen[object + objectN]._x);
var _local9 = Math.abs(screen[object + objectN]._y);
var _local11 = Math.abs(screen["sRamp" + _local4]._x);
var _local8 = Math.abs(screen["sRamp" + _local4]._y);
if (((_local4 != objectN) && (Math.abs(_local12 - _local11) < (100 + xtra))) && (Math.abs(_local9 - _local8) < (100 + xtra))) {
screen[object + objectN]._x = screen[object + objectN]._x + (-500 + random(1001));
screen[object + objectN]._y = screen[object + objectN]._y + (30 + random(100));
_local4 = 0;
}
_local4++;
}
}
function points(t, s, s2, s3, s4, s5, s6, s7) {
score = score + s;
score2 = score2 + s2;
score3 = score3 + s3;
score4 = score4 + s4;
score5 = score5 + s5;
score6 = score6 + s6;
score7 = score7 + s7;
treeG++;
var _local2 = treeG;
_root.attachMovie(t, t + _local2, _root.getNextHighestDepth());
_root[t + _local2]._x = 600;
_root[t + _local2]._y = 300;
jumped++;
}
function seconds(movie) {
treeG++;
var _local2 = treeG;
_root.attachMovie(movie, movie + _local2, _root.getNextHighestDepth());
_root[movie + _local2]._x = 345;
_root[movie + _local2]._y = 55;
_root[movie + _local2]._xscale = 120;
_root[movie + _local2]._yscale = 120;
}
function secondsM(movie) {
treeG++;
var _local2 = treeG;
_root.attachMovie(movie, movie + _local2, _root.getNextHighestDepth());
_root[movie + _local2]._x = 450;
_root[movie + _local2]._y = 25;
_root[movie + _local2]._xscale = 120;
_root[movie + _local2]._yscale = 120;
}
zoomVar = 100;
skiColor = 1;
headN = 2;
bodyN = 1;
trailC = 0;
trailN = 0;
treeG = 0;
trailDepth = 1000;
gate = 0;
jumped = 0;
snowN = 1;
score = 0;
score2 = 0;
score3 = 0;
score4 = 0;
score5 = 0;
score6 = 0;
score7 = 0;
timeT = 20;
speedLevel = 1;
introM.stop();
ppause = false;
tog = 20;
music = 2;
free = true;
delSnow = false;
vol = 80;
reSound = true;
stop();
this.onEnterFrame = function () {
if ((_root.mute == false) && (reSound == true)) {
reSound = false;
fM = new Sound(musicO);
fM.attachSound("free");
fM.start(0, 99);
}
fM.setVolume(vol);
if (tog > -2) {
tog--;
}
if (Key.isDown(80) && (tog <= 0)) {
tog = 20;
if (ppause == false) {
vol = 20;
ppause = true;
_root.attachMovie("pause", "pause", _root.getNextHighestDepth());
_root.pause._x = 404;
_root.pause._y = 300;
} else if (ppause == true) {
vol = 100;
ppause = false;
}
}
if (ppause == false) {
if (treeG > 20) {
treeG = 0;
}
if (trailN > 1) {
trailN = 0;
}
if (trailDepth > 1100) {
trailDepth = 1000;
}
if (trailC > 100) {
trailC = 0;
}
}
};
Symbol 16 MovieClip [skiL] Frame 1
stop();
this.onEnterFrame = function () {
gotoAndStop(_root.skiColor);
};
Symbol 19 MovieClip [body] Frame 1
stop();
this.onEnterFrame = function () {
gotoAndStop(_root.bodyN);
};
Symbol 26 MovieClip [head] Frame 1
stop();
this.onEnterFrame = function () {
gotoAndStop(_root.headN);
};
Symbol 27 MovieClip [player] Frame 1
xspeed = 0;
yspeed = 0;
xMax = 0;
yMax = -9;
rotation = 0;
rotate = 0;
boost = 0;
fall = false;
feet = 0;
feety = 0;
jTimerH = 0;
jTimer = 0;
jump = false;
jTimerOnce = true;
fallOne = false;
sound = true;
pY = 0;
snowN = 1;
spin = 0;
rotationC = 0;
slide = new Sound(_root.soundS);
slide.attachSound("snowslide");
this.onEnterFrame = function () {
if (_root.ppause == true) {
f.stop();
b.setVolume(0);
}
if (_root.ppause == false) {
if ((_root.mute == false) && (_root.reSoundP == true)) {
_root.reSoundP = false;
b = new Sound(_root.fx1);
b.attachSound("snowRide");
b.setVolume(30 - (Math.abs(yspeed) / 2));
b.start(random(5), 200);
}
b.setVolume(30 - (Math.abs(yspeed) / 2));
b.setPan(0);
if ((jump == true) || (fall == true)) {
b.setVolume(0);
}
if (yspeed > -1) {
b.setVolume(0);
}
if ((jump == false) && (this._y > 0)) {
this._y = this._y + (yspeed / 3);
if (Math.abs(this._y) < 0.25) {
this._y = 0;
}
}
if ((jump == false) && (this._y < 0)) {
this._y = this._y - (yspeed / 3);
if (Math.abs(this._y) < 0.25) {
this._y = 0;
}
}
speedLevel = _root.speedLevel;
this.swapDepths(5000);
rotation = this.board._rotation;
if ((jump == true) && (jTimerOnce == true)) {
_root.hitSnow();
if (_root.mute == false) {
j = new Sound(this);
j.attachSound("snowJump");
j.setVolume(70);
j.start(0, 0);
}
jTimer = 2 * Math.abs(yspeed);
jTimerH = jTimer / 2;
jTimerOnce = false;
if (Math.abs(this.board._rotation) < 30) {
yMax = yspeed + (yspeed / 4);
}
}
if (jump == true) {
this.swapDepths(6500);
if (jTimer > jTimerH) {
feety = feety + 0.52;
feet = feet + 5;
} else {
feet = feet - 5;
feety = feety - 1.3;
}
this._y = this._y + feety;
this._xscale = 100 + feet;
this._yscale = 100 + feet;
jTimer--;
if (jTimer <= 0) {
this._xscale = 100;
this._yscale = 100;
jTimer = 0;
jTimerH = 0;
jTimerOnce = true;
feet = 0;
feety = 0;
jump = false;
_root.hitSnowLand();
if (_root.mute == false) {
w = new Sound(this);
w.attachSound("snowLand");
w.setVolume(70);
w.start(0, 0);
}
}
}
if (fall == true) {
if (yspeed == 0) {
f.stop();
f.setVolume(40);
}
if (fallOne == false) {
fallOne = true;
if (_root.mute == false) {
f = new Sound(_root.fx);
f.attachSound("fallSound");
f.setVolume(20 + Math.abs(yspeed));
f.start(random(10), 0);
}
}
this.play();
if ((this._currentframe == 7) && (yspeed != 0)) {
f.setVolume(40 + (2 * Math.abs(yspeed)));
_root.hitSnowFall();
this.stop();
}
if ((rotation >= 0) && (rotation < 90)) {
if ((90 - rotation) <= 10) {
this.board._rotation = this.board._rotation + (90 - rotation);
} else {
this.board._rotation = this.board._rotation + ((90 - rotation) / 3);
}
}
if ((rotation < 0) && (rotation > -90)) {
if ((-90 - rotation) >= -10) {
this.board._rotation = this.board._rotation + (-90 - rotation);
} else {
this.board._rotation = this.board._rotation + ((-90 - rotation) / 3);
}
}
}
if (yspeed > yMax) {
if ((yspeed - (0.5 * speedLevel)) > yMax) {
yspeed = yspeed - (0.5 * speedLevel);
} else {
yspeed = yMax;
}
}
if (yspeed < yMax) {
if ((yspeed + (0.5 * speedLevel)) < yMax) {
yspeed = yspeed + (0.5 * speedLevel);
} else {
yspeed = yMax;
}
}
if (xspeed < xMax) {
if ((xspeed + (1 * speedLevel)) < xMax) {
xspeed = xspeed + (1 * speedLevel);
} else {
xspeed = xMax;
}
}
if (xspeed > xMax) {
if ((xspeed - (1 * speedLevel)) > xMax) {
xspeed = xspeed - (1 * speedLevel);
} else {
xspeed = xMax;
}
}
if (((rotation == 0) && (fall == false)) && (jump == false)) {
yMax = (speedLevel * -15) + boost;
xMax = 0;
}
if ((rotation > 0) && (jump == false)) {
yMax = (-1 * ((speedLevel * 15) - Math.abs(rotation / 10))) + boost;
xMax = Math.abs((speedLevel * rotation) / 4.5);
}
if ((rotation < 0) && (jump == false)) {
yMax = (-1 * ((speedLevel * 15) - Math.abs(rotation / 10))) + boost;
xMax = -1 * Math.abs((speedLevel * rotation) / 4.5);
}
if ((rotation == 90) && (jump == false)) {
rotate = 0;
yMax = 0;
xMax = 0;
}
if ((rotation == -90) && (jump == false)) {
rotate = 0;
yMax = 0;
xMax = 0;
}
if (((Key.isDown(39) == false) && (Key.isDown(37) == false)) && (fall == false)) {
rotate = 0;
}
if ((Key.isDown(39) && (fall == false)) && (Key.isDown(37) == false)) {
if (rotate < (4 * speedLevel)) {
rotate = rotate + (speedLevel * 0.5);
}
if (((this.board._rotation < 0) && (jump == false)) && (rotate >= (3 * speedLevel))) {
b.setVolume(50);
b.setPan(-50);
_root.snowSpinRight();
}
if ((((this.board._rotation - 4) - rotate) >= -90) && (jump == false)) {
this.board._rotation = this.board._rotation - (4 + rotate);
} else if (((this.board._rotation - 4) - rotate) <= -90) {
this.board._rotation = 90;
}
if (jump == true) {
this.board._rotation = this.board._rotation - (4 + rotate);
}
}
if ((Key.isDown(37) && (fall == false)) && (Key.isDown(39) == false)) {
if (rotate > (-4 * speedLevel)) {
rotate = rotate - (speedLevel * 0.5);
}
if (((this.board._rotation > 0) && (jump == false)) && (rotate <= (-3 * speedLevel))) {
b.setVolume(50);
b.setPan(50);
_root.snowSpinLeft();
}
if ((((this.board._rotation + 4) - rotate) <= 90) && (jump == false)) {
this.board._rotation = this.board._rotation + (4 - rotate);
} else if (((this.board._rotation + 4) - rotate) >= 90) {
this.board._rotation = -90;
}
if (jump == true) {
this.board._rotation = this.board._rotation + (4 - rotate);
}
}
if (jump == true) {
if ((this.board._rotation <= 90) && (Key.isDown(37))) {
spin = spin + (4 - rotate);
}
if ((this.board._rotation > -90) && (Key.isDown(39))) {
spin = spin - (4 + rotate);
}
}
if ((jump == false) && (_root.free == false)) {
if ((spin > 140) && (spin < 290)) {
_root.points("sone", 0, 0, 5, 0, 0, 0, 0);
_root.seconds("secs1");
_root.timeTimer3 = _root.timeTimer3 + 1;
}
if ((spin >= 290) && (spin < 470)) {
_root.points("sthree", 0, 0, 0, 1, 0, 0, 0);
_root.seconds("secs2");
_root.timeTimer3 = _root.timeTimer3 + 2;
}
if ((spin >= 470) && (spin < 660)) {
_root.points("sfive", 0, 0, 5, 1, 0, 0, 0);
_root.seconds("secs3");
_root.timeTimer3 = _root.timeTimer3 + 3;
}
if ((spin >= 660) && (spin < 840)) {
_root.points("sseven", 0, 0, 5, 2, 0, 0, 0);
_root.seconds("secs4");
_root.timeTimer3 = _root.timeTimer3 + 4;
}
if ((spin >= 840) && (spin < 1000)) {
_root.points("snine", 0, 0, 0, 5, 0, 0, 0);
_root.seconds("secs5");
_root.timeTimer3 = _root.timeTimer3 + 5;
}
if ((spin >= 1000) && (spin < 1150)) {
_root.points("sten", 0, 0, 5, 7, 0, 0, 0);
_root.seconds("secs5");
_root.timeTimer3 = _root.timeTimer3 + 5;
}
if (spin >= 1150) {
_root.points("sridic", 0, 0, 0, 0, 1, 0, 0);
_root.seconds("secs5");
_root.timeTimer3 = _root.timeTimer3 + 5;
}
if ((spin <= -140) && (spin > -290)) {
_root.points("sone", 0, 0, 5, 0, 0, 0, 0);
_root.seconds("secs1");
_root.timeTimer3 = _root.timeTimer3 + 1;
}
if ((spin <= -290) && (spin > -470)) {
_root.points("sthree", 0, 0, 0, 1, 0, 0, 0);
_root.seconds("secs2");
_root.timeTimer3 = _root.timeTimer3 + 2;
}
if ((spin <= -470) && (spin > -660)) {
_root.points("sfive", 0, 0, 5, 1, 0, 0, 0);
_root.seconds("secs3");
_root.timeTimer3 = _root.timeTimer3 + 3;
}
if ((spin <= -660) && (spin > -840)) {
_root.points("sseven", 0, 0, 5, 2, 0, 0, 0);
_root.seconds("secs4");
_root.timeTimer3 = _root.timeTimer3 + 4;
}
if ((spin <= -840) && (spin > -1000)) {
_root.points("snine", 0, 0, 0, 5, 0, 0, 0);
_root.seconds("secs5");
_root.timeTimer3 = _root.timeTimer3 + 5;
}
if ((spin <= -1000) && (spin > -1150)) {
_root.points("sten", 0, 0, 5, 7, 0, 0, 0);
_root.seconds("secs5");
_root.timeTimer3 = _root.timeTimer3 + 5;
}
if (spin <= -1150) {
_root.points("sridic", 0, 0, 0, 0, 1, 0, 0);
_root.seconds("secs5");
_root.timeTimer3 = _root.timeTimer3 + 5;
}
spin = 0;
}
if (((Key.isDown(39) == false) && (Key.isDown(37) == false)) && (fall == false)) {
rotate = 0;
}
_parent.yspeed = yspeed;
_root.zoomVar = 95 + (yspeed * 1.2);
_root.yspeed = yspeed;
_root.xspeed = xspeed;
}
};
this.stop();
Symbol 28 MovieClip [track1] Frame 1
inc = 0;
this.onEnterFrame = function () {
tLx1 = _root.trailLX;
tLy1 = _root.trailLY;
this.lineStyle(2, 11184810);
this.lineTo(tLx1, tLy1 - inc);
yspeed = 1;
inc = inc - yspeed;
this._y = inc;
};
Symbol 30 MovieClip [tailL] Frame 1
this.onEnterFrame = function () {
_root.trailLX = _parent._x + this._x;
_root.trailLY = _parent._y + this._y;
};
Symbol 35 MovieClip [treeHit] Frame 1
timer = 0;
wide = false;
scoreOnce = false;
this.onEnterFrame = function () {
if (((((_root.gameOver == false) && (this._x < 200)) && (this._x > -200)) && (this.hitTest(_root.screen.player.board))) && (_root.screen.player.jump == false)) {
if (timer > 5) {
_root.screen.player.yspeed = -5;
}
timer++;
_root.screen.player.fall = true;
if (scoreOnce == false) {
if (_root.mute == false) {
w = new Sound(_root.fx3);
w.attachSound("fall");
w.start(0, 0);
}
scoreOnce = true;
if (_root.free == false) {
_root.secondsM("secsMinus");
_root.timeTimer3--;
}
}
}
if ((_root.yspeed < -30) && (wide == false)) {
wide = true;
this._width = this._width + 10;
}
if ((_root.yspeed >= -30) && (wide == true)) {
wide = false;
}
};
Symbol 37 MovieClip [treeHit2] Frame 1
jumped = false;
this.onEnterFrame = function () {
if (((((_root.free == false) && (this._x < 200)) && (this._x > -200)) && (_root.screen.player.jump == true)) && (jumped == false)) {
if (this.hitTest(_root.screen.player.body)) {
_root.points("treegap", 0, 0, 0, 1, 0, 0, 0);
_root.seconds("secs1");
_root.timeTimer3 = _root.timeTimer3 + 1;
jumped = true;
}
}
};
Symbol 39 MovieClip [treeHit3] Frame 1
this.onEnterFrame = function () {
if (_root.ppause == false) {
if ((this.hitTest(_root.screen.player.board) && (_root.screen.player.yspeed < -1)) && (_root.screen.player.jump == false)) {
_root.hitSnow();
}
}
};
Symbol 49 MovieClip [rockGap] Frame 1
jumped = false;
this.onEnterFrame = function () {
if ((((this._x < 200) && (this._x > -200)) && (_root.screen.player.jump == true)) && (jumped == false)) {
if (this.hitTest(_root.screen.player.body) && (_root.free == false)) {
_root.points("rockP", 0, 0, 5, 1, 0, 0, 0);
_root.seconds("secs1");
_root.timeTimer3 = _root.timeTimer3 + 1;
jumped = true;
}
}
};
Symbol 51 MovieClip [tree] Frame 1
this.gotoAndStop(1 + random(6));
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.depth(this, 28);
_root.moveAll(this);
if (this._y < (-300 * _root.speedLevel)) {
this.removeMovieClip();
}
}
};
Symbol 52 MovieClip [snowTrail] Frame 1
x = 0;
y = 0;
x1 = 0;
y1 = 0;
timer = 90;
dt = 0;
yChange = 0;
createT = -1;
created = false;
once = true;
drawSnow = true;
speedTest = true;
jumpOnce = false;
this.onEnterFrame = function () {
if (_root.ppause == false) {
if (((created == true) && ((this._y + yChange) < -200)) && (_root.screen.player.jump == false)) {
this.removeMovieClip();
}
_root.moveAll(this);
dt2 = dt;
if ((createT > 0) && (_root.screen.player.jump == false)) {
createT--;
}
if (createT != 0) {
if ((_parent.player.jump == false) && (_parent.player.yspeed != 0)) {
timer--;
jumpOnce = false;
if (dt > -1) {
dt--;
}
}
if ((_parent.player.yspeed != 0) || (_parent.player.xspeed != 0)) {
speedTest = true;
}
if ((_parent.player.yspeed == 0) && (_parent.player.xspeed == 0)) {
speedTest = false;
drawSnow = false;
}
if (_parent.player.jump == true) {
drawSnow = false;
if (jumpOnce == false) {
timer = timer + 20;
jumpOnce = true;
}
if (_parent.player.jump == true) {
dt = 1;
}
}
if ((dt <= 0) && (speedTest == true)) {
drawSnow = true;
}
this.lineStyle(3, 12501701, 100);
playerB = _parent.player.board;
player = _parent.player;
width = playerB._width / 4;
height = ((playerB._rotation / 90) * playerB._height) / 8;
if (height == 0) {
height = 0;
}
yChange = yChange + (((player._y - this._y) + height) - y);
this.moveTo(x1, y1);
this.lineStyle(0, 0, 0);
if (drawSnow == true) {
this.beginFill(15395562, 100);
this.lineTo(x, y);
this.lineTo((-width) - this._x, (player._y - this._y) + height);
this.lineTo(width - this._x, (player._y - this._y) - height);
this.lineTo(x1, y1);
this.endFill();
this.moveTo(x, y);
this.lineStyle(3, 12501701, 100);
this.lineTo((-width) - this._x, (player._y - this._y) + height);
}
x = (-width) - this._x;
y = (player._y - this._y) + height;
if (drawSnow == true) {
this.moveTo(x1, y1);
this.lineTo(width - this._x, (player._y - this._y) - height);
}
x1 = width - this._x;
y1 = (player._y - this._y) - height;
h1 = height;
this.moveTo(x, y);
if ((timer <= 0) && (once == true)) {
once = false;
_root.trailN++;
n = _root.trailN;
_parent.attachMovie("snowTrail", "snowTrail" + n, this.getDepth() - 1);
_parent["snowTrail" + n].x = x;
_parent["snowTrail" + n].x1 = x1;
_parent["snowTrail" + n].y = y;
_parent["snowTrail" + n].y1 = y1;
_parent["snowTrail" + n].dt = dt;
_parent["snowTrail" + n].dt2 = dt2;
_parent["snowTrail" + n].moveTo(x, y);
created = true;
createT = 3;
}
}
}
};
Symbol 54 MovieClip [rampHit] Frame 1
var hit = false;
this.onEnterFrame = function () {
if (((hit == false) && (this.hitTest(_root.screen.player))) && (_root.screen.player.fall == false)) {
_root.screen.player.jump = true;
hit = true;
}
};
Symbol 55 MovieClip [sRamp] Frame 1
this.swapDepths(3000 + numbN);
this.gotoAndStop(1 + random(1));
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.moveAll(this);
if (this._y < -400) {
this.removeMovieClip();
}
}
};
Symbol 57 MovieClip [slalomHit] Frame 1
var hit = false;
wide = false;
this.onEnterFrame = function () {
if ((_root.yspeed < -33) && (wide == false)) {
wide = true;
this._height = this._height + 10;
}
if ((_root.yspeed >= -32) && (wide == true)) {
wide = false;
this._height = this._height - 10;
}
if (((hit == false) && (this.hitTest(_root.screen.player.body))) && (_root.gameOver == false)) {
if (_root.mute == false) {
t = new Sound(_root.fx3);
t.attachSound("gateHit");
t.start(0, 0);
}
_root.gate++;
_root.timeTimer3 = _root.timeTimer3 + 5;
_root.seconds("secs5");
hit = true;
if (_root.screen.player.jump == true) {
_root.points("slalomAP", 0, 0, 5, 2, 0, 0, 0);
}
if (_root.screen.player.jump == false) {
_root.points("slalomP", 0, 0, 5, 0, 0, 0, 0);
}
}
};
Symbol 58 MovieClip [slalom] Frame 1
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.depth(this, -5);
_root.moveAll(this);
if (this._y <= (-300 * _root.speedLevel)) {
this.removeMovieClip();
}
}
};
Symbol 61 MovieClip [snow] Frame 1
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.moveAll(this);
this._y = this._y - yspeed;
this._x = this._x - xspeed;
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
if (yspeed < 0) {
yspeed = yspeed + 0.5;
if (yspeed > -1) {
yspeed = 0;
}
}
if (xspeed > 0) {
xspeed = xspeed - 0.75;
if (xspeed < 1) {
xspeed = 0;
}
}
if (xspeed < 0) {
xspeed = xspeed + 0.75;
if (xspeed > -1) {
xspeed = 0;
}
}
if ((yspeed == 0) || (this._yscale < 0)) {
this.removeMovieClip();
}
}
};
Symbol 62 MovieClip [snowf] Frame 1
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.moveAll(this);
this._y = this._y - yspeed;
this._x = this._x - xspeed;
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
yspeed = yspeed - 0.1;
if (xspeed > 0) {
xspeed = xspeed - 0.75;
if (xspeed < 1) {
xspeed = 0;
}
}
if (xspeed < 0) {
xspeed = xspeed + 0.75;
if (xspeed > -1) {
xspeed = 0;
}
}
if ((yspeed == 0) || (this._yscale < 0)) {
this.removeMovieClip();
}
}
};
Symbol 82 MovieClip [treegap] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 82 MovieClip [treegap] Frame 33
this.removeMovieClip();
Symbol 101 MovieClip [slalomP] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 101 MovieClip [slalomP] Frame 33
this.removeMovieClip();
Symbol 111 MovieClip [slalomAP] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 111 MovieClip [slalomAP] Frame 33
this.removeMovieClip();
Symbol 121 MovieClip [rockP] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 121 MovieClip [rockP] Frame 33
this.removeMovieClip();
Symbol 152 MovieClip [sone] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 152 MovieClip [sone] Frame 33
this.removeMovieClip();
Symbol 171 MovieClip [sthree] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 171 MovieClip [sthree] Frame 33
this.removeMovieClip();
Symbol 190 MovieClip [sfive] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 190 MovieClip [sfive] Frame 33
this.removeMovieClip();
Symbol 209 MovieClip [sseven] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 209 MovieClip [sseven] Frame 33
this.removeMovieClip();
Symbol 228 MovieClip [snine] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 228 MovieClip [snine] Frame 33
this.removeMovieClip();
Symbol 247 MovieClip [sten] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 247 MovieClip [sten] Frame 33
this.removeMovieClip();
Symbol 266 MovieClip [sridic] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 266 MovieClip [sridic] Frame 33
this.removeMovieClip();
Symbol 285 MovieClip [secs1] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 285 MovieClip [secs1] Frame 22
this.removeMovieClip();
Symbol 295 MovieClip [secs2] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 295 MovieClip [secs2] Frame 22
this.removeMovieClip();
Symbol 305 MovieClip [secs5] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 305 MovieClip [secs5] Frame 23
this.removeMovieClip();
Symbol 315 MovieClip [secs3] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 315 MovieClip [secs3] Frame 23
this.onEnterFrame();
Symbol 325 MovieClip [secs4] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 325 MovieClip [secs4] Frame 23
this.removeMovieClip();
Symbol 344 MovieClip [secsMinus] Frame 1
this.onEnterFrame = function () {
this._y = this._y + 2;
};
Symbol 344 MovieClip [secsMinus] Frame 23
this.removeMovieClip();
Symbol 356 MovieClip [snowTrailScreen] Frame 1
x = 0;
y = 0;
x1 = 0;
y1 = 0;
timer = 90;
dt = 0;
yChange = 0;
createT = -1;
created = false;
once = true;
drawSnow = true;
speedTest = true;
jumpOnce = false;
this.onEnterFrame = function () {
if (((created == true) && ((this._y + yChange) < -500)) && (_root.startScreen.playerS.jump == false)) {
this.removeMovieClip();
}
_root.moveAll(this);
dt2 = dt;
if ((createT > 0) && (_root.startScreen.playerS.jump == false)) {
createT--;
}
if (createT != 0) {
if ((_root.startScreen.playerS.jump == false) && (_root.startScreen.playerS.yspeed != 0)) {
timer--;
jumpOnce = false;
if (dt > -1) {
dt--;
}
}
if ((_root.startScreen.playerS.yspeed != 0) || (_root.startScreen.playerS.xspeed != 0)) {
speedTest = true;
}
if ((_root.startScreen.playerS.yspeed == 0) && (_root.startScreen.playerS.xspeed == 0)) {
speedTest = false;
drawSnow = false;
}
if ((dt <= 0) && (speedTest == true)) {
drawSnow = true;
}
this.lineStyle(3, 12501701, 100);
playerB = _root.startScreen.playerS.board;
player = _root.startScreen.playerS;
width = playerB._width / 4;
height = ((playerB._rotation / 90) * playerB._height) / 8;
if (height == 0) {
height = 0;
}
yChange = yChange + (((-this._y) + height) - y);
this.moveTo(x1, y1);
this.lineStyle(0, 0, 0);
if (drawSnow == true) {
this.beginFill(15395562, 100);
this.lineTo(x, y);
this.lineTo((-width) - this._x, (-this._y) + height);
this.lineTo(width - this._x, (-this._y) - height);
this.lineTo(x1, y1);
this.endFill();
this.moveTo(x, y);
this.lineStyle(3, 12501701, 100);
this.lineTo((-width) - this._x, (-this._y) + height);
}
x = (-width) - this._x;
y = (-this._y) + height;
if (drawSnow == true) {
this.moveTo(x1, y1);
this.lineTo(width - this._x, (-this._y) - height);
}
x1 = width - this._x;
y1 = (-this._y) - height;
h1 = height;
this.moveTo(x, y);
if ((timer <= 0) && (once == true)) {
once = false;
_root.trailN++;
n = _root.trailN;
_parent.attachMovie("snowTrailScreen", "snowTrailScreen" + n, this.getDepth() - 1);
_parent["snowTrailScreen" + n].x = x;
_parent["snowTrailScreen" + n].x1 = x1;
_parent["snowTrailScreen" + n].y = y;
_parent["snowTrailScreen" + n].y1 = y1;
_parent["snowTrailScreen" + n].dt = dt;
_parent["snowTrailScreen" + n].dt2 = dt2;
_parent["snowTrailScreen" + n].moveTo(x, y);
created = true;
createT = 3;
}
}
};
Symbol 361 Button [treeUp]
on (release) {
if (_root.screen.time > 0) {
_root.screen.time--;
}
}
Symbol 363 Button [treeDown]
on (release) {
if (_root.screen.time < 40) {
_root.screen.time++;
}
}
Symbol 372 Button [rampUp]
on (release) {
if (_root.screen.rTime > 0) {
_root.screen.rTimer--;
}
}
Symbol 373 Button [rampDown]
on (release) {
if (_root.screen.rTime < 60) {
_root.screen.rTimer++;
}
}
Symbol 384 Button [Menu]
on (release) {
_root.gotoAndStop(2);
}
Symbol 401 MovieClip [pause] Frame 1
stop();
this.onEnterFrame = function () {
if ((_root.ppause == true) && (this._currentframe < 20)) {
this.nextFrame();
}
if ((_root.ppause == false) && (this._currentframe > 0)) {
this.prevFrame();
}
if (((_root.ppause == false) && (this._currentframe == 1)) || (_root.gameOver == true)) {
this.removeMovieClip();
}
};
Symbol 417 MovieClip [info-credits] Frame 1
stop();
this.onEnterFrame = function () {
if ((_root.rollcred == true) && (this._currentframe < 11)) {
this.nextFrame();
}
if ((_root.rollcred == false) && (this._currentframe > 0)) {
this.prevFrame();
}
};
Symbol 423 MovieClip [snowS] Frame 1
timer = random(300);
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.moveAll(this);
timer--;
this._y = this._y - yspeed;
this._x = this._x - xspeed;
if (timer <= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if ((((yspeed == 0) || (this._yscale < 0)) || (this._y < -100)) || (_root.delSnow == true)) {
this.removeMovieClip();
}
}
};
Symbol 430 Button [mainMenu]
on (release) {
_root.gotoAndStop(2);
}
Symbol 446 MovieClip [liner] Frame 16
stop();
Symbol 460 MovieClip [numbers] Frame 1
stop();
n = 0;
this.onEnterFrame = function () {
this.gotoAndStop(n + 1);
};
Symbol 461 MovieClip [gameOver] Frame 1
this._x = 400;
this._y = 315;
Symbol 461 MovieClip [gameOver] Frame 14
this._x = 400;
this._y = 315;
s1 = _root.score;
s2 = _root.score2;
s3 = _root.score3;
s4 = _root.score4;
s5 = _root.score5;
s6 = _root.score6;
s7 = _root.score7;
r1 = 0;
r2 = 0;
r3 = 0;
r4 = 0;
r5 = 0;
r6 = 0;
r7 = 0;
timer = 15;
totalScore = 0;
stop();
this.onEnterFrame = function () {
if (_root._currentFrame == 2) {
this.removeMovieClip();
}
timer--;
if ((r1 != s1) && (timer <= 0)) {
r1++;
}
if ((r1 == s1) && (r2 != s2)) {
r2++;
}
if ((r2 == s2) && (r3 != s3)) {
r3++;
}
if ((r3 == s3) && (r4 != s4)) {
r4++;
}
if ((r4 == s4) && (r5 != s5)) {
r5++;
}
if ((r5 == s5) && (r6 != s6)) {
r6++;
}
if ((r6 == s6) && (r7 != s7)) {
r7++;
}
var _local3 = (((((r1 + (r2 * 10)) + (r3 * 100)) + (r4 * 1000)) + (r5 * 10000)) + (r6 * 100000)) + (r7 * 1000000);
this.score.n = r1;
this.score2.n = r2;
this.score3.n = r3;
this.score4.n = r4;
this.score5.n = r5;
this.score6.n = r6;
this.score7.n = r7;
totalScore = _local3;
this.f.n = _root.f;
this.f2.n = _root.f2;
this.f3.n = _root.f3;
this.f4.n = _root.f4;
this.f5.n = _root.f5;
this.f6.n = _root.f6;
this.f7.n = _root.f7;
if (totalScore > _root.highScore) {
_root.highScore = totalScore;
_root.f = r1;
_root.f2 = r2;
_root.f3 = r3;
_root.f4 = r4;
_root.f5 = r5;
_root.f6 = r6;
_root.f7 = r7;
}
};
Symbol 476 MovieClip [speedUPP] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
};
Symbol 476 MovieClip [speedUPP] Frame 41
this.removeMovieClip();
Symbol 478 MovieClip [snowO] Frame 1
xspeed = 4 + random(4);
yspeed = 5 + random(5);
this._yscale = 60 + (yspeed * 2);
this._xscale = 60 + (yspeed * 2);
this.onEnterFrame = function () {
xspeed = xspeed + _root.xspeedC;
if (xspeed > 25) {
xspeed = 25;
}
if (xspeed < -25) {
xspeed = -25;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if ((this._y > 400) || (this._x > 500)) {
this.removeMovieClip();
}
};
Symbol 479 Button [speedSub]
on (press) {
if (((_root.speedLevel > 1) && (_root.screen.player.jump == false)) && (_root.screen.player.fall == false)) {
_root.speedLevel = _root.speedLevel - 0.1;
}
}
Symbol 480 Button [speedInc]
on (press) {
if (((_root.speedLevel < 3) && (_root.screen.player.jump == false)) && (_root.screen.player.fall == false)) {
_root.speedLevel = _root.speedLevel + 0.1;
}
}
Symbol 484 MovieClip [border] Frame 1
this.swapDepths(10000);
Symbol 486 MovieClip [scoreHigh] Frame 1
this.onEnterFrame = function () {
this.ke.n = _root.f;
this.ke2.n = _root.f2;
this.ke3.n = _root.f3;
this.ke4.n = _root.f4;
this.ke5.n = _root.f5;
this.ke6.n = _root.f6;
this.ke7.n = _root.f7;
};
Symbol 487 MovieClip [timer3] Frame 1
this.onEnterFrame = function () {
this.times.n = _root.timeTimer3;
};
Symbol 488 MovieClip [timer2] Frame 1
this.onEnterFrame = function () {
this.times.n = _root.timeTimer2;
};
Symbol 489 MovieClip [timer] Frame 1
this.onEnterFrame = function () {
this.times.n = _root.timeTimer;
};
Symbol 490 MovieClip [score7] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score7;
};
Symbol 491 MovieClip [score6] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score6;
};
Symbol 492 MovieClip [score5] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score5;
};
Symbol 493 MovieClip [score4] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score4;
};
Symbol 494 MovieClip [score3] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score3;
};
Symbol 495 MovieClip [score2] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score2;
};
Symbol 496 MovieClip [score] Frame 1
this.onEnterFrame = function () {
this.score.n = _root.score;
};
Symbol 497 MovieClip [screen] Frame 1
sTimer = 150;
timer = 40;
rtimer = 20;
rtime = 60;
time = 30;
trees = 0;
treeN = 60;
ramps = 0;
rampsN = 25;
create = true;
yspeed = 0;
sN = 0;
this.attachMovie("player", "player", 5000);
this.player._y = 0;
this.player._x = 0;
this.attachMovie("snowTrail", "snowTrail", 1000);
this.onEnterFrame = function () {
if (_root.ppause == false) {
_root.snowS();
_root.zoomAny(this);
if (yspeed != 0) {
sTimer--;
timer--;
rtimer--;
}
if (((yspeed != 0) && (timer <= 0)) && (create == true)) {
timer = 2 + random(time - Math.abs(yspeed));
if (trees > treeN) {
trees = 0;
}
trees++;
_root.setObject(this, "tree", trees, treeN, 0);
}
if (((yspeed != 0) && (rtimer <= 0)) && (create == true)) {
rtimer = 3 + random(rtime - Math.abs(yspeed));
if (ramps > rampsN) {
ramps = 0;
}
ramps++;
_root.setObject(this, "sRamp", ramps, rampsN, 100);
}
if ((((sTimer <= 0) && (create == true)) && (yspeed < -10)) && (_root.free == false)) {
sTimer = 80;
sN++;
if (sN >= 5) {
sN = 0;
}
this.attachMovie("slalom", "slalom" + sN, this.getNextHighestDepth());
this["slalom" + sN]._x = (-400 / _root.speedLevel) + (random(801) / _root.speedLevel);
this["slalom" + sN]._y = 400 + (_root.speedLevel * 500);
var _local4 = 0;
while (_local4 <= 60) {
var _local10 = Math.abs(this["slalom" + sN]._x);
var _local7 = Math.abs(this["slalom" + sN]._y);
var _local8 = Math.abs(this["tree" + _local4]._x);
var _local5 = Math.abs(this["tree" + _local4]._y);
if ((Math.abs(_local10 - _local8) < 200) && (Math.abs(_local7 - _local5) < 200)) {
this["slalom" + sN]._x = this["slalom" + sN]._x + (-300 + random(601));
this["slalom" + sN]._y = this["slalom" + sN]._y + (50 + random(121));
_local4 = 0;
}
_local4++;
}
var _local3 = 0;
while (_local3 <= 20) {
var _local10 = Math.abs(this["slalom" + sN]._x);
var _local7 = Math.abs(this["slalom" + sN]._y);
var _local9 = Math.abs(this["sRamp" + _local3]._x);
var _local6 = Math.abs(this["sRamp" + _local3]._y);
if ((Math.abs(_local10 - _local9) < 150) && (Math.abs(_local7 - _local6) < 100)) {
this["slalom" + sN]._x = this["slalom" + sN]._x + (-300 + random(601));
this["slalom" + sN]._y = this["slalom" + sN]._y + (50 + random(121));
_local3 = 0;
}
_local3++;
}
}
}
};
Symbol 504 MovieClip [info-controls] Frame 1
stop();
this.onEnterFrame = function () {
if ((_root.rollcon == true) && (this._currentframe < 11)) {
this.nextFrame();
}
if ((_root.rollcon == false) && (this._currentframe > 0)) {
this.prevFrame();
}
};
Symbol 505 Button [controls]
on (rollOver) {
_root.rollcon = true;
}
on (rollOut) {
_root.rollcon = false;
}
on (releaseOutside) {
_root.rollcon = false;
}
on (dragOut) {
_root.rollcon = false;
}
Symbol 513 MovieClip [info-free] Frame 1
stop();
this.onEnterFrame = function () {
if ((_root.rollfree == true) && (this._currentframe < 11)) {
this.nextFrame();
}
if ((_root.rollfree == false) && (this._currentframe > 0)) {
this.prevFrame();
}
};
Symbol 514 Button [freeButton]
on (rollOver) {
_root.rollfree = true;
}
on (rollOut) {
_root.rollfree = false;
}
on (releaseOutside) {
_root.rollfree = false;
}
on (dragOut) {
_root.rollfree = false;
}
on (release) {
_root.gotoAndStop(4);
}
Symbol 524 MovieClip [info-slalom] Frame 1
stop();
this.onEnterFrame = function () {
if ((_root.rollslalom == true) && (this._currentframe < 11)) {
this.nextFrame();
}
if ((_root.rollslalom == false) && (this._currentframe > 0)) {
this.prevFrame();
}
};
Symbol 525 Button [slalomButton]
on (rollOver) {
_root.rollslalom = true;
}
on (rollOut) {
_root.rollslalom = false;
}
on (releaseOutside) {
_root.rollslalom = false;
}
on (dragOut) {
_root.rollslalom = false;
}
on (release) {
_root.gotoAndStop(3);
}
Symbol 527 MovieClip [screenBG] Frame 1
this.swapDepths(7000);
Symbol 528 MovieClip [treeS] Frame 1
this.gotoAndStop(1 + random(6));
this.onEnterFrame = function () {
_root.moveAll(this);
if (this._y < (-600 * _root.speedLevel)) {
this._y = 500;
}
if (this._x < -600) {
this._x = 599;
}
if (this._x > 600) {
this._x = -599;
}
};
Symbol 529 MovieClip [playerS] Frame 1
xspeed = 0;
yspeed = 0;
xMax = 0;
yMax = -9;
rotation = 0;
rotate = 0;
boost = 0;
fall = false;
feet = 0;
feety = 0;
jTimerH = 0;
jTimer = 0;
jump = false;
jTimerOnce = true;
pY = 0;
snowN = 1;
spin = 0;
rotationC = 0;
rightTimer = 20;
right = false;
leftTimer = 20;
left = false;
this.onEnterFrame = function () {
if ((jump == false) && (this._y > -160)) {
this._y = this._y + (yspeed / 3);
if (Math.abs(this._y) < 0.25) {
this._y = -160;
}
}
if ((jump == false) && (this._y < -160)) {
this._y = this._y - (yspeed / 3);
if (Math.abs(this._y) < 0.25) {
this._y = -160;
}
}
speedLevel = _root.speedLevel;
rotation = this.board._rotation;
if ((jump == true) && (jTimerOnce == true)) {
_root.hitSnow();
jTimer = 2 * Math.abs(yspeed);
jTimerH = jTimer / 2;
jTimerOnce = false;
if (Math.abs(this.board._rotation) < 30) {
yMax = yspeed + (yspeed / 4);
}
}
if (jump == true) {
this.swapDepths(6000);
if (jTimer > jTimerH) {
feety = feety + 0.52;
feet = feet + 5;
} else {
feet = feet - 5;
feety = feety - 1.3;
}
this._y = this._y + feety;
this._xscale = 100 + feet;
this._yscale = 100 + feet;
jTimer--;
if (jTimer <= 0) {
this._xscale = 100;
this._yscale = 100;
jTimer = 0;
jTimerH = 0;
jTimerOnce = true;
feet = 0;
feety = 0;
jump = false;
_root.hitSnowLand();
}
}
if (fall == true) {
this.play();
if ((this._currentframe == 7) && (yspeed != 0)) {
_root.hitSnowFall();
this.stop();
}
if ((rotation >= 0) && (rotation < 90)) {
if ((90 - rotation) <= 10) {
this.board._rotation = this.board._rotation + (90 - rotation);
} else {
this.board._rotation = this.board._rotation + ((90 - rotation) / 3);
}
}
if ((rotation < 0) && (rotation > -90)) {
if ((-90 - rotation) >= -10) {
this.board._rotation = this.board._rotation + (-90 - rotation);
} else {
this.board._rotation = this.board._rotation + ((-90 - rotation) / 3);
}
}
}
if (yspeed > yMax) {
if ((yspeed - (0.5 * speedLevel)) > yMax) {
yspeed = yspeed - (0.5 * speedLevel);
} else {
yspeed = yMax;
}
}
if (yspeed < yMax) {
if ((yspeed + (0.5 * speedLevel)) < yMax) {
yspeed = yspeed + (0.5 * speedLevel);
} else {
yspeed = yMax;
}
}
if (xspeed < xMax) {
if ((xspeed + (1 * speedLevel)) < xMax) {
xspeed = xspeed + (1 * speedLevel);
} else {
xspeed = xMax;
}
}
if (xspeed > xMax) {
if ((xspeed - (1 * speedLevel)) > xMax) {
xspeed = xspeed - (1 * speedLevel);
} else {
xspeed = xMax;
}
}
if (((rotation == 0) && (fall == false)) && (jump == false)) {
yMax = (speedLevel * -15) + boost;
xMax = 0;
}
if ((rotation > 0) && (jump == false)) {
yMax = (-1 * ((speedLevel * 15) - Math.abs(rotation / 10))) + boost;
xMax = Math.abs((speedLevel * rotation) / 4.5);
}
if ((rotation < 0) && (jump == false)) {
yMax = (-1 * ((speedLevel * 15) - Math.abs(rotation / 10))) + boost;
xMax = -1 * Math.abs((speedLevel * rotation) / 4.5);
}
if ((rotation == 90) && (jump == false)) {
rotate = 0;
yMax = 0;
xMax = 0;
}
if ((rotation == -90) && (jump == false)) {
rotate = 0;
yMax = 0;
xMax = 0;
}
rightTimer--;
if (rightTimer < 0) {
right = true;
rightTimer = 20 + random(30);
left = false;
}
leftTimer--;
if (leftTimer < 0) {
left = true;
leftTimer = 40 + random(30);
right = false;
}
if (((right == true) && (fall == false)) && (left == false)) {
if (rotate < (4 * speedLevel)) {
rotate = rotate + (speedLevel * 0.5);
}
if (((this.board._rotation < 0) && (jump == false)) && (rotate >= (3 * speedLevel))) {
_root.snowSpinRight();
}
if ((((this.board._rotation - 4) - rotate) >= -90) && (jump == false)) {
this.board._rotation = this.board._rotation - (4 + rotate);
} else if (((this.board._rotation - 4) - rotate) <= -90) {
this.board._rotation = 90;
}
if (jump == true) {
this.board._rotation = this.board._rotation - (4 + rotate);
}
}
if (((left == true) && (fall == false)) && (right == false)) {
if (rotate > (-4 * speedLevel)) {
rotate = rotate - (speedLevel * 0.5);
}
if (((this.board._rotation > 0) && (jump == false)) && (rotate <= (-3 * speedLevel))) {
_root.snowSpinLeft();
}
if ((((this.board._rotation + 4) - rotate) <= 90) && (jump == false)) {
this.board._rotation = this.board._rotation + (4 - rotate);
} else if (((this.board._rotation + 4) - rotate) >= 90) {
this.board._rotation = -90;
}
if (jump == true) {
this.board._rotation = this.board._rotation + (4 - rotate);
}
}
_root.yspeed = yspeed;
_root.xspeed = xspeed;
};
this.stop();
Symbol 530 MovieClip [snowTC] Frame 1
this.attachMovie("snowTrailScreen", "snowTrailScreen", this.getNextHighestDepth());
Symbol 540 Button [mute]
on (release) {
if (_root.mute == false) {
_root.mute = true;
stopAllSounds();
} else if (_root.mute == true) {
_root.mute = false;
_root.reSound = true;
_root.reSoundP = true;
}
}
Symbol 541 Button [quality]
on (release) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 557 Button
on (release) {
_parent.startMovie();
this.nextFrame();
}
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 2
stop();
Symbol 559 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.op.nextFrame();
this.gotoAndStop(3);
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 559 MovieClip Frame 2
stop();
Symbol 572 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 575 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 575 MovieClip Frame 204
_root.black.play();
Symbol 575 MovieClip Frame 218
stop();
Symbol 576 MovieClip Frame 1
n = 0;
this.onEnterFrame = function () {
if (n > 400) {
n = 0;
}
n++;
this.attachMovie("snowO", "snowO" + n, this.getNextHighestDepth());
this["snowO" + n]._y = -350;
this["snowO" + n]._x = -900 + random(1900);
n++;
this.attachMovie("snowO", "snowO" + n, this.getNextHighestDepth());
this["snowO" + n]._y = -350;
this["snowO" + n]._x = -900 + random(1900);
};
stop();
Symbol 576 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 52
_root.nextFrame();
Symbol 586 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 590 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}