Frame 1
fscommand ("allowscale", "false");
ifFrameLoaded (35) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 36
stop();
Instance of Symbol 60 MovieClip in Frame 36
onClipEvent (load) {
_parent.gotoAndStop("loader");
}
onClipEvent (enterFrame) {
preload = Math.floor((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100) + "%";
if (preload == "100%") {
_parent.gotoAndStop("splash");
}
}
Frame 37
stop();
Instance of Symbol 80 MovieClip "HiScoreMC" in Frame 37
onClipEvent (load) {
function init() {
GetHiscorePath = "http://www.titoonic.dk/titoonia/asp/GetHighScore_url.asp";
GameID = "snowboard1";
nbScores = 20;
requestData();
}
function Play() {
}
function requestData() {
var postvars = ("?GameID=" + GameID);
postvars = postvars + ("&osteloebe=" + getTimer());
loadVariables (GetHiscorePath + postvars, "");
}
init();
}
onClipEvent (data) {
this.gotoAndStop("showit");
}
Frame 44
this._quality = "LOW";
stop();
score = 0;
Instance of Symbol 175 MovieClip "game" in Frame 44
onClipEvent (keyDown) {
if (ISON) {
if (Key.getCode() == Key.RIGHT) {
} else if (Key.getCode() == Key.LEFT) {
} else if (Key.getCode() == Key.UP) {
} else if (Key.getCode() == Key.DOWN) {
} else if (Key.getCode() == 32) {
char.wpos.y = shade.wpos.y;
char.yvel = -1.4;
}
}
}
onClipEvent (keyUp) {
if (ISON) {
if (Key.getCode() == Key.RIGHT) {
} else if (Key.getCode() == Key.LEFT) {
} else if (Key.getCode() == Key.UP) {
} else if (Key.getCode() == Key.DOWN) {
} else if (Key.getCode() == 32) {
}
}
}
onClipEvent (load) {
function init() {
state = "NORMAL";
MARKERSON = false;
FLAGSON = true;
index = 0;
tex._visible = false;
this.attachMovie("blocker", "horizon", 900);
horizon._xscale = (blocker._xscale = 150);
this.attachMovie("frame", "topframe", 2000);
InitChar();
ISON = true;
MaxY = -6;
MinY = -9;
RandomJags = 2;
NbVerts = 500;
V = new Array();
var t = 0;
while (t < NbVerts) {
spacing = 29;
V[t] = new Object();
V[t].x = 5;
Yvel = (Yvel + (Math.random() - 0.5)) * 0.6;
newY = MinY + (Math.cos(t / 1.8) * 3.1);
newY = newY + ((Math.random() - 0.5) * RandomJags);
V[t].y = newY;
Lasty = V[t].y;
V[t].z = spacing * t;
t++;
}
FlagCount = 0;
NbFlags = 5;
flag = new Array();
var t = 0;
while (t < NbFlags) {
this.attachMovie("flagmc", "flag" + t, t + 901);
flag[t] = eval ("flag" + t);
t++;
}
NbTexs = 14;
tex = new Array();
var t = 0;
while (t < NbTexs) {
duplicateMovieClip ("tex", "tex" + t, t + 12);
tex[t] = eval ("tex" + t);
tex[t].id = t;
tex[t].gotoAndStop(t);
t++;
}
NbMarks = NbTexs;
mark = new Array();
var t = 0;
while (t < NbMarks) {
this.attachMovie("markermc", "Marker" + t, t + 300);
mark[t] = eval ("Marker" + t);
mark[t].id = t;
t++;
}
ScreenOffX = 225;
ScreenOffY = 20;
camZoom = 60;
VPdist = 7;
CamX = 0;
CamY = -1;
CamZ = -25;
ClippingDist = 0.5;
FollowDist = 25;
CheckFlagID = 0;
}
function Place() {
topframe.speeder._yscale = 7.14285714285714 * Char.Zvel;
count++;
var tmpDist = ((Char.Wpos.z - FollowDist) - CamZ);
if (state == "NORMAL") {
UpdateChar();
CamZ = CamZ + (tmpDist / 1);
} else if (state == "CRASHED") {
CrashChar();
CamZ = CamZ + (tmpDist / 1);
} else if (state == "GOAL") {
GoalChar();
}
if ((V[index].z - Camz) < ClippingDist) {
Starthere = index + 1;
Countit = Countit + 1;
if (FLAGSON && (6 < countit)) {
if ((index + NbTexs) < (NbVerts - 50)) {
flag[flagCount].x = (Math.random() - 0.5) * 15;
flag[flagCount].y = V[(index + NbTexs) - 1].y;
flag[flagCount].z = V[(index + NbTexs) - 1].z;
if (Math.random() >= 0.5) {
flag[flagCount].gotoAndStop("green");
flag[flagCount].type = "green";
} else {
flag[flagCount].gotoAndStop("red");
flag[flagCount].type = "red";
}
flagCount = flagCount + 1;
Countit = 0;
if (flagCount >= nbFlags) {
flagCount = 0;
}
} else if (!GoalSet) {
flag[flagCount].x = 0;
flag[flagCount].y = V[(index + NbTexs) - 1].y;
flag[flagCount].z = V[(index + NbTexs) - 1].z;
flag[flagCount].gotoAndStop("goal");
flag[flagCount].type = "goal";
flagCount = flagCount + 1;
Countit = 0;
if (flagCount >= nbFlags) {
flagCount = 0;
}
GoalSet = true;
CamZvel = char.Zvel;
}
}
}
index = starthere;
VPxnext = (VPdist * (V[index].x - Camx)) / (V[index].z - Camz);
VPynext = (VPdist * (V[index].y - Camy)) / (V[index].z - Camz);
var t = 0;
while (t < NbTexs) {
id = t + index;
VPx = VPxnext;
VPy = VPynext;
VPxnext = (VPdist * (V[id + 1].x - Camx)) / (V[id + 1].z - Camz);
ScaleX = VPx;
VPynext = (VPdist * (V[id + 1].y - Camy)) / (V[id + 1].z - Camz);
VPYdelta = VPynext - VPy;
RelScale = (1 - (VPxnext / VPx)) * 100;
ScaleY = (VPYdelta / RelScale) * 100;
if (0 < ScaleY) {
tex[t]._yscale = (ScaleY * CamZoom) + 1;
tex[t]._visible = true;
} else {
tex[t]._visible = false;
}
tex[t]._x = ScreenOffX;
tex[t]._y = ScreenOffY - (VPy * CamZoom);
tex[t]._xscale = ScaleX * CamZoom;
if (MARKERSON) {
mark[t]._x = tex[t]._x;
mark[t]._y = tex[t]._y;
mark[t]._xscale = (mark[t]._yscale = tex[t]._xscale);
}
t++;
}
horizon._x = ScreenOffX;
horizon._y = ScreenOffy - (VPy * CamZoom);
var t = 0;
while (t < nbFlags) {
var DistVal = (Flag[t].z - Camz);
if (ClippingDist < DistVal) {
VPx = (VPdist * (Flag[t].x - Camx)) / (Flag[t].z - Camz);
VPy = (VPdist * (Flag[t].y - Camy)) / (Flag[t].z - Camz);
Size = (VPdist * (8 - Camx)) / (Flag[t].z - Camz);
Flag[t]._x = ScreenOffX + (VPx * CamZoom);
Flag[t]._y = ScreenOffY - (VPy * CamZoom);
Flag[t]._xscale = (Flag[t]._yscale = size * CamZoom);
var tmp = Math.round(DistVal / 30);
Flag[t].gfx.gotoAndStop(tmp);
} else {
Flag[t]._x = (Flag[t]._y = -200);
Flag[t]._xscale = (Flag[t]._yscale = 5);
}
t++;
}
}
function GetGroundLevel(Zval) {
Zid = index;
while ((Zid * spacing) < Zval) {
Zid++;
}
var OffZ = ((Zid - 1) * spacing);
var deltaZ = ((Zid * spacing) - OffZ);
var offY = V[Zid - 1].y;
var deltaY = (V[Zid].y - offY);
if (deltaY == 0) {
}
var res = ((-offY) - ((deltaY * (Zval - offZ)) / deltaZ));
return(res);
}
function InitChar() {
Gravity = 0.21;
Power = 0;
SpringNormLen = 1.2;
SpringConstant = 0.4;
duplicateMovieClip ("character", "zack", 950);
Char = zack;
Char.Wpos = new O_3dvector(0, -5, 100);
Char.Spos = new O_vector(0, 0);
Char.Size = 10;
Char.Xvel = 0;
Char.Yvel = 0;
Char.Zvel = 0;
Char.Size = 5;
CharYoffFactor = -0.915;
Char._xscale = (Char._yscale = 48);
this.attachMovie("shadowmc", "shadow", 945);
shade = shadow;
shade.Wpos = new O_3dvector(0, 0, 0);
shade.Spos = new O_vector(0, 0);
shade.size = 6;
}
function UpdateChar() {
if (ONGROUND) {
var MaxSide = 90;
var SideDist = (this._xmouse - Char.Spos.x);
if (MaxSide < SideDist) {
SideDist = MaxSide;
} else if (SideDist < (-MaxSide)) {
SideDist = -MaxSide;
}
SideAcc = Math.abs(Char.Zvel) * (SideDist / 2500);
var ym = (_root._ymouse - 100);
if (ym < 30) {
Power = 1;
} else {
Power = 0;
}
}
with (Char) {
Friction = 1 / (1.019 + (Math.abs(SideAcc) * 0.08));
xvel = (xvel + SideAcc) * 0.75;
Zvel = (Zvel + (Power * 0.25)) * Friction;
Wpos.x = Wpos.x + Xvel;
Wpos.z = Wpos.z + Zvel;
shade.Wpos.x = Wpos.x;
shade.Wpos.y = GetGroundLevel(Wpos.z);
shade.Wpos.z = Wpos.z;
var dist = (wpos.y - (shade.wpos.y - SpringNormLen));
if (dist < 0) {
dist = 0;
Yvel = (Yvel + Gravity) - JumpAcc;
JumpCount = JumpCount + 1;
topframe.jumpometer._yscale = Jumpcount * 10;
if (ONGROUND) {
ONGROUND = false;
}
} else {
springForce = SpringConstant * dist;
Yvel = (((Yvel + Gravity) - JumpAcc) - SpringForce) * 0.81;
if (!ONGROUND) {
ONGROUND = true;
topframe.jumpometer._yscale = 0.1;
if ((0.6 < Math.abs(SideAcc)) && (Jumpcount >= 0)) {
state = "CRASHED";
Char.gotoAndStop("crash");
}
JumpCount = 0;
}
}
Wpos.y = Wpos.y + Yvel;
Spos = WorldToScreen(Wpos);
var springPos = Math.round(((-Wpos.y) + shade.Wpos.y) / 0.2);
if (10 < SpringPos) {
SpringPos = 10;
}
if (SpringPos < 1) {
SpringPos = 1;
}
if (SideAcc < -0.25) {
SideFram = 0;
} else if ((SideAcc < -0.15) && (-0.25 < SideAcc)) {
SideFram = 1;
} else if (0.25 < SideAcc) {
SideFram = 4;
} else if ((0.15 < SideAcc) && (SideAcc < 0.25)) {
SideFram = 3;
} else {
SideFram = 2;
}
Char.gotoAndStop((SideFram * 10) + SpringPos);
_xscale = (_yscale = WorldToScreenScale(Size, wpos.z));
_x = Spos.x;
_y = (CharYofffactor * _xscale) + Spos.y;
OldWY = Wpos.y;
if ((0 < Flag[CheckFlagID].z) && (wpos.z >= Flag[CheckFlagID].z)) {
sound.gotoAndPlay("pass");
if (Flag[CheckFlagID].type != "goal") {
topframe.score = Number(topframe.score) + 10;
var tempDist = (wpos.x - Flag[CheckFlagID].x);
if (Math.abs(tempDist) < 2.1) {
if (3 < Zvel) {
state = "CRASHED";
} else {
Zvel = 0;
power = power * 0.5;
}
} else if ((Flag[CheckFlagID].type == "red") && (tempDist < 0)) {
topframe.score = (Number(topframe.score) + 100) + Math.floor(((Zvel * Zvel) * Zvel) / 10);
} else if ((Flag[CheckFlagID].type == "green") && (0 < tempDist)) {
topframe.score = (Number(topframe.score) + 100) + Math.floor(((Zvel * Zvel) * Zvel) / 10);
}
CheckFlagID = CheckFlagID + 1;
if (CheckFlagID >= nbFlags) {
CheckFlagID = 0;
}
} else {
state = "GOAL";
_parent._parent.goalanim.play();
}
}
}
with (Shade) {
Spos = WorldToScreen(Wpos);
_x = Spos.x;
_y = Spos.y;
_xscale = (_yscale = WorldToScreenScale(Size, wpos.z));
}
}
function CrashChar() {
Power = Power * 0.95;
with (Char) {
xvel = xvel * 0.75;
Zvel = (Zvel * 0.85) + Power;
Wpos.x = Wpos.x + Xvel;
Wpos.z = Wpos.z + Zvel;
shade.Wpos.x = Wpos.x;
shade.Wpos.y = GetGroundLevel(Wpos.z);
shade.Wpos.z = Wpos.z;
var dist = (wpos.y - (shade.wpos.y - SpringNormLen));
if (dist < 0) {
dist = 0;
Yvel = Yvel + Gravity;
} else {
springForce = SpringConstant * dist;
Yvel = (((Yvel + Gravity) - JumpAcc) - SpringForce) * 0.81;
}
wpos.y = shade.wpos.y;
Spos = WorldToScreen(Wpos);
Char.gotoAndStop("crash");
_xscale = (_yscale = WorldToScreenScale(Size, wpos.z));
_x = Spos.x;
_y = (CharYofffactor * _xscale) + Spos.y;
if (Zvel < 0.2) {
resetChar();
}
if ((0 < flag[CheckFlagID].z) && (wpos.z >= flag[CheckFlagID].z)) {
var tempDist = (Char.wpos.x - flag[CheckFlagID].x);
if (Math.abs(tempDist) < 3) {
Zvel = 0;
}
CheckFlagID = CheckFlagID + 1;
if (CheckFlagID >= nbFlags) {
CheckFlagID = 0;
}
}
}
with (Shade) {
Spos = WorldToScreen(Wpos);
_x = Spos.x;
_y = Spos.y;
_xscale = (_yscale = WorldToScreenScale(Size, wpos.z));
}
}
function GoalChar() {
CamZvel = CamZvel * 0.9;
CamZ = CamZ + CamZvel;
if (CamY < 5) {
CamYvel = CamYvel + 0.01;
} else {
CamYvel = CamYvel - 0.02;
if (CamYvel < 0) {
CamYvel = 0;
}
}
CamY = CamY + CamYvel;
Power = Power * 0.9;
with (Char) {
xvel = xvel * 0.75;
Zvel = (Zvel * 0.9) + Power;
Wpos.x = Wpos.x + Xvel;
Wpos.z = Wpos.z + Zvel;
shade.Wpos.x = Wpos.x;
shade.Wpos.y = GetGroundLevel(Wpos.z);
shade.Wpos.z = Wpos.z;
var dist = (wpos.y - (shade.wpos.y - SpringNormLen));
if (dist < 0) {
dist = 0;
Yvel = Yvel + Gravity;
} else {
springForce = SpringConstant * dist;
Yvel = (((Yvel + Gravity) - JumpAcc) - SpringForce) * 0.81;
}
Wpos.y = Wpos.y + Yvel;
Spos = WorldToScreen(Wpos);
var springPos = Math.round(((-Wpos.y) + shade.Wpos.y) / 0.2);
if (10 < SpringPos) {
SpringPos = 10;
}
if (SpringPos < 1) {
SpringPos = 1;
}
if (SideAcc < -0.25) {
SideFram = 0;
} else if ((SideAcc < -0.15) && (-0.25 < SideAcc)) {
SideFram = 1;
} else if (0.25 < SideAcc) {
SideFram = 4;
} else if ((0.15 < SideAcc) && (SideAcc < 0.25)) {
SideFram = 3;
} else {
SideFram = 2;
}
Char.gotoAndStop((SideFram * 10) + SpringPos);
_xscale = (_yscale = WorldToScreenScale(Size, wpos.z));
_x = Spos.x;
_y = (CharYofffactor * _xscale) + Spos.y;
if (Zvel < 0.15) {
EndIt();
}
}
with (Shade) {
Spos = WorldToScreen(Wpos);
_x = Spos.x;
_y = Spos.y;
_xscale = (_yscale = WorldToScreenScale(Size, wpos.z));
}
}
function ResetChar() {
state = "NORMAL";
Char.Xvel = 0;
Char.Yvel = 0;
Char.Zvel = 0;
}
function SetRandomPos(subject) {
subject._x = Math.random() * 300;
subject._y = Math.random() * 300;
subject._xscale = (subject._yscale = (Math.random() * 30) + 10);
}
function WorldToScreen(vec) {
var arr = new O_Vector(0, 0);
arr.x = (VPdist * (vec.x - Camx)) / (vec.z - Camz);
arr.y = (VPdist * (vec.y + Camy)) / (vec.z - Camz);
arr.x = ScreenOffX + (arr.x * CamZoom);
arr.y = ScreenOffY + (arr.y * CamZoom);
return(arr);
}
function WorldToScreenScale(Size, zval) {
var res;
res = ((VPdist * (Size - Camx)) / (zval - Camz)) * CamZoom;
return(res);
}
function EndIt() {
_parent.score = topframe.score;
_parent.gotoAndStop("gameover");
}
function O_Vector(x, y) {
this.x = x;
this.y = y;
}
function O_3dVector(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
}
init();
}
onClipEvent (enterFrame) {
Place();
topframe.Fpstxt = Math.round(1000 / (getTimer() - time1));
time1 = getTimer();
}
Frame 50
stop();
this._quality = "HIGH";
Instance of Symbol 205 MovieClip "hiscore" in Frame 50
onClipEvent (load) {
function init() {
GetHiscorePath = "http://www.titoonic.dk/titoonia/asp/GetHighScore.asp";
SubmitScorePath = "http://www.titoonic.dk/titoonia/asp/SetHighScore_url.asp";
GameID = "snowboard1";
UserScore = _parent.Score;
scoretxt = UserScore;
min = _parent.min;
sek = _parent.sek;
nbScores = 10;
requestData();
}
function PlayAgain() {
_parent.gotoAndStop("game");
}
function requestData() {
type = "CHECKSCORE";
loadVariables ((GetHiscorePath + "?GameID=") + GameID, "");
}
function SubmitScore() {
var postvars = ("?GameID=" + GameID);
postvars = postvars + ("&submitname=" + Nametxt);
postvars = postvars + ("&submitscore=" + UserScore);
postvars = postvars + ("&submitUrl=" + UrlTxt);
type = "SUBMITSCORE";
loadVariables (SubmitScorePath + postvars, "");
}
function UseData() {
if (type == "CHECKSCORE") {
if (Score10 < UserScore) {
this.gotoAndStop("entername");
} else {
this.gotoAndStop("showscore");
}
} else if (type == "SUBMITSCORE") {
_parent.gotoAndStop("splash");
}
}
function ShowHighScore(Reloadit) {
_parent.gotoAndStop("splash");
}
init();
}
onClipEvent (data) {
UseData();
}
Frame 59
stop();
Frame 70
stop();
Symbol 7 Button
on (release) {
_parent._parent.GotoUrl(url);
}
Symbol 20 Button
on (press) {
_parent.dragstart();
}
on (release, releaseOutside) {
_parent.dragend();
}
Symbol 22 Button
on (press) {
_parent.jumpscroll();
}
Symbol 26 MovieClip Frame 1
function ini() {
outputvalue = 0;
dragging = false;
dragoffset = 0;
slidermax = sliderareabox._height - slider._height;
sliderx = sliderareabox._width / 2;
slider._x = sliderx;
slider._y = 0;
slider._y = slidermax * ((eval ("_parent." add variablename) - minvalue) / (maxvalue - minvalue));
}
function dragstart() {
dragging = true;
dragoffset = this._ymouse - slider._y;
}
function dragit() {
if ((0 < (this._yMouse - dragoffset)) && ((this._yMouse - dragoffset) < slidermax)) {
slider._y = this._yMouse - dragoffset;
}
if ((this._yMouse - dragoffset) < 0) {
slider._y = 0;
}
if (slidermax < (this._yMouse - dragoffset)) {
slider._y = slidermax;
}
doit();
}
function jumpscroll() {
if (this._yMouse < slider._y) {
slider._y = slider._y - Math.min(slidermax / ((maxvalue - minvalue) / jumpscrollunits), slider._y);
}
if ((slider._y + slider._height) < this._yMouse) {
slider._y = slider._y + Math.min(slidermax / ((maxvalue - minvalue) / jumpscrollunits), slidermax - slider._y);
}
doit();
}
function stepscroll(plusminus) {
if (plusminus == "plus") {
slider._y = slider._y + Math.min(slidermax / ((maxvalue - minvalue) / stepscrollunits), slidermax - slider._y);
}
if (plusminus == "minus") {
slider._y = slider._y - Math.min(slidermax / ((maxvalue - minvalue) / stepscrollunits), slider._y);
}
doit();
}
function doit() {
outputvalue = ((maxvalue - minvalue) * (slider._y / slidermax)) + minvalue;
if (roundnumbers == "true") {
outputvalue = Math.round(outputvalue);
}
Set("_parent." add variablename, outputvalue);
}
function dragend() {
dragging = false;
}
Instance of Symbol 21 MovieClip "slider" in Symbol 26 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.dragging == true) {
_parent.dragit();
}
}
Symbol 26 MovieClip Frame 2
stop();
ini();
Symbol 27 MovieClip Frame 1
function ini() {
outputvalue = 0;
dragging = false;
dragoffset = 0;
slidermax = sliderareabox._height - slider._height;
sliderx = sliderareabox._width / 2;
slider._x = sliderx;
slider._y = 0;
slider._y = slidermax * ((eval ("_parent." add variablename) - minvalue) / (maxvalue - minvalue));
}
function dragstart() {
dragging = true;
dragoffset = this._ymouse - slider._y;
}
function dragit() {
if ((0 < (this._yMouse - dragoffset)) && ((this._yMouse - dragoffset) < slidermax)) {
slider._y = this._yMouse - dragoffset;
}
if ((this._yMouse - dragoffset) < 0) {
slider._y = 0;
}
if (slidermax < (this._yMouse - dragoffset)) {
slider._y = slidermax;
}
doit();
}
function jumpscroll() {
if (this._yMouse < slider._y) {
slider._y = slider._y - Math.min(slidermax / ((maxvalue - minvalue) / jumpscrollunits), slider._y);
}
if ((slider._y + slider._height) < this._yMouse) {
slider._y = slider._y + Math.min(slidermax / ((maxvalue - minvalue) / jumpscrollunits), slidermax - slider._y);
}
doit();
}
function stepscroll(plusminus) {
if (plusminus == "plus") {
slider._y = slider._y + Math.min(slidermax / ((maxvalue - minvalue) / stepscrollunits), slidermax - slider._y);
}
if (plusminus == "minus") {
slider._y = slider._y - Math.min(slidermax / ((maxvalue - minvalue) / stepscrollunits), slider._y);
}
doit();
}
function doit() {
outputvalue = ((maxvalue - minvalue) * (slider._y / slidermax)) + minvalue;
if (roundnumbers == "true") {
outputvalue = Math.round(outputvalue);
}
Set("_parent." add variablename, outputvalue);
}
function dragend() {
dragging = false;
}
Instance of Symbol 21 MovieClip "slider" in Symbol 27 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.dragging == true) {
_parent.dragit();
}
}
Symbol 27 MovieClip Frame 2
stop();
ini();
Instance of Symbol 26 MovieClip in Symbol 32 MovieClip [frame] Frame 1
onClipEvent (load) {
variablename = "_parent.FollowDist";
minvalue = 1;
maxvalue = 90;
roundnumbers = "false";
jumpscrollunits = 10;
stepscrollunits = 1;
}
Instance of Symbol 27 MovieClip in Symbol 32 MovieClip [frame] Frame 1
onClipEvent (load) {
variablename = "_parent.CamY";
minvalue = -5;
maxvalue = 30;
roundnumbers = "false";
jumpscrollunits = 3;
stepscrollunits = 0.35;
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 39 MovieClip [flagmc] Frame 1
stop();
Symbol 54 MovieClip Frame 5
stop();
Symbol 61 MovieClip Frame 500
gotoAndPlay(this.random(450));
Symbol 67 MovieClip Frame 2
init();
stop();
Symbol 75 Button
on (press) {
_parent.stepscroll("minus");
}
Symbol 77 Button
on (press) {
_parent.stepscroll("plus");
}
Symbol 79 MovieClip Frame 1
function ini() {
if (orientation == "vertical") {
heightwidth = "._height";
xy = "._y";
}
if (orientation == "horisontal") {
heightwidth = "._width";
xy = "._x";
}
dragging = false;
dragoffset = 0;
scrollcliptop = eval (("_parent." add scrollarea) add xy);
scrollclipbot = scrollcliptop + ((eval (("_parent." add scrollclip) add heightwidth) - eval (("_parent." add scrollarea) add heightwidth)) * -1);
slider._height = (sliderareabox._height * eval (("_parent." add scrollarea) add heightwidth)) / eval (("_parent." add scrollclip) add heightwidth);
slidermax = sliderareabox._height - slider._height;
sliderx = sliderareabox._width / 2;
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , scrollcliptop);
}
slider._x = sliderx;
slider._y = 0;
if (eval (("_parent." add scrollclip) add heightwidth) < eval (("_parent." add scrollarea) add heightwidth)) {
if (ifSmallClip == "transparent") {
slider._visible = false;
_alpha = 50;
}
if (ifSmallClip == "invisible") {
this._visible = false;
}
} else {
slider._visible = true;
}
}
function dragstart() {
dragging = true;
dragoffset = this._ymouse - slider._y;
}
function dragit() {
if ((0 < (this._yMouse - dragoffset)) && ((this._yMouse - dragoffset) < slidermax)) {
slider._y = this._yMouse - dragoffset;
}
if ((this._yMouse - dragoffset) < 0) {
slider._y = 0;
}
if (slidermax < (this._yMouse - dragoffset)) {
slider._y = slidermax;
}
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
}
function jumpscroll() {
if (this._yMouse < slider._y) {
slider._y = slider._y - Math.min(slider._height, slider._y);
}
if ((slider._y + slider._height) < this._yMouse) {
slider._y = slider._y + Math.min(slider._height, slidermax - slider._y);
}
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
}
function stepscroll(plusminus) {
if (plusminus == "plus") {
slider._y = Math.min(slider._y + stepscrollunits, slidermax);
}
if (plusminus == "minus") {
slider._y = Math.max(slider._y - stepscrollunits, 0);
}
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
}
function dragend() {
dragging = false;
}
Instance of Symbol 21 MovieClip "slider" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.dragging == true) {
_parent.dragit();
}
}
Symbol 79 MovieClip Frame 2
stop();
ini();
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 10
stop();
Instance of Symbol 67 MovieClip "dataloader" in Symbol 80 MovieClip Frame 10
onClipEvent (load) {
function GotoUrl(url) {
if (9 < length(url)) {
if ((substring(Url, 0, 7)) == "http://") {
} else {
tempUrl = "http://" + Url;
}
}
getURL (tempUrl, "_blank");
}
row = new Array();
posi = 2;
var t = 1;
while (10 >= t) {
this.attachMovie("textrow", "row" + t, t);
row[t] = eval ("row" + t);
row[t].number = t;
row[t].name = eval ("_parent.playername" + t);
row[t].score = eval ("_parent.score" + t);
row[t]._y = posi;
var tempUrl = eval ("_parent.Url" + t);
if (9 < length(tempUrl)) {
if ((substring(tempUrl, 0, 7)) == "http://") {
tempUrl = substring(tempUrl, 8, length(tempUrl));
}
row[t].um.url = tempUrl;
row[t].um._visible = true;
posi = posi + 34;
} else {
row[t].um.url = "boooooo";
row[t].um._visible = false;
posi = posi + 20;
}
t++;
}
}
Instance of Symbol 79 MovieClip "sc" in Symbol 80 MovieClip Frame 10
onClipEvent (load) {
scrollclip = "dataloader";
scrollarea = "scrollarea1";
orientation = "vertical";
stepscrollunits = 1;
ifSmallClip = "transparent";
}
Symbol 88 Button
on (release) {
gotoAndPlay (44);
}
Symbol 89 Button
on (release) {
gotoAndStop (59);
}
Symbol 90 Button
on (release) {
gotoAndStop (70);
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 42
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 17
gotoAndStop (1);
Symbol 171 MovieClip Frame 19
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 191 Button
on (press) {
submitscore();
}
Symbol 201 Button
on (press) {
_parent.gotoAndStop("splash");
}
Symbol 205 MovieClip Frame 3
stop();
Symbol 205 MovieClip Frame 16
stop();
Symbol 206 Button
on (release) {
getURL ("http://www.titoonic.dk", "_blank");
}
Symbol 207 MovieClip Frame 500
gotoAndPlay(this.random(450));
Symbol 208 Button
on (release) {
gotoAndStop (59);
}
Symbol 222 Button
on (release) {
gotoAndPlay (44);
}
Symbol 223 Button
on (press) {
gotoAndStop (70);
}
Symbol 225 Button
on (release) {
this.gotoAndStop("sendtofriend");
}