Frame 1
UtilityLib = function () {
};
UtilityLib.getAttribute = function (xmlObject, sNodeName, iOccurrence, sAttributeName) {
var _local2;
var _local1;
_local1 = UtilityLib.getNode(xmlObject, sNodeName, iOccurrence);
if (_local1 != null) {
_local2 = _local1.attributes[sAttributeName];
if (_local2 != undefined) {
return(_local2);
}
}
return("");
};
UtilityLib.getNode = function (xmlObject, sNodeName, iOccurrence) {
var _local3 = iOccurrence;
var _local2;
var _local1;
_local2 = xmlObject.childNodes;
_local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1].nodeType == 1) && (_local2[_local1].nodeName == sNodeName)) {
if (_local3 > 0) {
_local3--;
} else {
return(_local2[_local1]);
}
}
_local1++;
}
return(null);
};
UtilityLib.isWhitespace = function (sString) {
var _local1 = sString.charCodeAt(0);
return((((_local1 == 9) || (_local1 == 10)) || (_local1 == 13)) || (_local1 == 32));
};
UtilityLib.parseAttribute = function (xmlObject, sNodeName, iOccurrence, sAttributeName) {
return(UtilityLib.getAttribute(xmlObject, sNodeName, iOccurrence, sAttributeName));
};
UtilityLib.parseNode = function (xmlObject, sNodeName, iOccurrence) {
var _local1;
var _local3;
var _local2;
_local2 = UtilityLib.getNode(xmlObject, sNodeName, iOccurrence);
if (_local2 != null) {
_local3 = "";
_local1 = 0;
while (_local1 < _local2.childNodes.length) {
if (_local2.childNodes[_local1].nodeType == 3) {
_local3 = _local3 + _local2.childNodes[_local1].nodeValue;
} else {
_local3 = _local3 + _local2.childNodes[_local1].toString();
}
_local1++;
}
} else {
_local3 = "";
}
return(_local3);
};
stop();
_global.lives = Number(3);
onscreenscrolls = Number(0);
Frame 2
function resetswinger() {
if (swingok) {
_global.swingok = false;
swing.swinger._rotation = 0;
trace("reset");
}
}
function deadyet() {
trace(lives);
if (lives == 3) {
life3._alpha = 100;
life2._alpha = 100;
life1._alpha = 100;
}
if (lives == 2) {
life3._alpha = 0;
life2._alpha = 100;
life1._alpha = 100;
}
if (lives == 1) {
life3._alpha = 0;
life2._alpha = 0;
life1._alpha = 100;
}
if (lives == 0) {
life3._alpha = 0;
life2._alpha = 0;
life1._alpha = 0;
godead = "godead" add Glevel;
gotoAndPlay ("score");
}
}
function balloon() {
score = score + 10;
}
function screenscrolls() {
onscreenscrolls++;
}
function level1complete() {
if (onscreenscrolls >= Number(48)) {
gowhere = ("level" add Glevel) + "complete";
gotoAndStop(gowhere);
}
}
function scoreup() {
if ((!swingok) && (Gspeed > 0)) {
score++;
trace(score);
}
}
stopAllSounds();
resetswinger();
stop();
deadyet();
_global.swingok = true;
_global.Gjumpokaftercone = true;
_global.Gspeed = Number(25);
_global.Glevel = Number(1);
_global.Gspeedy = Number(0);
_global.Gdudespeed = Number(0);
Instance of Symbol 292 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent.dude)) {
_global.Gdudespeed = 0.2;
}
}
Instance of Symbol 292 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent.dude)) {
_global.Gdudespeed = -0.2;
}
}
Instance of Symbol 295 MovieClip "bg1" in Frame 2
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 6);
if (this._x < -817) {
this._x = 816;
}
}
Instance of Symbol 299 MovieClip "bg2" in Frame 2
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 550) {
this._x = this._x + 545;
_parent.screenscrolls();
_parent.level1complete();
}
}
Instance of Symbol 302 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._x = this._x - Gspeed;
if (this._x < -2000) {
this._x = 2000;
}
}
Instance of Symbol 304 MovieClip "longwall" in Frame 2
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -1000) {
this._x = this._x + 3000;
}
if ((this.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.scoreup();
_global.railjumpok = true;
_global.skateok = true;
_parent.resetswinger();
_global.balance = true;
_global.Gjumpok = true;
_parent.dude._y = this._y - 75;
_global.Gspeedy = 0;
if (ok) {
_parent.dude.gotoAndPlay("grind");
this.ok = false;
}
} else {
_global.balance = false;
_global.railjumpok = false;
_global.Gjumpok = false;
this.ok = true;
}
}
Instance of Symbol 321 MovieClip "coin" in Frame 2
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 2
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 2
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(50) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 2
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 2
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 323 MovieClip "c2" in Frame 2
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + 1000;
if (_parent.onscreenscrolls > 17) {
this._y = 250 + random(30);
trace("sector 2 extra cone on screen");
} else {
this._y = -50;
}
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_parent.dude.gotoAndPlay("fall");
this.ok = false;
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
}
if (this.hitTest(_parent.longwall) or this.hitTest) {
this._x = this._x + (1000 + random(3500));
}
}
Instance of Symbol 323 MovieClip "c3" in Frame 2
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + 1000;
if ((_parent.onscreenscrolls > 34) && (_parent.onscreenscrolls < 51)) {
this._y = 250 + random(30);
trace("sector 3 extra cone on screen");
} else {
this._y = -50;
}
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
_parent.dude.gotoAndPlay("fall");
this.ok = false;
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
}
}
Instance of Symbol 323 MovieClip "c1" in Frame 2
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + (1000 + random(2000));
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
this.ok = false;
_global.Gjumpokaftercone = false;
_parent.dude.gotoAndPlay("fall");
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(300));
}
}
Instance of Symbol 327 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._visible = false;
this._x = _parent.longwall._x + 600;
if ((this.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.dude.gotoAndPlay("land");
}
}
Instance of Symbol 333 MovieClip "swing" in Frame 2
onClipEvent (enterFrame) {
if (balance) {
this._visible = true;
this._x = _parent.dude._x + 15;
this._y = _parent.dude._y - 43;
} else {
this._visible = false;
}
}
Instance of Symbol 339 MovieClip "swingdirection" in Frame 2
onClipEvent (enterFrame) {
if (swingdirection && (balance)) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 382 MovieClip "dude" in Frame 2
onClipEvent (enterFrame) {
if (Gjumpokaftercone) {
this._y = this._y + Gspeedy;
this._x = this._x + Gdudespeed;
}
if (!Gjumpok) {
_global.Gspeedy = _global.Gspeedy + 1;
}
}
Frame 10
_global.lives = _global.lives - 1;
deadyet();
trace(deadyet);
Frame 28
_global.swingdirection = true;
gotoAndPlay ("skate");
Frame 29
stop();
_global.balance = false;
Frame 30
stop();
_global.balance = false;
Frame 31
function level2complete() {
if (onscreenscrolls >= Number(47)) {
gowhere = ("level" add Glevel) + "complete";
gotoAndStop(gowhere);
}
}
stop();
stopAllSounds();
_global.swingok = true;
_global.Gjumpokaftercone = true;
_global.Gspeed = Number(25);
_global.Glevel = Number(2);
_global.Gspeedy = Number(0);
_global.Gdudespeed = Number(0);
resetswinger();
Instance of Symbol 410 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 6);
if (this._x < -817) {
this._x = 816;
}
}
Instance of Symbol 413 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -817) {
this._x = 816;
_parent.screenscrolls();
_parent.level2complete();
_parent.screenscrolls();
}
}
Instance of Symbol 292 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent.dude)) {
_global.Gdudespeed = 0.2;
}
}
Instance of Symbol 292 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent.dude)) {
_global.Gdudespeed = -0.2;
}
}
Instance of Symbol 302 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._x = this._x - Gspeed;
if (this._x < -2000) {
this._x = 2000;
}
}
Instance of Symbol 304 MovieClip "longwall" in Frame 31
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this.hitTest(_parent.bigwall)) {
this._x = this._x + 400;
}
if (this._x < -1200) {
this._x = this._x + (6000 + random(3000));
}
if ((_parent.longwall.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.scoreup();
_global.railjumpok = true;
_global.skateok = true;
_parent._parent.resetswinger();
_global.balance = true;
_global.Gjumpok = true;
_parent.dude._y = this._y - 75;
_global.Gspeedy = 0;
if (this.ok) {
_parent.dude.gotoAndPlay("grind");
this.ok = false;
}
}
}
Instance of Symbol 327 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._visible = false;
this._x = _parent.longwall._x + 600;
if ((this.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.dude.gotoAndPlay("land");
_parent.longwall.ok = true;
}
}
Instance of Symbol 415 MovieClip "bigwall" in Frame 31
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -1817) {
this._x = 3816;
}
if ((_parent.bigwall.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_global.railjumpok = true;
_global.Gjumpok = true;
_global.balance = true;
trace(skateok);
_parent.scoreup();
_global.skateok = true;
_parent._parent.resetswinger();
_parent.dude._y = this._y - 95;
if (ok) {
this.ok = false;
_parent.dude.gotoAndPlay("grind");
}
} else {
_global.balance = false;
_global.railjumpok = false;
_global.Gjumpok = false;
this.ok = true;
}
}
Instance of Symbol 327 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._visible = false;
this._x = _parent.bigwall._x + 1100;
if ((this.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.dude.gotoAndPlay("land");
}
}
Instance of Symbol 321 MovieClip "coin" in Frame 31
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 31
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 31
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(50) + 290;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 31
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 31
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 250;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 323 MovieClip "c1" in Frame 31
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + (1000 + random(2000));
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_parent.dude.gotoAndPlay("fall");
this.ok = false;
_global.Gspeed = Number(0);
_global.Gspeedy = Number(0);
_global.Gdudespeed = Number(0);
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
trace("moved small");
}
}
Instance of Symbol 323 MovieClip "c2" in Frame 31
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + 1000;
if (_parent.onscreenscrolls > 17) {
this._y = 280 + Random;
trace("sector 2 extra cone on screen");
} else {
this._y = -500;
}
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_parent.dude.gotoAndPlay("fall");
this.ok = false;
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
trace("moved small 2");
}
}
Instance of Symbol 323 MovieClip "c3" in Frame 31
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + 1000;
if ((_parent.onscreenscrolls > 34) && (_parent.onscreenscrolls < 51)) {
this._y = 280 + random(30);
trace("sector 3 extra cone on screen");
} else {
this._y = -500;
}
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
_parent.dude.gotoAndPlay("fall");
this.ok = false;
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
trace("moved small 3");
}
}
Instance of Symbol 418 MovieClip in Frame 31
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 0.9);
if (this._x < -90) {
this._x = 2000;
}
}
Instance of Symbol 382 MovieClip "dude" in Frame 31
onClipEvent (enterFrame) {
if (Gjumpokaftercone) {
this._y = this._y + Gspeedy;
this._x = this._x + Gdudespeed;
}
if (!Gjumpok) {
_global.Gspeedy = _global.Gspeedy + 1;
}
}
Frame 32
_global.lives = _global.lives - 1;
deadyet();
trace(Glevel);
Frame 50
_global.swingdirection = true;
gotoAndPlay ("level2");
Frame 51
stop();
_global.balance = false;
Frame 61
_global.balance = false;
Frame 72
function level3complete() {
if (onscreenscrolls >= Number(50)) {
gowhere = ("level" add Glevel) + "complete";
gotoAndStop(gowhere);
}
}
stop();
_global.Gjumpokaftercone = true;
_global.swingok = true;
stopAllSounds();
_global.Glevel = Number(3);
_global.Gspeed = Number(30);
_global.Gspeedy = Number(0);
_global.Gdudespeed = Number(0);
Instance of Symbol 427 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 8);
if (this._x < 550) {
this._x = this._x + 545;
}
}
Instance of Symbol 430 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 550) {
this._x = this._x + 545;
_parent.screenscrolls();
_parent.level3complete();
}
}
Instance of Symbol 292 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent.dude)) {
_global.Gdudespeed = 0.2;
}
}
Instance of Symbol 292 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent.dude)) {
_global.Gdudespeed = -0.2;
}
}
Instance of Symbol 302 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._x = this._x - Gspeed;
if (this._x < -2000) {
this._x = 2000;
}
}
Instance of Symbol 304 MovieClip "longwall" in Frame 72
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this.hitTest(_parent.bigwall)) {
this._x = this._x + 400;
}
if (this._x < -1200) {
this._x = this._x + (3000 + random(3000));
}
if ((_parent.longwall.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.scoreup();
_global.railjumpok = true;
_global.skateok = true;
_parent.resetswinger();
_global.balance = true;
_global.Gjumpok = true;
_parent.dude._y = this._y - 75;
_global.Gspeedy = 0;
if (this.ok) {
_parent.dude.gotoAndPlay("grind");
this.ok = false;
}
}
}
Instance of Symbol 327 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._visible = false;
this._x = _parent.longwall._x + 600;
if ((this.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.dude.gotoAndPlay("land");
_parent.longwall.ok = true;
}
}
Instance of Symbol 415 MovieClip "bigwall" in Frame 72
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -1817) {
this._x = 1816;
}
if ((_parent.bigwall.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_global.railjumpok = true;
_global.Gjumpok = true;
_global.balance = true;
trace(skateok);
_parent.scoreup();
_global.skateok = true;
_parent.resetswinger();
_parent.dude._y = this._y - 95;
if (ok) {
this.ok = false;
_parent.dude.gotoAndPlay("grind");
}
} else {
_global.balance = false;
_global.railjumpok = false;
_global.Gjumpok = false;
this.ok = true;
}
}
Instance of Symbol 327 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._visible = false;
this._x = _parent.bigwall._x + 1080;
if ((this.hitTest(_parent.dude) && (swingdirection)) && (Gjumpokaftercone)) {
_parent.dude.gotoAndPlay("land");
}
}
Instance of Symbol 323 MovieClip "c1" in Frame 72
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + (1000 + random(2000));
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_parent.dude.gotoAndPlay("fall");
this.ok = false;
_global.Gspeed = Number(0);
_global.Gspeedy = Number(0);
_global.Gdudespeed = Number(0);
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
trace("moved small");
}
}
Instance of Symbol 323 MovieClip "c2" in Frame 72
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + 1000;
if (_parent.onscreenscrolls > 17) {
this._y = 280 + Random;
trace("sector 2 extra cone on screen");
} else {
this._y = -500;
}
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_parent.dude.gotoAndPlay("fall");
this.ok = false;
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
trace("moved small 2");
}
}
Instance of Symbol 323 MovieClip "c3" in Frame 72
onClipEvent (load) {
this.ok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < 0) {
this._x = this._x + 1000;
if ((_parent.onscreenscrolls > 34) && (_parent.onscreenscrolls < 51)) {
this._y = 280 + random(30);
trace("sector 3 extra cone on screen");
} else {
this._y = -500;
}
}
if (this.hitTest(_parent.dude) && (this.ok)) {
this.play();
_global.Gjumpokaftercone = false;
_global.Gspeed = Number(0);
_global.Gdudespeed = Number(0);
_parent.dude.gotoAndPlay("fall");
this.ok = false;
}
if (this.hitTest(_parent.longwall)) {
this._x = this._x + (1000 + random(3500));
trace("moved small 3");
}
}
Instance of Symbol 321 MovieClip "coin" in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(50) + 290;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(80) + 250;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip "coin" in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(900) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(1000) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(600) + 3000);
this._y = random(50) + 290;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 433 MovieClip in Frame 72
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 0.9);
if (this._x < -90) {
this._x = 2000;
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(500) + 3000);
this._y = random(80) + 200;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 321 MovieClip in Frame 72
onClipEvent (load) {
this.scoreok = true;
}
onClipEvent (enterFrame) {
this._x = this._x - (Gspeed / 2);
if (this._x < -500) {
this._x = this._x + (random(800) + 3000);
this._y = random(80) + 250;
this._visible = true;
}
if (this.hitTest(_parent.dude)) {
if (scoreok) {
this.mc_coin.play();
this.play();
_parent.balloon();
this.scoreok = false;
}
}
}
Instance of Symbol 382 MovieClip "dude" in Frame 72
onClipEvent (enterFrame) {
if (Gjumpokaftercone) {
this._y = this._y + Gspeedy;
this._x = this._x + Gdudespeed;
}
if (!Gjumpok) {
_global.Gspeedy = _global.Gspeedy + 1;
}
}
Frame 77
_global.lives = _global.lives - 1;
deadyet();
trace(Glevel);
play();
Frame 92
_global.swingdirection = true;
gotoAndPlay ("level3");
Frame 93
stop();
_global.balance = false;
Frame 99
stop();
_global.balance = false;
Frame 115
add_btn._visible = false;
totalscore = _root.score;
if (totalscore < 700) {
comments_1.text = "Why not have another go?";
comments_2.text = "This time, Get those jumps timed right.";
} else if ((totalscore > 700) && (totalscore < 1200)) {
comments_1.text = "Not bad, not bad at all.";
comments_2.text = "Why not try again. Remember, practice makes perfect.";
} else if (totalscore > 1200) {
comments_1.text = "Wow! You\u2019ve clearly been practicing.";
comments_2.text = "Try again. See if you can\u2019t beat the highest score.";
}
add_btn.onPress = function () {
play();
};
trace("user is logged in");
submit_txt.text = "Do you want to send your score to the Leaderboard?";
add_btn._visible = true;
stop();
Frame 116
szURL = ("../../../../php/pushScoreRequest.php?iScore=" + totalscore) + "&sGameType=K_SKATE";
var xmlSubmit = new XML();
xmlSubmit.ignoreWhite = true;
xmlSubmit.onLoad = function (success) {
if (success) {
var _local1 = UtilityLib.getNode(this, "xmlRoot", 0);
if (UtilityLib.parseNode(_local1, "sError", 0).toLowerCase == "true") {
confirm_txt.text = "Sorry, there has been a problem adding your score.\nPlease try later.";
} else {
iRank = Number(UtilityLib.parseNode(_local1, "iPosition", 0));
iTotal = Number(UtilityLib.parseNode(_local1, "iTableLength", 0));
}
if (iRank > 0) {
if (iRank < 21) {
confirm_txt.text = "Well done\nYou made it onto the Leaderboard\n\n";
} else {
confirm_txt.text = "Bad Luck\nYou didn't make it onto the leaderboard\n\n";
}
confirm_txt.text = (((confirm_txt.text + "You are ranked ") + (iRank + 1)) + " out of ") + iTotal;
}
}
};
xmlSubmit.load(szURL);
stop();
stop();
Frame 117
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 233 MovieClip [avatarThumbMC] Frame 1
#initclip 2
AvatarThumb = function () {
};
AvatarThumb.K_MALE = 0;
AvatarThumb.K_FEMALE = 1;
AvatarThumb.prototype = new MovieClip();
AvatarThumb.prototype.paint = function (piSex, piHead) {
var _local1 = this;
_local1.insMaleHead._visible = false;
_local1.insFemaleHead._visible = false;
switch (piSex) {
case AvatarThumb.K_MALE :
_local1.insMaleHead._visible = true;
_local1.insFemaleHead._visible = false;
_local1.insMaleHead.gotoAndStop(piHead);
return;
case AvatarThumb.K_FEMALE :
_local1.insMaleHead._visible = false;
_local1.insFemaleHead._visible = true;
_local1.insFemaleHead.gotoAndStop(piHead);
}
};
Object.registerClass("avatarThumbMC", AvatarThumb);
#endinitclip
Symbol 236 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 239 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 242 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 243 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 244 MovieClip [UpArrow] Frame 1
stop();
Symbol 244 MovieClip [UpArrow] Frame 2
stop();
Symbol 244 MovieClip [UpArrow] Frame 3
stop();
Symbol 246 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 248 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 250 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 251 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 252 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 253 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 254 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 255 MovieClip [DownArrow] Frame 1
stop();
Symbol 255 MovieClip [DownArrow] Frame 2
stop();
Symbol 255 MovieClip [DownArrow] Frame 3
stop();
Symbol 258 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 259 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 263 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 263 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 267 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 4
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 259 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 267 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 264 MovieClip "loadContent" in Symbol 267 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 275 Button
on (release) {
gotoAndStop ("hi");
}
Symbol 286 Button
on (release) {
gotoAndStop ("skate");
}
Instance of Symbol 298 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_parent._parent.dude)) {
_global.swingok = true;
_global.Gjumpok = 1;
_global.Gspeedy = 0;
if (skateok) {
_global.skateok = false;
}
}
}
Symbol 319 MovieClip Frame 1
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 13
this.scoreok = true;
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 10
stop();
Instance of Symbol 332 MovieClip "swinger" in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
this._rotation = 0;
}
onClipEvent (enterFrame) {
if (balance) {
this._visible = true;
this._rotation = this._rotation + swingdirection;
if (Key.isDown(39)) {
this._rotation = this._rotation + 4;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 4;
}
} else {
this.stop();
this._visible = false;
this._rotation = 0;
}
if ((this._rotation > 70) && (swingdirection)) {
_parent._parent.dude.stop();
_parent._parent.dude.gotoAndPlay("fall");
this._rotation = 0;
_global.Gjumpokaftercone = false;
_global.Gspeed = 0;
_global.swingdirection = false;
_parent._parent.dude.gotoAndPlay("fall");
}
if ((this._rotation < -70) && (swingdirection)) {
this._rotation = 0;
_parent._parent.dude.gotoAndPlay("fall");
_parent._parent.dude.stop();
_global.Gjumpokaftercone = false;
_global.Gspeed = 0;
_global.swingdirection = false;
_parent._parent.dude.gotoAndPlay("fall");
}
}
Symbol 339 MovieClip Frame 2
_global.swingdirection = -2;
Symbol 339 MovieClip Frame 49
_global.swingdirection = 2;
Symbol 339 MovieClip Frame 104
gotoAndPlay ("reswing");
Symbol 340 Button
on (keyPress "<Space>") {
if (Gjumpok && (Gjumpokaftercone)) {
_parent.resetswinger();
dude.gotoAndPlay("jump");
_global.Gjumpok = 0;
_global.Gspeedy = _global.Gspeedy - 15;
_global.skateok = true;
}
}
on (keyPress "<Right>") {
if (railjumpok) {
_global.Gdudespeed = 0;
} else {
_global.Gdudespeed = 5;
}
}
on (keyPress "<Left>") {
if (railjumpok) {
_global.Gdudespeed = 0;
} else {
_global.Gdudespeed = -5;
}
}
Symbol 382 MovieClip Frame 4
stop();
stopAllSounds();
Symbol 382 MovieClip Frame 13
gotoAndStop ("skating");
Symbol 382 MovieClip Frame 44
gotoAndStop ("skating");
Symbol 382 MovieClip Frame 50
gotoAndPlay ("grind");
Symbol 382 MovieClip Frame 80
gowhere = "go" add Glevel;
_parent.gotoAndPlay(gowhere);
gotoAndStop ("skating");
Instance of Symbol 384 MovieClip in Symbol 385 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _parent._parent.onscreenscrolls * 8;
}
Symbol 390 Button
on (press) {
startDrag (controls_mc, true);
controls_mc.gotoAndPlay("start");
}
on (rollOut) {
stopDrag();
controls_mc.play();
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 5
stop();
Symbol 396 MovieClip Frame 9
this._x = 1000;
Symbol 400 Button
on (release) {
_global.swingdirection = true;
_global.lives = Number(3);
onscreenscrolls = Number(0);
gotoAndPlay ("skate");
}
Symbol 401 Button
on (release) {
gotoAndPlay ("init");
}
Symbol 407 Button
on (release) {
onscreenscrolls = Number(0);
gotoAndPlay ("level2");
}
Instance of Symbol 298 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = 0;
if (this.hitTest(_parent._parent.dude)) {
_global.Gjumpok = true;
_global.Gspeedy = 0;
if (skateok) {
_global.skateok = false;
}
}
}
Symbol 421 Button
on (release) {
gotoAndPlay ("init");
}
Symbol 423 Button
on (release) {
onscreenscrolls = Number(0);
gotoAndPlay ("level3");
}
Instance of Symbol 298 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = 0;
if (this.hitTest(_parent._parent.dude)) {
_global.Gjumpok = true;
_global.Gspeedy = 0;
if (skateok) {
_global.skateok = false;
}
}
}
Symbol 437 Button
on (release) {
_global.lives = Number(3);
onscreenscrolls = Number(0);
gotoAndPlay ("skate");
}
Symbol 442 Button
on (release) {
_global.lives = Number(3);
onscreenscrolls = Number(0);
_root.score = 0;
gotoAndStop ("skate");
}
Symbol 451 Button
on (release) {
_global.lives = Number(3);
onscreenscrolls = Number(0);
_root.score = 0;
gotoAndStop ("init");
}
Symbol 454 Button
on (release) {
_root.score = 0;
_global.lives = Number(3);
onscreenscrolls = Number(0);
gotoAndStop ("skate");
}
Symbol 456 MovieClip Frame 1
stop();
lb_mc._visible = false;
szURL = "../../../../php/requestScores.php?sGameType=K_SKATE&iStartRange=0&iEndRange=20";
xmlSubmit = new XML();
xmlSubmit.ignoreWhite = true;
xmlSubmit.onLoad = function (success) {
if (success) {
if (this.firstChild.nodeName == "sError") {
message_txt.text = "Sorry\nWe currently have a problem loading the Leaderboard.\nPlease try later.";
} else {
xmlScores = this.firstChild.childNodes;
var _local2 = lb_mc.getScrollContent();
var _local1 = 1;
while (_local1 <= xmlScores.length) {
_local2["rank_" + _local1] = _local1 + ".";
xmlItem = xmlScores[_local1 - 1].childNodes;
_local2["name_" + _local1] = xmlItem[0].childNodes.toString();
_local2["score_" + _local1] = xmlItem[1].childNodes.toString();
xmlAvatar = xmlItem[2].childNodes;
iSex = xmlAvatar[0].childNodes.toString();
iHead = xmlAvatar[1].childNodes.toString();
_local2[("av" + _local1) + "_mc"].paint(int(iSex), int(iHead));
_local1++;
}
lb_mc.refreshPane();
lb_mc._visible = true;
}
message_txt._visible = false;
} else {
message_txt.text = "Sorry\nWe currently have a problem loading the Leaderboard.\nPlease try later.";
}
};
xmlSubmit.load(szURL);
Instance of Symbol 267 MovieClip [FScrollPaneSymbol] "lb_mc" in Symbol 456 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "mc_leaderboardData";
hScroll = "false";
vScroll = "auto";
dragContent = false;
}