Frame 1
var gkl = (new com.miniclip.gatekeeper.GatekeeperLoader());
gkl.onResult = function (ok) {
if (ok) {
gotoAndPlay ("loadme");
} else {
stop();
gotoAndStop ("fail");
}
};
gkl.start();
Frame 2
function calc() {
var _local2 = Math.round((_root.a / _root.b) * 100);
bar_mc.gotoAndStop(_local2);
}
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
a = getBytesLoaded();
b = getBytesTotal();
setInterval(calc, 100);
c = Math.ceil((a / b) * 100) + "%";
loadbar_mc.bar_mc._xscale = Math.ceil((a / b) * 100);
Frame 3
if (a == b) {
gotoAndPlay ("splash");
} else {
gotoAndPlay (2);
}
Frame 5
runner = SharedObject.getLocal("run_profile");
_global.seenIt = false;
Color_alles = 0;
_global.batman = false;
_global.quali_light = true;
_global.Mute = false;
_global.startUp = false;
Frame 7
_global.startUp = false;
_global.usedBoard = false;
_global.gotoLocal = false;
_global.skip_scr = false;
_global.Paused = true;
_global.isMenu = true;
_global.SlowMo = false;
_global.Current_Speed = 0;
_global.gap = 175;
_global.Boosting = false;
_global.dist = 0;
_global.Oily = false;
_global.mouse_time = 0;
_global.thattheone = 0;
_global.die = false;
_global.scr_add = 0;
_global.f_Dist = 0;
_global.On_Ramps = 0;
_global.Times_Jumped = 0;
_global.Tramps_Taken = 0;
_global.Wipe_Outs = 0;
_global.Close_Calls = 0;
_global.Air_Time = 0;
_global.Multi_Collect = 0;
_global.Small_Bonus = 0;
_global.Big_Bonus = 0;
Frame 8
function zoomCamera(amount) {
zoom = amount;
hero_clip = all_mc.hero_mc;
midX = ((1 / zoom) * 800) * 0.5;
midY = ((1 / zoom) * 400) * 0.5;
camX = midX - 400;
camY = midY - 200;
all_mc._xscale = (all_mc._yscale = zoom * 100);
}
function moveCameraY() {
hero_clip = all_mc.hero_mc;
deltaY = hero_clip._y - heroLastY;
heroLastY = hero_clip._y;
camY = camY - (0.09 * (camY - (((deltaY > 1) ? 0.6 : 1.2) * midY)));
if (all_mc._y >= -600) {
_global.die = false;
if (_global.Paused == false) {
all_mc._y = all_mc._y - (0.15 * (all_mc._y - ((camY - hero_clip._y) * zoom)));
}
} else {
_global.die = true;
all_mc.jump_checker_mc.gotoAndStop(3);
hero_clip.gotoAndStop("death");
all_mc.speedX = 0;
}
}
MenuKeys = function () {
pause_key = (Key.isDown(80) || (Key.isDown(27))) || (Key.isDown(81));
};
ColorPlatz = function () {
var _local9 = new Color(all_mc.plat1_mc.plat_mc);
var _local7 = new Color(all_mc.plat2_mc.plat_mc);
var _local8 = new Color(all_mc.plat3_mc.plat_mc);
var _local6 = new Color(all_mc.plat4_mc.plat_mc);
var _local2 = new Color(all_mc.foreGround_mc);
var _local4 = new Color(all_mc.bg1_mc);
var _local3 = new Color(all_mc.bg2_mc);
var _local5 = new Color(all_mc.bgplat_mc);
var _local1 = new Object();
_local1.ra = PlatPallet[Color_alles][0];
_local1.rb = PlatPallet[Color_alles][1];
_local1.ga = PlatPallet[Color_alles][2];
_local1.gb = PlatPallet[Color_alles][3];
_local1.ba = PlatPallet[Color_alles][4];
_local1.bb = PlatPallet[Color_alles][5];
_local2.setTransform(_local1);
_local4.setTransform(_local1);
_local3.setTransform(_local1);
_local5.setTransform(_local1);
};
PlatPallet = [[100, 0, 100, 0, 100, 25], [100, 0, 100, 25, 100, 0], [100, 25, 100, 0, 100, 0]];
ColorWavez = function () {
var _local7 = new Color(all_mc.wave1_mc);
var _local4 = new Color(all_mc.wave2_mc);
var _local6 = new Color(all_mc.wave3_mc);
var _local2 = new Color(all_mc.wave4_mc);
var _local3 = new Color(all_mc.wave5_mc);
var _local5 = new Color(all_mc.surf_mc.wave_mc);
var _local1 = new Object();
_local1.ra = WavePallet[Color_alles][0];
_local1.rb = WavePallet[Color_alles][1];
_local1.ga = WavePallet[Color_alles][2];
_local1.gb = WavePallet[Color_alles][3];
_local1.ba = WavePallet[Color_alles][4];
_local1.bb = WavePallet[Color_alles][5];
_local7.setTransform(_local1);
_local4.setTransform(_local1);
_local6.setTransform(_local1);
_local2.setTransform(_local1);
_local3.setTransform(_local1);
_local5.setTransform(_local1);
};
WavePallet = [[100, -100, 100, 0, 100, 120], [100, 0, 100, 90, 0, 0], [100, 120, 100, -25, 0, 0]];
ColorBright = function () {
var _local2 = new Color(all_mc.bg3_mc);
var _local1 = new Object();
_local1.ra = BGPallet[Color_alles][0];
_local1.rb = BGPallet[Color_alles][1];
_local1.ga = BGPallet[Color_alles][2];
_local1.gb = BGPallet[Color_alles][3];
_local1.ba = BGPallet[Color_alles][4];
_local1.bb = BGPallet[Color_alles][5];
_local2.setTransform(_local1);
};
BGPallet = [[100, 0, 100, 0, 100, 55], [100, 0, 100, 55, 100, 0], [100, 55, 100, 0, 100, 0]];
Frame 9
stop();
_global.isMenu = true;
_global.Air_Time = 0;
Instance of Symbol 541 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_parent.Color_alles == 0) {
gotoAndStop ("flood");
}
if (_parent.Color_alles == 1) {
gotoAndStop ("slime");
}
if (_parent.Color_alles == 2) {
gotoAndStop ("lava");
}
}
Instance of Symbol 555 MovieClip "theme_mc" in Frame 9
onClipEvent (load) {
if (_root.Color_alles == 0) {
gotoAndStop (1);
} else if (_root.Color_alles == 1) {
gotoAndStop (2);
} else if (_root.Color_alles == 2) {
gotoAndStop (3);
}
}
Instance of Symbol 580 MovieClip "char_mc" in Frame 9
onClipEvent (load) {
if (_global.batman == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
_global.batman = false;
} else if (this._currentframe == 2) {
_global.batman = true;
}
}
Frame 11
stop();
hero_clip = all_mc.hero_mc;
heroLastY = hero_clip._y;
zoom = 1;
zoomCamera(zoom);
ColorWavez();
ColorBright();
onEnterFrame = function () {
MenuKeys();
moveCameraY();
MouseHider();
if ((((all_mc.hero_mc._y <= -50) && (_global.Paused == false)) && (_global.die == false)) && (_global.isMenu == false)) {
thescore_mc.air_mc.gotoAndStop(2);
_global.Air_Time++;
} else {
thescore_mc.air_mc.gotoAndStop(1);
}
if ((pause_key && (_global.die == false)) && (_global.isMenu == false)) {
if (pause_mc._currentframe == 1) {
_global.Paused = true;
pause_mc.gotoAndPlay("paused");
}
}
};
PauseBtn.onRelease = function () {
if (pause_mc._currentframe == 1) {
_global.Paused = true;
pause_mc.gotoAndPlay("paused");
}
};
miniBtn.onRelease = function () {
getURL ("http://www.miniclip.com", "_blank");
if (_global.Paused == false) {
if (pause_mc._currentframe == 1) {
pause_mc.gotoAndPlay("paused");
}
_global.Paused = true;
}
};
onMouseMove = function () {
HideThatMouse = 60;
if (_global.isMenu == true) {
cur_mc._visible = false;
Mouse.show();
} else if (_global.isMenu == false) {
if (_xmouse >= 730) {
cur_mc._visible = true;
cur_mc.gotoAndStop(2);
Mouse.show();
} else if (_xmouse <= 730) {
cur_mc._visible = true;
cur_mc.gotoAndStop(1);
Mouse.hide();
}
}
};
HideThatMouse = 60;
MouseHider = function () {
cur_mc._x = _xmouse;
cur_mc._y = _ymouse;
updateAfterEvent();
if (HideThatMouse > 0) {
HideThatMouse--;
}
if (HideThatMouse == 0) {
cur_mc._visible = false;
HideThatMouse = -1;
}
};
Instance of Symbol 904 MovieClip "speed_mc" in Frame 11
onClipEvent (load) {
var distance_txt = 0;
maxx = false;
mixx = false;
}
onClipEvent (enterFrame) {
if (_global.die == false) {
var speed_txt = Math.floor(Math.floor(_global.Current_Speed * 5.6) / 2);
distance_txt = Math.floor(Math.abs(_global.dist));
if (_global.Boosting == false) {
pin_mc._rotation = _global.Current_Speed * 5.6;
} else if (_global.Boosting == true) {
pin_mc._rotation = 180;
}
if (speed_txt >= 68) {
pin_mc.gotoAndStop("shake");
} else {
pin_mc.gotoAndStop(1);
}
}
if (_global.die == true) {
pin_mc.gotoAndStop(1);
speed_txt = speed_txt - 4;
pin_mc._rotation = pin_mc._rotation - 4;
if (speed_txt <= 0) {
speed_txt = 0;
}
if ((pin_mc._rotation <= 0) && (pin_mc._rotation >= -5)) {
pin_mc._rotation = 0;
}
}
}
Instance of Symbol 956 MovieClip "thescore_mc" in Frame 11
onClipEvent (load) {
_global.multiplier = 1;
var scr_txt = 0;
}
onClipEvent (enterFrame) {
if (_global.die == true) {
this._visible = false;
} else {
this._visible = true;
}
newDist = _global.multiplier * 2;
if (air_mc._currentframe == 2) {
newDist = newDist * 2;
}
if ((_global.die == false) && (_global.Paused == false)) {
scr_txt = scr_txt + newDist;
}
multi_mc.gotoAndStop(_global.multiplier);
}
Instance of Symbol 972 MovieClip "canSurf_mc" in Frame 11
onClipEvent (load) {
_global.usedBoard = false;
}
onClipEvent (enterFrame) {
if (_global.usedBoard == true) {
gotoAndStop (3);
}
}
Instance of Symbol 997 MovieClip "theme_mc" in Frame 11
onClipEvent (load) {
if (_quality == "BEST") {
gotoAndStop (2);
} else if (_quality == "MEDIUM") {
gotoAndStop (3);
} else if (_quality == "LOW") {
gotoAndStop (4);
}
}
Frame 12
onEnterFrame = function () {
};
Instance of Symbol 1078 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_parent.Color_alles == 0) {
gotoAndStop ("flood");
}
if (_parent.Color_alles == 1) {
gotoAndStop ("slime");
}
if (_parent.Color_alles == 2) {
gotoAndStop ("lava");
}
}
Instance of Symbol 1111 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_parent.Color_alles == 0) {
gotoAndStop ("flood");
}
if (_parent.Color_alles == 1) {
gotoAndStop ("slime");
}
if (_parent.Color_alles == 2) {
gotoAndStop ("lava");
}
}
Instance of Symbol 1112 MovieClip "char_mc" in Frame 13
onClipEvent (load) {
if (_global.batman == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
_global.batman = false;
} else if (this._currentframe == 2) {
_global.batman = true;
}
}
Frame 20
stop();
Mouse.show();
var myHighscores = com.miniclip.highscores.HighscoresLoader.start();
myHighscores.onClose = function () {
gotoAndPlay ("reset");
};
Frame 21
stop();
delete eval (onEnterFrame());
Symbol 34 MovieClip Frame 10
gotoAndPlay ("loop");
Symbol 44 MovieClip Frame 9
if (_global.Oily == false) {
_parent.gotoAndStop("run");
} else {
_parent.gotoAndStop("oil_slide");
}
Symbol 50 MovieClip Frame 1
ColorSplash = function () {
var _local4 = new Color(this);
var _local3 = new Object();
_local3.ra = SplashPallet[_root.Color_alles][0];
_local3.rb = SplashPallet[_root.Color_alles][1];
_local3.ga = SplashPallet[_root.Color_alles][2];
_local3.gb = SplashPallet[_root.Color_alles][3];
_local3.ba = SplashPallet[_root.Color_alles][4];
_local3.bb = SplashPallet[_root.Color_alles][5];
_local4.setTransform(_local3);
};
SplashPallet = [[100, -100, 100, 0, 100, 120], [100, 0, 100, 90, 0, 0], [100, 120, 100, -25, 0, 0]];
ColorSplash();
onEnterFrame = function () {
if (_parent._y >= 428) {
this._visible = true;
} else {
this._visible = false;
}
};
Symbol 50 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 55 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
this.play();
} else {
this.stop();
}
};
Symbol 89 MovieClip Frame 1
var swish = new Sound(this);
swish.attachSound("swish");
swish.setVolume(50);
if (_global.Mute == false) {
swish.start();
}
Symbol 89 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 100 MovieClip Frame 1
var swish = new Sound(this);
swish.attachSound("swish");
swish.setVolume(50);
if (_global.Mute == false) {
swish.start();
}
Symbol 100 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 137 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.deltaY = -4;
this.play();
} else {
this.stop();
}
};
Symbol 137 MovieClip Frame 100
delete eval (onEnterFrame(this));
_global.SlowMo = false;
_parent._parent.speedX = 25;
_parent.gotoAndStop("double");
Symbol 185 MovieClip Frame 20
Symbol 185 MovieClip Frame 41
_global.SlowMo = false;
gotoAndPlay ("loop");
Symbol 198 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 201 MovieClip Frame 23
gotoAndPlay ("loop");
Symbol 212 MovieClip Frame 10
gotoAndPlay ("loop");
Symbol 224 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 241 MovieClip Frame 9
stop();
Symbol 242 MovieClip [Bat] Frame 1
var land1 = _parent.plat1_mc.plat_mc.floor_mc;
var land2 = _parent.plat2_mc.plat_mc.floor_mc;
var land3 = _parent.plat3_mc.plat_mc.floor_mc;
var land4 = _parent.plat4_mc.plat_mc.floor_mc;
var ramp1 = _parent.plat1_mc.ramp_mc;
var ramp2 = _parent.plat2_mc.ramp_mc;
var ramp3 = _parent.plat3_mc.ramp_mc;
var ramp4 = _parent.plat4_mc.ramp_mc;
_global.spaceHold = false;
_global.isGliding = false;
jump_max = -10;
jump_push = -0.5;
jump_double = -10;
deltaY = 0;
gravity = 0.9;
posY = this._y;
hitCheck = function (clip, localX, localY) {
var _local2 = new flash.geom.Point(localX, localY);
_parent.localToGlobal(_local2);
return(clip.hitTest(_local2.x, _local2.y, true));
};
check_floor = function () {
onFloor = false;
if (deltaY >= 0) {
if (hitCheck(land1, this._x, posY - 12)) {
deltaY = 0;
posY = posY - 12;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
}
this._y = posY;
};
check_ramp = function () {
onRamp = false;
if (_global.SlowMo == false) {
if (hitCheck(ramp1, this._x, posY - 12)) {
deltaY = 0;
posY = posY - 11;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 3;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 3;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 3;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
}
this._y = posY;
};
grav = function () {
if (_global.Paused == false) {
deltaY = deltaY + gravity;
if (deltaY >= 20) {
deltaY = 20;
}
posY = posY + deltaY;
this._y = posY;
}
};
checkKeys = function () {
if (_global.Paused == false) {
keyspace = Key.isDown(32);
}
};
checkSide = function () {
topHead = ((hitCheck(land1, (this._x + 12) + _parent.deltaX, posY - 50) || (hitCheck(land2, (this._x + 12) + _parent.deltaX, posY - 50))) || (hitCheck(land3, (this._x + 12) + _parent.deltaX, posY - 50))) || (hitCheck(land4, (this._x + 12) + _parent.deltaX, posY - 50));
};
Symbol 242 MovieClip [Bat] Frame 2
stop();
deltaY = 2;
_global.isGliding = false;
_global.Boosting = false;
_global.Oily = false;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
checkKeys();
if ((deltaY >= -5) && (deltaY <= 4)) {
if (keyspace || (_global.jump_check == true)) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
if (deltaY >= 4) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
_global.spaceHold = true;
gotoAndStop ("glide");
}
}
if (floor) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (_global.Paused == false) {
falll_mc.play();
} else {
falll_mc.stop();
}
};
Symbol 242 MovieClip [Bat] Frame 3
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
_global.Oily = false;
onEnterFrame = function () {
checkSide();
grav();
check_ramp();
check_floor();
if (_global.Paused == false) {
roll_mc.play();
} else {
roll_mc.stop();
}
};
Symbol 242 MovieClip [Bat] Frame 4
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
onEnterFrame = function () {
checkSide();
};
Symbol 242 MovieClip [Bat] Frame 5
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
deltaY = 0;
_global.Oily = false;
onEnterFrame = function () {
if (_global.Paused == false) {
if (_global.Mute == false) {
_parent.pl_sound_mc.feet.setVolume(100);
}
}
if ((_global.Paused == true) || (_global.Mute == true)) {
_parent.pl_sound_mc.feet.setVolume(0);
}
check_floor();
checkKeys();
check_ramp();
if (_global.Oily == true) {
gotoAndStop ("oil_slide");
}
floor = ((hitCheck(land1, this._x, posY + 2) || (hitCheck(land2, this._x, posY + 2))) || (hitCheck(land3, this._x, posY + 2))) || (hitCheck(land4, this._x, posY + 2));
ramp = ((hitCheck(ramp1, this._x, posY + 2) || (hitCheck(ramp2, this._x, posY + 2))) || (hitCheck(ramp3, this._x, posY + 2))) || (hitCheck(ramp4, this._x, posY + 2));
if ((!floor) && (!ramp)) {
_parent.pl_sound_mc.feet.setVolume(0);
gotoAndStop ("fall");
}
if (floor) {
if (keyspace || (_global.jump_check == true)) {
_global.spaceHold = true;
_parent.pl_sound_mc.feet.setVolume(0);
gotoAndStop ("jump");
}
}
if (ramp) {
if (keyspace || (_global.jump_check == true)) {
_global.spaceHold = true;
_parent.pl_sound_mc.feet.setVolume(0);
gotoAndStop ("jump_ramp");
}
}
if (_global.Paused == false) {
run_mc.play();
} else {
run_mc.stop();
}
};
Symbol 242 MovieClip [Bat] Frame 6
stop();
_global.isGliding = false;
_global.Times_Jumped++;
deltaY = jump_max;
mm = 0;
_global.Oily = false;
_global.SlowMo = false;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
checkKeys();
check_ramp();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (!keyspace) {
_global.spaceHold = false;
}
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if ((deltaY >= -5) && (deltaY <= 4)) {
if (keyspace || (_global.jump_check == true)) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
}
if (deltaY >= 4) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("glide");
}
}
}
};
Symbol 242 MovieClip [Bat] Frame 7
stop();
_global.Times_Jumped++;
deltaY = jump_max;
mm = 0;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
checkKeys();
check_ramp();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (!keyspace) {
_global.spaceHold = false;
}
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (deltaY >= -3) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("glide");
}
}
}
};
Symbol 242 MovieClip [Bat] Frame 8
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
onEnterFrame = function () {
};
Symbol 242 MovieClip [Bat] Frame 9
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Times_Jumped++;
_global.SlowMo = true;
_root.canSurf_mc.gotoAndStop(3);
_global.Boosting = false;
mm = 0;
onEnterFrame = function () {
grav();
checkKeys();
};
Symbol 242 MovieClip [Bat] Frame 10
stop();
_global.Times_Jumped++;
_parent.pl_sound_mc.feet.setVolume(0);
deltaY = random(15) - 30;
_parent.speedX = 30;
mm = 0;
_global.SlowMo = false;
onEnterFrame = function () {
grav();
checkKeys();
if (deltaY >= 0) {
_global.spaceHold = false;
gotoAndStop ("double");
}
};
Instance of Symbol 165 MovieClip in Symbol 242 MovieClip [Bat] Frame 10
onClipEvent (enterFrame) {
this.gotoAndPlay(this._currentframe + 10);
}
Symbol 242 MovieClip [Bat] Frame 11
stop();
_global.isGliding = true;
var gotWings = new Sound(this);
gotWings.attachSound("gotWings");
gotWings.setVolume(100);
if (_global.Mute == false) {
gotWings.start();
}
_global.Times_Jumped++;
deltaY = -11;
mm = 0;
onEnterFrame = function () {
if (_global.Paused == false) {
_root.wings_mc.bar_mc._xscale = _root.wings_mc.bar_mc._xscale - 2;
if (_root.wings_mc.bar_mc._xscale <= 1) {
gotoAndStop ("fall_again");
}
grav();
deltaY = deltaY - 0.6;
check_floor();
checkSide();
checkKeys();
if (!keyspace) {
_global.spaceHold = false;
}
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (((!keyspace) && (_global.jump_check == false)) && (_global.spaceHold == false)) {
gotoAndStop ("fall_again");
}
}
};
Symbol 242 MovieClip [Bat] Frame 12
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
onEnterFrame = function () {
grav();
checkKeys();
check_floor();
checkSide();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
gotoAndStop ("glide_again");
}
};
Symbol 242 MovieClip [Bat] Frame 13
stop();
_global.isGliding = true;
var gotWings = new Sound(this);
gotWings.attachSound("gotWings");
gotWings.setVolume(100);
if (_global.Mute == false) {
gotWings.start();
}
_global.Times_Jumped++;
deltaY = -1;
mm = 0;
onEnterFrame = function () {
if (_global.Paused == false) {
_root.wings_mc.bar_mc._xscale = _root.wings_mc.bar_mc._xscale - 2;
if (_root.wings_mc.bar_mc._xscale <= 1) {
gotoAndStop ("fall_again");
}
grav();
deltaY = deltaY - 0.6;
check_floor();
checkSide();
checkKeys();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (((!keyspace) && (_global.jump_check == false)) && (_global.spaceHold == false)) {
gotoAndStop ("fall_again");
}
}
};
Symbol 242 MovieClip [Bat] Frame 14
var endSplash = new Sound(this);
endSplash.attachSound("endSplash");
endSplash.setVolume(80);
if (_global.Mute == false) {
endSplash.start();
}
_root.death_mc.gotoAndPlay("death");
onEnterFrame = function () {
};
_global.Boosting = false;
_global.isGliding = false;
Symbol 242 MovieClip [Bat] Frame 15
_global.spaceHold = false;
_global.Wipe_Outs++;
_global.Boosting = false;
_global.Oily = false;
_parent.pl_sound_mc.feet.setVolume(0);
onEnterFrame = function () {
grav();
checkKeys();
if (deltaY >= 8) {
check_floor();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
gotoAndStop ("land_roll");
}
if (keyspace || (_global.jump_check == true)) {
gotoAndStop ("falling_save");
}
}
};
Symbol 242 MovieClip [Bat] Frame 16
stop();
_global.Boosting = true;
_global.Times_Jumped++;
_global.On_Ramps++;
deltaY = -18;
mm = 0;
_global.SlowMo = false;
_global.spaceHold = true;
onEnterFrame = function () {
grav();
check_floor();
checkKeys();
check_ramp();
if (!keyspace) {
_global.spaceHold = false;
}
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (deltaY >= 0) {
if (floor || (ramp)) {
_global.Boosting = false;
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
}
if (deltaY >= -3) {
if (keyspace || (_global.jump_check == true)) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
}
};
Symbol 242 MovieClip [Bat] Frame 17
stop();
_global.Boosting = false;
_global.Times_Jumped++;
deltaY = jump_max;
mm = 0;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
checkKeys();
check_ramp();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (deltaY >= -3) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
gotoAndStop ("glide");
}
}
};
Symbol 242 MovieClip [Bat] Frame 18
stop();
_global.isGliding = false;
_global.spaceHold = false;
deltaY = 0;
_global.Boosting = true;
_parent.pl_sound_mc.feet.setVolume(0);
onEnterFrame = function () {
check_floor();
checkKeys();
floor = ((hitCheck(land1, this._x, posY + 2) || (hitCheck(land2, this._x, posY + 2))) || (hitCheck(land3, this._x, posY + 2))) || (hitCheck(land4, this._x, posY + 2));
if (!floor) {
gotoAndStop ("boulder");
}
if (floor) {
if (keyspace || (_global.jump_check == true)) {
gotoAndStop ("slide_save");
}
}
if (_global.Paused == false) {
slide_mc.play();
} else {
slide_mc.stop();
}
};
Symbol 242 MovieClip [Bat] Frame 19
stop();
_global.Times_Jumped++;
deltaY = 0;
_global.Oily = false;
onEnterFrame = function () {
check_floor();
checkKeys();
floor = ((hitCheck(land1, this._x, posY + 2) || (hitCheck(land2, this._x, posY + 2))) || (hitCheck(land3, this._x, posY + 2))) || (hitCheck(land4, this._x, posY + 2));
if (!floor) {
gotoAndStop ("fall");
}
if (floor) {
if ((keyspace && (save_mc._currentframe >= 6)) || ((_global.jump_check == true) && (save_mc._currentframe >= 6))) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
};
Symbol 264 MovieClip Frame 10
gotoAndPlay ("loop");
Symbol 283 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
this.play();
} else {
this.stop();
}
};
Symbol 284 MovieClip Frame 9
if (_global.Oily == false) {
_parent.gotoAndStop("run");
} else {
_parent.gotoAndStop("oil_slide");
}
Symbol 305 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 317 MovieClip Frame 18
gotoAndPlay ("loop");
Symbol 318 MovieClip Frame 1
stop();
var swish = new Sound(this);
swish.attachSound("swish");
swish.setVolume(50);
if (_global.Mute == false) {
swish.start();
}
Symbol 329 MovieClip Frame 1
var swish = new Sound(this);
swish.attachSound("swish");
swish.setVolume(40);
if (_global.Mute == false) {
swish.start();
}
Symbol 329 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 370 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.deltaY = -4;
this.play();
} else {
this.stop();
}
};
Symbol 370 MovieClip Frame 100
delete eval (onEnterFrame(this));
_global.SlowMo = false;
_parent._parent.speedX = 25;
_parent.gotoAndStop("double");
Symbol 419 MovieClip Frame 20
Symbol 419 MovieClip Frame 41
_global.SlowMo = false;
gotoAndPlay ("loop");
Symbol 432 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 435 MovieClip Frame 23
gotoAndPlay ("loop");
Symbol 447 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 464 MovieClip Frame 9
stop();
Symbol 465 MovieClip [knight] Frame 1
var land1 = _parent.plat1_mc.plat_mc.floor_mc;
var land2 = _parent.plat2_mc.plat_mc.floor_mc;
var land3 = _parent.plat3_mc.plat_mc.floor_mc;
var land4 = _parent.plat4_mc.plat_mc.floor_mc;
var ramp1 = _parent.plat1_mc.ramp_mc;
var ramp2 = _parent.plat2_mc.ramp_mc;
var ramp3 = _parent.plat3_mc.ramp_mc;
var ramp4 = _parent.plat4_mc.ramp_mc;
_global.spaceHold = false;
_global.isGliding = false;
jump_max = -10;
jump_push = -0.5;
jump_double = -10;
deltaY = 0;
gravity = 0.9;
posY = this._y;
hitCheck = function (clip, localX, localY) {
var _local2 = new flash.geom.Point(localX, localY);
_parent.localToGlobal(_local2);
return(clip.hitTest(_local2.x, _local2.y, true));
};
check_floor = function () {
onFloor = false;
if (deltaY >= 0) {
if (hitCheck(land1, this._x, posY - 12)) {
deltaY = 0;
posY = posY - 12;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land1, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land2, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land3, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 10;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 8;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 6;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 5;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 3;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onFloor = true;
}
if (hitCheck(land4, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 1;
posY = Math.round(posY);
onFloor = true;
}
}
this._y = posY;
};
check_ramp = function () {
onRamp = false;
if (_global.SlowMo == false) {
if (hitCheck(ramp1, this._x, posY - 12)) {
deltaY = 0;
posY = posY - 11;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 3;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp1, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 3;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp2, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp3, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 10)) {
deltaY = 0;
posY = posY - 9;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 8)) {
deltaY = 0;
posY = posY - 7;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 6)) {
deltaY = 0;
posY = posY - 5;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 5)) {
deltaY = 0;
posY = posY - 4;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 4)) {
deltaY = 0;
posY = posY - 3;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 3)) {
deltaY = 0;
posY = posY - 2;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 2)) {
deltaY = 0;
posY = posY - 1;
onRamp = true;
}
if (hitCheck(ramp4, this._x, posY - 1)) {
deltaY = 0;
posY = posY - 0;
posY = Math.round(posY);
onRamp = true;
}
}
this._y = posY;
};
grav = function () {
if (_global.Paused == false) {
deltaY = deltaY + gravity;
if (deltaY >= 20) {
deltaY = 20;
}
posY = posY + deltaY;
this._y = posY;
}
};
checkKeys = function () {
if (_global.Paused == false) {
keyspace = Key.isDown(32);
}
};
checkSide = function () {
topHead = ((hitCheck(land1, (this._x + 12) + _parent.deltaX, posY - 50) || (hitCheck(land2, (this._x + 12) + _parent.deltaX, posY - 50))) || (hitCheck(land3, (this._x + 12) + _parent.deltaX, posY - 50))) || (hitCheck(land4, (this._x + 12) + _parent.deltaX, posY - 50));
};
Symbol 465 MovieClip [knight] Frame 2
stop();
deltaY = 2;
_global.isGliding = false;
_global.Boosting = false;
_global.Oily = false;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
checkKeys();
if ((deltaY >= -5) && (deltaY <= 4)) {
if (keyspace || (_global.jump_check == true)) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
if (deltaY >= 4) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
_global.spaceHold = true;
gotoAndStop ("glide");
}
}
if (floor) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (_global.Paused == false) {
falll_mc.play();
} else {
falll_mc.stop();
}
};
Symbol 465 MovieClip [knight] Frame 3
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
_global.Oily = false;
onEnterFrame = function () {
checkSide();
grav();
check_ramp();
check_floor();
if (_global.Paused == false) {
roll_mc.play();
} else {
roll_mc.stop();
}
};
Symbol 465 MovieClip [knight] Frame 4
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
onEnterFrame = function () {
checkSide();
};
Symbol 465 MovieClip [knight] Frame 5
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
deltaY = 0;
_global.Oily = false;
onEnterFrame = function () {
if (_global.Paused == false) {
if (_global.Mute == false) {
_parent.pl_sound_mc.feet.setVolume(100);
}
}
if ((_global.Paused == true) || (_global.Mute == true)) {
_parent.pl_sound_mc.feet.setVolume(0);
}
check_floor();
checkKeys();
check_ramp();
if (_global.Oily == true) {
gotoAndStop ("oil_slide");
}
floor = ((hitCheck(land1, this._x, posY + 2) || (hitCheck(land2, this._x, posY + 2))) || (hitCheck(land3, this._x, posY + 2))) || (hitCheck(land4, this._x, posY + 2));
ramp = ((hitCheck(ramp1, this._x, posY + 2) || (hitCheck(ramp2, this._x, posY + 2))) || (hitCheck(ramp3, this._x, posY + 2))) || (hitCheck(ramp4, this._x, posY + 2));
if ((!floor) && (!ramp)) {
_parent.pl_sound_mc.feet.setVolume(0);
gotoAndStop ("fall");
}
if (floor) {
if (keyspace || (_global.jump_check == true)) {
_global.spaceHold = true;
_parent.pl_sound_mc.feet.setVolume(0);
gotoAndStop ("jump");
}
}
if (ramp) {
if (keyspace || (_global.jump_check == true)) {
_global.spaceHold = true;
_parent.pl_sound_mc.feet.setVolume(0);
gotoAndStop ("jump_ramp");
}
}
if (_global.Paused == false) {
run_mc.play();
} else {
run_mc.stop();
}
};
Symbol 465 MovieClip [knight] Frame 6
stop();
_global.isGliding = false;
_global.Times_Jumped++;
deltaY = jump_max;
mm = 0;
_global.Oily = false;
_global.SlowMo = false;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
checkKeys();
check_ramp();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (!keyspace) {
_global.spaceHold = false;
}
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if ((deltaY >= -5) && (deltaY <= 4)) {
if (keyspace || (_global.jump_check == true)) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
}
if (deltaY >= 4) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("glide");
}
}
}
};
Instance of Symbol 318 MovieClip in Symbol 465 MovieClip [knight] Frame 6
onClipEvent (load) {
gotoAndStop(random(4) + 1);
}
Symbol 465 MovieClip [knight] Frame 7
stop();
_global.Times_Jumped++;
deltaY = jump_max;
mm = 0;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
checkKeys();
check_ramp();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (!keyspace) {
_global.spaceHold = false;
}
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (deltaY >= -3) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("glide");
}
}
}
};
Symbol 465 MovieClip [knight] Frame 8
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
onEnterFrame = function () {
};
Symbol 465 MovieClip [knight] Frame 9
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Times_Jumped++;
_global.SlowMo = true;
_root.canSurf_mc.gotoAndStop(3);
_global.Boosting = false;
mm = 0;
onEnterFrame = function () {
grav();
checkKeys();
};
Symbol 465 MovieClip [knight] Frame 10
stop();
_global.Times_Jumped++;
_parent.pl_sound_mc.feet.setVolume(0);
deltaY = random(15) - 30;
_parent.speedX = 30;
mm = 0;
_global.SlowMo = false;
onEnterFrame = function () {
grav();
checkKeys();
if (deltaY >= 0) {
_global.spaceHold = false;
gotoAndStop ("double");
}
};
Instance of Symbol 400 MovieClip in Symbol 465 MovieClip [knight] Frame 10
onClipEvent (enterFrame) {
this.gotoAndPlay(this._currentframe + 10);
}
Symbol 465 MovieClip [knight] Frame 11
stop();
_global.isGliding = true;
var gotWings = new Sound(this);
gotWings.attachSound("gotWings");
gotWings.setVolume(100);
if (_global.Mute == false) {
gotWings.start();
}
_global.Times_Jumped++;
deltaY = -11;
mm = 0;
onEnterFrame = function () {
if (_global.Paused == false) {
_root.wings_mc.bar_mc._xscale = _root.wings_mc.bar_mc._xscale - 2;
if (_root.wings_mc.bar_mc._xscale <= 1) {
gotoAndStop ("fall_again");
}
grav();
deltaY = deltaY - 0.6;
check_floor();
checkSide();
checkKeys();
if (!keyspace) {
_global.spaceHold = false;
}
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (((!keyspace) && (_global.jump_check == false)) && (_global.spaceHold == false)) {
gotoAndStop ("fall_again");
}
}
};
Symbol 465 MovieClip [knight] Frame 12
stop();
_global.isGliding = false;
_global.spaceHold = false;
_global.Boosting = false;
onEnterFrame = function () {
grav();
checkKeys();
check_floor();
checkSide();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
gotoAndStop ("glide_again");
}
};
Symbol 465 MovieClip [knight] Frame 13
stop();
_global.isGliding = true;
var gotWings = new Sound(this);
gotWings.attachSound("gotWings");
gotWings.setVolume(100);
if (_global.Mute == false) {
gotWings.start();
}
_global.Times_Jumped++;
deltaY = -1;
mm = 0;
onEnterFrame = function () {
if (_global.Paused == false) {
_root.wings_mc.bar_mc._xscale = _root.wings_mc.bar_mc._xscale - 2;
if (_root.wings_mc.bar_mc._xscale <= 1) {
gotoAndStop ("fall_again");
}
grav();
deltaY = deltaY - 0.6;
check_floor();
checkSide();
checkKeys();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (((!keyspace) && (_global.jump_check == false)) && (_global.spaceHold == false)) {
gotoAndStop ("fall_again");
}
}
};
Symbol 465 MovieClip [knight] Frame 14
var endSplash = new Sound(this);
endSplash.attachSound("endSplash");
endSplash.setVolume(80);
if (_global.Mute == false) {
endSplash.start();
}
_root.death_mc.gotoAndPlay("death");
onEnterFrame = function () {
};
_global.Boosting = false;
_global.isGliding = false;
Symbol 465 MovieClip [knight] Frame 15
_global.spaceHold = false;
_global.Wipe_Outs++;
_global.Boosting = false;
_global.Oily = false;
_parent.pl_sound_mc.feet.setVolume(0);
onEnterFrame = function () {
grav();
checkKeys();
if (deltaY >= 8) {
check_floor();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
gotoAndStop ("land_roll");
}
if (keyspace || (_global.jump_check == true)) {
gotoAndStop ("falling_save");
}
}
};
Symbol 465 MovieClip [knight] Frame 16
stop();
_global.Boosting = true;
_global.Times_Jumped++;
_global.On_Ramps++;
deltaY = -18;
mm = 0;
_global.SlowMo = false;
_global.spaceHold = true;
onEnterFrame = function () {
grav();
check_floor();
checkKeys();
check_ramp();
if (!keyspace) {
_global.spaceHold = false;
}
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (deltaY >= 0) {
if (floor || (ramp)) {
_global.Boosting = false;
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
}
if (deltaY >= -3) {
if (keyspace || (_global.jump_check == true)) {
if (_global.spaceHold == false) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
}
};
Instance of Symbol 318 MovieClip in Symbol 465 MovieClip [knight] Frame 16
onClipEvent (load) {
gotoAndStop(random(4) + 1);
}
Symbol 465 MovieClip [knight] Frame 17
stop();
_global.Boosting = false;
_global.Times_Jumped++;
deltaY = jump_max;
mm = 0;
onEnterFrame = function () {
grav();
check_floor();
checkSide();
checkKeys();
check_ramp();
floor = ((hitCheck(land1, this._x, posY + 1) || (hitCheck(land2, this._x, posY + 1))) || (hitCheck(land3, this._x, posY + 1))) || (hitCheck(land4, this._x, posY + 1));
ramp = ((hitCheck(ramp1, this._x, posY + 1) || (hitCheck(ramp2, this._x, posY + 1))) || (hitCheck(ramp3, this._x, posY + 1))) || (hitCheck(ramp4, this._x, posY + 1));
if (floor || (ramp)) {
if (_global.Oily == false) {
gotoAndStop ("run");
} else {
gotoAndStop ("oil_slide");
}
}
if (deltaY >= -3) {
if ((keyspace && (_global.glide_open == true)) || ((_global.jump_check == true) && (_global.glide_open == true))) {
gotoAndStop ("glide");
}
}
};
Symbol 465 MovieClip [knight] Frame 18
stop();
_global.isGliding = false;
_global.spaceHold = false;
deltaY = 0;
_global.Boosting = true;
_parent.pl_sound_mc.feet.setVolume(0);
onEnterFrame = function () {
check_floor();
checkKeys();
floor = ((hitCheck(land1, this._x, posY + 2) || (hitCheck(land2, this._x, posY + 2))) || (hitCheck(land3, this._x, posY + 2))) || (hitCheck(land4, this._x, posY + 2));
if (!floor) {
gotoAndStop ("boulder");
}
if (floor) {
if (keyspace || (_global.jump_check == true)) {
gotoAndStop ("slide_save");
}
}
if (_global.Paused == false) {
slide_mc.play();
} else {
slide_mc.stop();
}
};
Symbol 465 MovieClip [knight] Frame 19
stop();
_global.Times_Jumped++;
deltaY = 0;
_global.Oily = false;
onEnterFrame = function () {
check_floor();
checkKeys();
floor = ((hitCheck(land1, this._x, posY + 2) || (hitCheck(land2, this._x, posY + 2))) || (hitCheck(land3, this._x, posY + 2))) || (hitCheck(land4, this._x, posY + 2));
if (!floor) {
gotoAndStop ("fall");
}
if (floor) {
if ((keyspace && (save_mc._currentframe >= 6)) || ((_global.jump_check == true) && (save_mc._currentframe >= 6))) {
_global.spaceHold = true;
gotoAndStop ("double");
}
}
};
Symbol 467 MovieClip [message_multi10] Frame 50
stop();
removeMovieClip(this);
Symbol 469 MovieClip [message_multi5] Frame 50
stop();
removeMovieClip(this);
Symbol 476 MovieClip [message_small] Frame 50
stop();
removeMovieClip(this);
Symbol 477 MovieClip [message_big] Frame 50
stop();
removeMovieClip(this);
Symbol 516 MovieClip [tramp] Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_parent._parent.hero_mc)) {
if (_global.SlowMo == false) {
_global.Boosting = true;
_parent._parent.hero_mc.gotoAndStop("tramp");
play();
}
}
};
Symbol 516 MovieClip [tramp] Frame 2
play();
if (_global.Mute == false) {
_parent._parent.ef_sound_mc.Spring.start();
}
_global.Tramps_Taken++;
Symbol 516 MovieClip [tramp] Frame 15
stop();
Symbol 527 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 1123 MovieClip [__Packages.com.miniclip.gatekeeper.GatekeeperLoader] Frame 0
class com.miniclip.gatekeeper.GatekeeperLoader
{
var _ldr, onResult;
function GatekeeperLoader () {
applySecurity(getAllowedDomains());
}
function start() {
_ldr = new MovieClipLoader();
var _local4 = _root.createEmptyMovieClip("gatekeeper", _root.getNextHighestDepth());
_ldr.addListener(this);
var _local3 = _GATEKEEPER_URL;
if (((_root._url.indexOf("://cms.miniclip.com/") == 4) || (_root._url.indexOf("://developers.miniclip.com/") == 4)) || (_root._url.indexOf("file://") == 0)) {
_local3 = _local3.split("://www.miniclip.com/").join("://cms.miniclip.com/");
}
_ldr.loadClip(_local3, _local4);
}
function getAllowedDomains() {
var _local1 = new Array();
_local1.push("www.miniclip.com");
_local1.push("cms.miniclip.com");
return(_local1);
}
function applySecurity(domains) {
var _local1 = 0;
while (_local1 < domains.length) {
System.security.allowDomain(domains[_local1]);
_local1++;
}
}
function onLoadInit(tgt_mc) {
var _local3 = tgt_mc.gatekeeper;
var _local4;
if (_url.substr(0, 7) == "file://") {
onResult(true);
} else {
var _local5 = String(flash.external.ExternalInterface.call(" function(){ return document.location.href.toString();} "));
_local4 = _local3.validateDomain(_local5, _root._url);
if (_local4) {
onResult(true);
} else {
loadAlert();
onResult(false);
}
}
}
function loadAlert() {
_root.gatekeeper.loadMovie(_OFFSITE_URL);
}
var _GATEKEEPER_URL = "http://www.miniclip.com/swfcontent/components/gatekeeper_as2.swf";
var _OFFSITE_URL = "http://www.miniclip.com/swfcontent/components/game_offsite_as2.swf";
}
Symbol 1124 MovieClip [__Packages.com.miniclip.highscores.HighscoresLoader] Frame 0
class com.miniclip.highscores.HighscoresLoader
{
static var singleInstance;
var URL_PREFIX, target, game_quality, container, localConnectionID, ldr, objLocalConnection, levelName, level, score;
function HighscoresLoader () {
}
static function start(score, level, level_name) {
trace((("HighscoresLoader.start (AS2)/ score:" + score) + " level:") + level);
if (singleInstance == undefined) {
singleInstance = new com.miniclip.highscores.HighscoresLoader();
}
singleInstance.score = (isNaN(score) ? undefined : (Number(score)));
singleInstance.level = Math.floor(Math.max(0, level));
if (singleInstance.level > 0) {
singleInstance.levelName = ((level_name.length > 0) ? (level_name) : "");
}
singleInstance.container = _root;
singleInstance.init();
return(singleInstance);
}
function init() {
trace("HSB: HighscoresLoader.init() ... ");
URL_PREFIX = ((_root._url.substring(0, 8) == "file:///") ? "http://www.miniclip.com/swfcontent/components/" : "/swfcontent/components/");
System.security.allowDomain("cms.miniclip.com");
System.security.allowDomain("devcms.miniclip.com");
if (target._name != "MiniclipHighScoresContainer") {
game_quality = _root._quality;
_root._quality = "HIGH";
target = container.createEmptyMovieClip("MiniclipHighScoresContainer", container.getNextHighestDepth());
target.onUnload = function () {
this.target = undefined;
};
localConnectionID = "LC" + String(Math.floor(Math.random() * 1000000));
ldr = target.createEmptyMovieClip("ldr", 1);
initialize();
} else {
target.swapDepths(container.getNextHighestDepth());
sendScore();
}
}
function initialize() {
objLocalConnection = new LocalConnection();
objLocalConnection.allowDomain = function (sendingDomain) {
var _local1 = sendingDomain.substr(-13, 13) == ".miniclip.com";
return(_local1);
};
objLocalConnection.ref = this;
objLocalConnection.hsbready = function () {
this.ref.sendScore();
};
objLocalConnection.hsbhidden = function () {
_root._quality = self.game_quality;
this.ref.ldr._visible = false;
self.onClose();
};
if (!validateDomain()) {
localConnectionID = "_" + localConnectionID;
}
objLocalConnection.connect(localConnectionID + "back");
var _local3 = new MovieClipLoader();
var _local5 = {};
_local3.addListener(_local5);
var self = this;
if (validateDomain()) {
var _local4 = buildQueryString();
_local3.loadClip((URL_PREFIX + HIGHSCORESBOX_SWF) + _local4, ldr);
} else {
if (_root.mc_gamename.legth > 1) {
var _local4 = ("?msg=Play " + _root.mc_gamename) + " on Miniclip.com";
} else {
var _local4 = "?msg=Play this game on Miniclip.com";
}
var _local4 = _local4 + ("&lcid=" + localConnectionID);
_local5.onLoadInit = function () {
self.handleOffsiteLoaded();
};
ldr._visible = true;
_local3.loadClip((URL_PREFIX + OFFSITE_SWF) + _local4, ldr);
}
}
function handleOffsiteLoaded() {
var _local3 = ldr.mcBtn._width;
var _local2 = ldr.mcBtn._height;
ldr._x = (Stage.width - _local3) / 2;
ldr._y = (Stage.height - _local2) / 2;
var self = this;
ldr.onClose = function () {
self.onClose();
};
}
function sendScore() {
var _local2 = new LocalConnection();
trace(((((((("HSB: lcSender.send(" + localConnectionID) + ", setScore, ") + score) + ", ") + level) + ",") + levelName) + ")");
trace("HSB: lcSender.domain() ..." + _local2.domain());
ldr._visible = true;
_local2.send(localConnectionID, "setScore", score, level, levelName);
}
function validateDomain() {
var _local5 = false;
var _local6 = _root._url;
var _local4 = getDomainName(_local6);
if (_local4 != "") {
var _local3 = 0;
while (_local3 < ALLOWED_DOMAINS.length) {
if (_local4.indexOf(ALLOWED_DOMAINS[_local3]) >= (_local4.length - ALLOWED_DOMAINS[_local3].length)) {
_local5 = true;
}
_local3++;
}
}
if (_local6.indexOf("/swfcontent/webmastergames/") != -1) {
_local5 = false;
}
return(_local5);
}
function buildQueryString() {
var _local4 = "?";
var _local3 = "";
for (var _local5 in _root) {
if (_local5.substring(0, 3) == "mc_") {
_local4 = _local4 + (((_local3 + _local5) + "=") + escape(_root[_local5]));
_local3 = "&";
}
}
_local4 = _local4 + ("&mc_lcid=" + localConnectionID);
return(_local4);
}
function getDomainName(url) {
var _local2 = "";
var _local3 = url.indexOf("://");
if (_local3 > 0) {
var _local4 = url.substr(_local3 + 3);
var _local1 = _local4.split("/");
if (_local1.length > 0) {
_local2 = _local1[0];
}
}
return(_local2);
}
function toString() {
return("HighscoresLoader instance.");
}
var HIGHSCORESBOX_SWF = "highscoresbox_v3.swf";
var OFFSITE_SWF = "highscores_offsite.swf";
var ALLOWED_DOMAINS = [".miniclip.com"];
}
Symbol 541 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 1
stop();
var menuNav = new Sound(this);
menuNav.attachSound("menuNav");
menuNav.setVolume(100);
Symbol 547 Button
on (release) {
_root.Color_alles = 1;
gotoAndStop (2);
}
Symbol 548 Button
on (release) {
_root.Color_alles = 2;
gotoAndStop (3);
}
Symbol 551 Button
on (release) {
_root.Color_alles = 0;
gotoAndStop (1);
}
Symbol 553 Button
on (release) {
_root.Color_alles = 1;
gotoAndStop (2);
}
Symbol 555 MovieClip Frame 1
stop();
Symbol 565 Button
on (release) {
_root.gotoAndStop("game");
}
on (keyPress "<Space>") {
_root.gotoAndStop("game");
}
Symbol 570 Button
on (release) {
_root.gotoAndPlay("view score");
}
Symbol 572 Button
on (release) {
gotoAndStop (2);
_global.batman = true;
}
Symbol 577 Button
on (release) {
gotoAndStop (1);
_global.batman = false;
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
stop();
Symbol 583 Button
on (release) {
getURL ("http://www.miniclip.com");
}
Symbol 585 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 6);
}
if (this._x <= -1500) {
this._x = 0;
}
};
Symbol 589 Button
on (rollOver) {
Mouse.hide();
}
on (press) {
_global.jump_check = true;
_global.spaceHold = true;
gotoAndPlay (2);
}
on (release) {
_global.jump_check = false;
_global.spaceHold = false;
gotoAndStop (1);
}
Symbol 590 MovieClip Frame 1
stop();
Instance of Symbol 587 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_global.Paused == false) && (_global.isGliding == false)) && (_global.spaceHold == false)) {
_global.jump_check = false;
}
}
Symbol 590 MovieClip Frame 3
gotoAndStop (1);
Symbol 599 MovieClip Frame 1
onEnterFrame = function () {
if (_global.quali_light == false) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 5);
}
if (this._x <= -2000) {
this._x = 0;
}
};
Symbol 602 MovieClip Frame 1
onEnterFrame = function () {
if (_global.quali_light == false) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 4.5);
}
if (this._x <= -1000) {
this._x = 0;
}
};
Symbol 604 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 4);
}
if (this._x <= -1500) {
this._x = 0;
}
};
Symbol 612 MovieClip Frame 1
onEnterFrame = function () {
if (_global.quali_light == false) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 3);
}
if (this._x <= -1500) {
this._x = 0;
}
};
Symbol 614 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 2);
}
if (this._x <= -1500) {
this._x = 0;
}
};
Symbol 617 MovieClip Frame 1
onEnterFrame = function () {
if (_global.quali_light == false) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX / 1.5);
}
if (this._x <= -2000) {
this._x = 0;
}
};
Symbol 640 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 2
if (_global.Mute == false) {
_parent._parent.ef_sound_mc.Split.start();
}
onEnterFrame = function () {
var _local4 = _parent._parent.hero_mc;
var _local5 = this;
if (_global.Paused == false) {
_parent._parent.ef_sound_mc.Split.setVolume(100);
}
if (((_global.Paused == true) || (_global.SloMo == true)) || (_global.Mute == true)) {
_parent._parent.ef_sound_mc.Split.setVolume(0);
}
};
Symbol 640 MovieClip Frame 45
stop();
delete eval (onEnterFrame(this));
Symbol 644 MovieClip Frame 1
onEnterFrame = function () {
if (block_mc.hitTest(_parent._parent._parent.hero_mc)) {
if (_global.SlowMo == false) {
_parent._parent._parent.hero_mc.gotoAndStop("boulder");
}
}
};
Symbol 652 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.speed_mc.distance_txt >= 3000) {
if (((_parent._x <= 750) && (this._currentframe == 1)) && (_global.Paused == false)) {
this.gotoAndPlay(2);
}
if (((_global.Paused == true) && (this._currentframe != 1)) && (this._currentframe < 28)) {
this.stop();
}
if (((_global.Paused == false) && (this._currentframe != 1)) && (this._currentframe < 28)) {
this.play();
}
}
};
Symbol 652 MovieClip Frame 8
if (_global.Mute == false) {
_parent._parent.rock_sound_mc.rockfall.start();
}
onEnterFrame = function () {
var _local3 = _parent._parent.hero_mc;
if (_global.Paused == false) {
_parent._parent.rock_sound_mc.rockfall.setVolume(100);
}
if (((_global.Paused == true) || (_global.SloMo == true)) || (_global.Mute == true)) {
_parent._parent.rock_sound_mc.rockfall.setVolume(0);
}
};
Symbol 652 MovieClip Frame 25
if (_global.Mute == false) {
_parent._parent.rock_sound_mc.explo.start();
}
onEnterFrame = function () {
var _local3 = _parent._parent.hero_mc;
if (_global.Paused == false) {
_parent._parent.rock_sound_mc.explo.setVolume(100);
}
if (((_global.Paused == true) || (_global.SloMo == true)) || (_global.Mute == true)) {
_parent._parent.rock_sound_mc.explo.setVolume(0);
}
};
Symbol 652 MovieClip Frame 35
stop();
Symbol 658 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent._parent.hero_mc)) {
if ((this._currentframe == 1) && (_global.SlowMo == false)) {
_global.Oily = true;
this.gotoAndStop(2);
}
}
};
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 45
stop();
Symbol 692 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 2
if (_global.Mute == false) {
_parent._parent.ef_sound_mc.Split.start();
}
onEnterFrame = function () {
var _local4 = _parent._parent.hero_mc;
var _local5 = this;
if (_global.Paused == false) {
_parent._parent.ef_sound_mc.Split.setVolume(100);
}
if (((_global.Paused == true) || (_global.SloMo == true)) || (_global.Mute == true)) {
_parent._parent.ef_sound_mc.Split.setVolume(0);
}
};
Symbol 692 MovieClip Frame 45
stop();
delete eval (onEnterFrame(this));
Symbol 724 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 45
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 2
if (_global.Mute == false) {
_parent._parent.ef_sound_mc.Split.start();
}
onEnterFrame = function () {
var _local4 = _parent._parent.hero_mc;
var _local5 = this;
if (_global.Paused == false) {
_parent._parent.ef_sound_mc.Split.setVolume(100);
}
if (((_global.Paused == true) || (_global.SloMo == true)) || (_global.Mute == true)) {
_parent._parent.ef_sound_mc.Split.setVolume(0);
}
};
Symbol 726 MovieClip Frame 45
stop();
Symbol 737 MovieClip Frame 1
stop();
Symbol 737 MovieClip Frame 45
stop();
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 2
if (_global.Mute == false) {
_parent._parent.ef_sound_mc.Split.start();
}
onEnterFrame = function () {
var _local4 = _parent._parent.hero_mc;
var _local5 = this;
if (_global.Paused == false) {
_parent._parent.ef_sound_mc.Split.setVolume(100);
}
if (((_global.Paused == true) || (_global.SloMo == true)) || (_global.Mute == true)) {
_parent._parent.ef_sound_mc.Split.setVolume(0);
}
};
Symbol 746 MovieClip Frame 45
stop();
Symbol 754 MovieClip Frame 1
stop();
onEnterFrame = function () {
_root.ColorPlatz();
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - _parent.speedX;
}
};
Instance of Symbol 630 MovieClip "ramp_mc" in Symbol 754 MovieClip Frame 2
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 500) {
this._y = 700;
}
}
Instance of Symbol 640 MovieClip "plat_mc" in Symbol 754 MovieClip Frame 3
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2000) {
notNow = true;
} else {
notNow = false;
}
}
onClipEvent (enterFrame) {
if (!notNow) {
if ((_parent._x <= 300) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == true)) || (((this._currentframe != 1) && (this._currentframe != 45)) && (_global.SlowMo == true))) {
this.stop();
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == false)) && (_global.SlowMo == false)) {
this.play();
}
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 4
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 4
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 4
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 630 MovieClip "ramp_mc" in Symbol 754 MovieClip Frame 5
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 500) {
this._y = 700;
}
}
Instance of Symbol 692 MovieClip "plat_mc" in Symbol 754 MovieClip Frame 6
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2000) {
notNow = true;
} else {
notNow = false;
}
}
onClipEvent (enterFrame) {
if (!notNow) {
if ((_parent._x <= 200) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == true)) || (((this._currentframe != 1) && (this._currentframe != 45)) && (_global.SlowMo == true))) {
this.stop();
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == false)) && (_global.SlowMo == false)) {
this.play();
}
floor_mc.gotoAndStop(this._currentframe);
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 8
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 8
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 630 MovieClip "ramp_mc" in Symbol 754 MovieClip Frame 9
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 500) {
this._y = 700;
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 11
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 630 MovieClip "ramp_mc" in Symbol 754 MovieClip Frame 12
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 500) {
this._y = 700;
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 13
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 13
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 14
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 14
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 726 MovieClip "plat_mc" in Symbol 754 MovieClip Frame 15
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2000) {
notNow = true;
} else {
notNow = false;
}
}
onClipEvent (enterFrame) {
if (!notNow) {
if ((_parent._x <= 300) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == true)) || (((this._currentframe != 1) && (this._currentframe != 45)) && (_global.SlowMo == true))) {
this.stop();
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == false)) && (_global.SlowMo == false)) {
this.play();
}
floor_mc.gotoAndStop(this._currentframe);
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 15
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 16
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 630 MovieClip "ramp_mc" in Symbol 754 MovieClip Frame 16
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 500) {
this._y = 700;
}
}
Instance of Symbol 746 MovieClip "plat_mc" in Symbol 754 MovieClip Frame 17
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2000) {
notNow = true;
} else {
notNow = false;
}
}
onClipEvent (enterFrame) {
if (!notNow) {
if ((_parent._x <= 300) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == true)) || (((this._currentframe != 1) && (this._currentframe != 45)) && (_global.SlowMo == true))) {
this.stop();
}
if ((((this._currentframe != 1) && (this._currentframe != 45)) && (_global.Paused == false)) && (_global.SlowMo == false)) {
this.play();
}
floor_mc.gotoAndStop(this._currentframe);
}
}
Instance of Symbol 658 MovieClip in Symbol 754 MovieClip Frame 18
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 2200) {
this._y = 1000;
}
}
Instance of Symbol 516 MovieClip [tramp] in Symbol 754 MovieClip Frame 19
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 800) {
this._y = 1000;
}
}
Instance of Symbol 630 MovieClip "ramp_mc" in Symbol 754 MovieClip Frame 20
onClipEvent (load) {
if (_root.speed_mc.distance_txt <= 500) {
this._y = 700;
}
}
Symbol 756 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - _parent.speedX;
if ((this._x <= -1000) && (this._currentframe == 1)) {
this._y = random(800) - 500;
this._x = 5000;
} else if ((this._x <= -1000) && (this._currentframe == 2)) {
tempNum = random(5);
if (tempNum <= 1) {
this.gotoAndStop(1);
this._y = random(800) - 500;
this._x = 5000;
} else {
this._y = random(800) - 500;
this._x = 5000;
}
}
if (this.hitTest(_parent.hero_mc)) {
this.gotoAndStop(2);
}
}
};
Symbol 756 MovieClip Frame 2
stop();
var gotGem = new Sound(this);
gotGem.attachSound("gotGem1");
gotGem.setVolume(30);
if (_global.Mute == false) {
gotGem.start();
}
if (_global.multiplier < 25) {
_global.multiplier++;
}
_global.Multi_Collect++;
Symbol 758 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - _parent.speedX;
if ((this._x <= -1000) && (this._currentframe == 1)) {
this._y = random(800) - 500;
this._x = 5000;
} else if ((this._x <= -1000) && (this._currentframe == 2)) {
tempNum = random(5);
if (tempNum <= 1) {
this.gotoAndStop(1);
this._y = random(800) - 500;
this._x = 5000;
} else {
this._y = random(800) - 500;
this._x = 5000;
}
}
if (this.hitTest(_parent.hero_mc)) {
this.gotoAndStop(2);
}
}
};
Symbol 758 MovieClip Frame 2
stop();
var gotGem = new Sound(this);
gotGem.attachSound("gotGem1");
gotGem.setVolume(50);
if (_global.Mute == false) {
gotGem.start();
}
thisGem = 5000;
newGenscr = thisGem * _root.thescore_mc.multi_mc._currentframe;
_root.thescore_mc.scr_txt = _root.thescore_mc.scr_txt + newGenscr;
var thisguy = _root.mess_mc.attachMovie("message_small", "ms", 99);
thisguy.showNum_mc.showNum = newGenscr;
thisguy._x = 400;
thisguy._y = 50;
_global.Small_Bonus++;
Symbol 760 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX * 1.5);
if ((this._x <= -1000) && (this._currentframe == 1)) {
this._y = random(800) - 500;
this._x = 5000;
} else if ((this._x <= -1000) && (this._currentframe == 2)) {
tempNum = random(5);
if (tempNum <= 1) {
this.gotoAndStop(1);
this._y = random(800) - 500;
this._x = 5000;
} else {
this._y = random(800) - 500;
this._x = 5000;
}
}
if (this.hitTest(_parent.hero_mc)) {
this.gotoAndStop(2);
}
}
};
Symbol 760 MovieClip Frame 2
stop();
var gotGem = new Sound(this);
gotGem.attachSound("gotGem1");
gotGem.setVolume(100);
if (_global.Mute == false) {
gotGem.start();
}
thisGem = 10000;
newGenscr = thisGem * _root.thescore_mc.multi_mc._currentframe;
_root.thescore_mc.scr_txt = _root.thescore_mc.scr_txt + newGenscr;
var thisguy = _root.mess_mc.attachMovie("message_big", "ms", 99);
thisguy.showNum_mc.showNum = newGenscr;
thisguy._x = 400;
thisguy._y = 50;
_global.Big_Bonus++;
Symbol 768 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX * 1.5);
}
if (this._x <= -1500) {
this._x = 0;
}
};
Symbol 810 MovieClip Frame 40
stop();
Symbol 862 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.Paused == false) {
if ((block_mc.hitTest(_parent.hero_mc) && (_global.canSurfit == true)) && (this._currentframe == 1)) {
_parent.hero_mc.gotoAndStop("surf");
_parent.hero_mc._visible = false;
if (_global.batman == false) {
this.gotoAndPlay("surf");
} else {
this.gotoAndPlay("bat_surf");
}
}
if ((this._currentframe != 1) && (this._currentframe < 28)) {
this.play();
}
}
if (_global.Paused == true) {
if ((this._currentframe != 1) && (this._currentframe < 28)) {
this.stop();
}
}
};
Symbol 862 MovieClip Frame 2
play();
_parent.hero_mc.gotoAndStop("surf");
Instance of Symbol 810 MovieClip "wave_mc" in Symbol 862 MovieClip Frame 2
onClipEvent (load) {
_root.ColorWavez();
}
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._currentframe);
}
Symbol 862 MovieClip Frame 28
_parent.hero_mc._visible = true;
_parent.hero_mc.gotoAndStop("slow_air");
_global.usedBoard = true;
_global.Close_Calls++;
play();
Symbol 862 MovieClip Frame 142
gotoAndStop (1);
Symbol 862 MovieClip Frame 143
play();
_parent.hero_mc.gotoAndStop("surf");
stop();
onEnterFrame = function () {
if (_global.Paused == false) {
if ((this._currentframe >= 143) && (this._currentframe < 169)) {
this.play();
}
}
if (_global.Paused == true) {
if ((this._currentframe >= 143) && (this._currentframe < 169)) {
this.stop();
}
}
};
Instance of Symbol 810 MovieClip "wave_mc" in Symbol 862 MovieClip Frame 143
onClipEvent (load) {
_root.ColorWavez();
}
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._currentframe);
}
Symbol 862 MovieClip Frame 169
_global.usedBoard = true;
_global.Close_Calls++;
_parent.hero_mc._visible = true;
_parent.hero_mc.gotoAndStop("slow_air");
play();
Symbol 862 MovieClip Frame 283
gotoAndStop (1);
Symbol 864 MovieClip Frame 1
var feet = new Sound(this);
feet.attachSound("feet");
feet.setVolume(0);
feet.start(0, 99999);
Symbol 866 MovieClip Frame 1
var Split = new Sound(this);
Split.attachSound("Split");
Split.setVolume(100);
var Spring = new Sound(this);
Spring.attachSound("Spring");
Spring.setVolume(100);
var rockfall = new Sound(this);
rockfall.attachSound("rockfall");
rockfall.setVolume(0);
var explo = new Sound(this);
explo.attachSound("explo");
explo.setVolume(2);
onEnterFrame = function () {
if ((_global.SlowMo == false) && (_global.Paused == false)) {
Split.setVolume(100);
} else {
Split.setVolume(0);
}
};
var lastVol = 0;
Symbol 868 MovieClip Frame 1
var water = new Sound(this);
var lastVol = 0;
water.setVolume(0);
water.attachSound("water");
water.start(0, 99999);
onEnterFrame = function () {
var _local4 = _parent.hero_mc;
var _local5 = _parent.wave1_mc;
if (_global.Paused == false) {
if (_local4) {
var _local7 = _local5._x - _local4._x;
var _local6 = (_local5._y + 40) - _local4._y;
var _local8 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local9 = ((_local8 < 400) ? (_local8) : 400);
var _local3 = Math.round(100 - (_local9 / 4));
if (_local3 != lastVol) {
water.setVolume(_local3 * 0.5);
lastVol = _local3;
}
}
}
if (((_global.Paused == true) || (_global.SlowMo == true)) || (_global.Mute == true)) {
water.setVolume(0);
}
};
Symbol 870 MovieClip Frame 1
var Air = new Sound(this);
var lastVol = 0;
Air.setVolume(0);
Air.attachSound("Air");
Air.start(0, 99999);
onEnterFrame = function () {
var _local4 = _parent.hero_mc;
var _local8 = _parent.airChecker_mc;
if (_global.Paused == false) {
if (_local4) {
var _local6 = _local8._x - _local4._x;
var _local5 = _local8._y - _local4._y;
var _local7 = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
var _local9 = ((_local7 < 400) ? (_local7) : 400);
var _local3 = Math.round(100 - (_local9 / 4));
if (_local3 != lastVol) {
Air.setVolume(_local3 * 0.5);
lastVol = _local3;
}
}
}
if (((_global.Paused == true) || (_global.SlowMo == true)) || (_global.Mute == true)) {
Air.setVolume(0);
}
};
Symbol 874 MovieClip Frame 1
var slo = new Sound(this);
slo.attachSound("slo");
slo.setVolume(0);
slo.start(0, 99999);
onEnterFrame = function () {
if (((_global.SlowMo == true) && (_global.Paused == false)) && (_global.Mute == false)) {
slo.setVolume(100);
} else {
slo.setVolume(0);
}
};
Symbol 876 MovieClip Frame 1
var rockfall = new Sound(this);
rockfall.attachSound("rockfall");
rockfall.setVolume(50);
var explo = new Sound(this);
explo.attachSound("explo");
explo.setVolume(50);
onEnterFrame = function () {
if ((_global.SlowMo == false) && (_global.Paused == false)) {
rockfall.setVolume(50);
} else {
rockfall.setVolume(0);
}
};
Symbol 878 MovieClip Frame 1
onEnterFrame = function () {
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - _parent.speedX;
_global.dist++;
}
};
Symbol 880 MovieClip Frame 1
onEnterFrame = function () {
if (_global.quali_light == false) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.Paused == false) {
_parent.MoveTheLand();
this._x = this._x - (_parent.speedX * 1.2);
}
if (this._x <= -1500) {
this._x = 0;
}
};
Symbol 881 MovieClip Frame 1
if (_global.batman == false) {
attachMovie("knight", "hero_mc", 999);
} else if (_global.batman == true) {
attachMovie("Bat", "hero_mc", 999);
}
hero_mc._x = 257;
hero_mc._y = 200;
var speedX = 0;
var temp_speedX = 0;
var addSpeed = 0.002;
MoveTheLand = function () {
if (_global.Paused == false) {
if (_global.SlowMo == false) {
speedX = speedX + addSpeed;
_global.Current_Speed = speedX;
if ((speedX >= 15) && (speedX <= 23)) {
_global.gap = 350;
}
if ((speedX >= 25) && (_global.Boosting == false)) {
if (_root.speed_mc.distance_txt <= 8000) {
_global.gap = random(500) + 200;
} else {
_global.gap = random(700) + 300;
}
_global.Current_Speed = 25;
speedX = 25;
} else if ((speedX >= 25) && (_global.Boosting == true)) {
if (_root.speed_mc.distance_txt <= 8000) {
_global.gap = random(500) + 200;
} else {
_global.gap = random(700) + 350;
}
_global.Current_Speed = 38;
speedX = 38;
}
} else if (_global.SlowMo == true) {
speedX = speedX - (speedX / 2);
if (speedX <= 1) {
speedX = 1;
}
}
}
};
Instance of Symbol 590 MovieClip "jump_checker_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (load) {
_global.jump_check = false;
}
onClipEvent (enterFrame) {
if (_global.isMenu == true) {
this._x = -1000;
} else {
this._x = 0;
}
}
Instance of Symbol 596 MovieClip "wave5_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.quali_light == false) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.Paused == false) {
if (this._x <= -1) {
this._x = this._x + 2;
} else {
this._x = 0;
}
if (_global.SlowMo == false) {
this.gotoAndPlay(this._currentframe + 10);
} else {
play();
}
} else {
this.stop();
}
}
Instance of Symbol 610 MovieClip "wave4_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.Paused == false) {
if (this._x <= -1) {
this._x = this._x + 2;
} else {
this._x = 0;
}
if (_global.SlowMo == false) {
this.gotoAndPlay(this._currentframe + 10);
} else {
play();
}
} else {
this.stop();
}
}
Instance of Symbol 623 MovieClip "wave3_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.Paused == false) {
if (this._x <= -1) {
this._x = this._x + 2;
} else {
this._x = 0;
}
if (_global.SlowMo == false) {
this.gotoAndPlay(this._currentframe + 10);
} else {
play();
}
} else {
this.stop();
}
}
Instance of Symbol 754 MovieClip "plat1_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x <= (-(this._width + _global.gap))) {
this._x = (_parent.plat4_mc._x + _parent.plat4_mc._width) + _global.gap;
tempHight = random(120) - 60;
this._y = _parent.plat4_mc._y + tempHight;
if (this._y <= 50) {
this._y = 50;
} else if (this._y >= 280) {
this._y = 280;
}
nowFr = this._currentframe;
newFr = random(20) + 1;
if (newFr == nowFr) {
newFr = newFr + 1;
}
if (newFr > 20) {
newFr = 1;
}
this.gotoAndStop(newFr);
}
}
Instance of Symbol 754 MovieClip "plat2_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (load) {
this._x = (_parent.plat1_mc._x + _parent.plat1_mc._width) + _global.gap;
}
onClipEvent (enterFrame) {
if (this._x <= (-(this._width + _global.gap))) {
this._x = (_parent.plat1_mc._x + _parent.plat1_mc._width) + _global.gap;
tempHight = random(120) - 60;
this._y = _parent.plat1_mc._y + tempHight;
if (this._y <= 55) {
this._y = 55;
} else if (this._y >= 270) {
this._y = 270;
}
nowFr = this._currentframe;
newFr = random(20) + 1;
if (newFr == nowFr) {
newFr = newFr + 1;
}
if (newFr > 20) {
newFr = 1;
}
this.gotoAndStop(newFr);
}
}
Instance of Symbol 754 MovieClip "plat3_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (load) {
this._x = (_parent.plat2_mc._x + _parent.plat2_mc._width) + _global.gap;
}
onClipEvent (enterFrame) {
if (this._x <= (-(this._width + _global.gap))) {
this._x = (_parent.plat2_mc._x + _parent.plat2_mc._width) + _global.gap;
tempHight = random(120) - 60;
this._y = _parent.plat2_mc._y + tempHight;
if (this._y <= 65) {
this._y = 65;
} else if (this._y >= 290) {
this._y = 290;
}
nowFr = this._currentframe;
newFr = random(20) + 1;
if (newFr == nowFr) {
newFr = newFr + 1;
}
if (newFr > 20) {
newFr = 1;
}
this.gotoAndStop(newFr);
}
}
Instance of Symbol 754 MovieClip "plat4_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (load) {
this._x = (_parent.plat3_mc._x + _parent.plat3_mc._width) + _global.gap;
}
onClipEvent (enterFrame) {
if (this._x <= (-(this._width + _global.gap))) {
this._x = (_parent.plat3_mc._x + _parent.plat3_mc._width) + _global.gap;
tempHight = random(120) - 60;
this._y = _parent.plat3_mc._y + tempHight;
if (this._y <= 45) {
this._y = 45;
} else if (this._y >= 285) {
this._y = 285;
}
nowFr = this._currentframe;
newFr = random(20) + 1;
if (newFr == nowFr) {
newFr = newFr + 1;
}
if (newFr > 20) {
newFr = 1;
}
this.gotoAndStop(newFr);
}
}
Instance of Symbol 766 MovieClip "wave2_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.Paused == false) {
if (this._x <= -1) {
this._x = this._x + 2;
} else {
this._x = 0;
}
if (_global.SlowMo == false) {
this.gotoAndPlay(this._currentframe + 10);
} else {
play();
}
} else {
this.stop();
}
}
Instance of Symbol 773 MovieClip "wave1_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (load) {
waveVol = 0;
this.swapDepths(9999);
}
onClipEvent (enterFrame) {
if (_global.Paused == false) {
if (this._x <= 239) {
this._x = this._x + 2;
} else {
this._x = 240;
}
if ((this._x == 240) && (_global.usedBoard == false)) {
_root.canSurf_mc.gotoAndStop(2);
}
if (_global.SlowMo == false) {
this.gotoAndPlay(this._currentframe + 10);
} else {
play();
}
} else {
this.stop();
}
}
Instance of Symbol 862 MovieClip "surf_mc" in Symbol 881 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(99999);
}
Symbol 884 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 1
stop();
Instance of Symbol 888 MovieClip "bar_mc" in Symbol 890 MovieClip Frame 1
onClipEvent (load) {
this._xscale = 0;
addme = 0.12;
}
onClipEvent (enterFrame) {
if (_global.Paused == false) {
if (this._xscale >= 100) {
this._xscale = 100;
}
if (this._xscale <= 0) {
this._xscale = 0;
}
if (_global.die == false) {
this._xscale = this._xscale + addme;
}
if (this._xscale >= 25) {
_global.glide_open = true;
this.gotoAndStop(2);
} else {
_global.glide_open = false;
this.gotoAndStop(1);
}
}
}
Symbol 894 MovieClip Frame 1
_global.Current_Speed = _global.Current_Speed + 0.5;
Symbol 894 MovieClip Frame 2
_global.Current_Speed = _global.Current_Speed + 0.5;
Symbol 894 MovieClip Frame 3
_global.Current_Speed = _global.Current_Speed + 0.5;
Symbol 894 MovieClip Frame 4
_global.Current_Speed = _global.Current_Speed + 0.5;
Symbol 894 MovieClip Frame 5
_global.Current_Speed = _global.Current_Speed + 0.5;
Symbol 894 MovieClip Frame 6
_global.Current_Speed = _global.Current_Speed - 0.5;
Symbol 894 MovieClip Frame 7
_global.Current_Speed = _global.Current_Speed - 0.5;
Symbol 894 MovieClip Frame 8
_global.Current_Speed = _global.Current_Speed - 0.5;
Symbol 894 MovieClip Frame 9
_global.Current_Speed = _global.Current_Speed - 0.5;
Symbol 894 MovieClip Frame 10
_global.Current_Speed = _global.Current_Speed - 0.5;
Symbol 895 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 1
stop();
Instance of Symbol 899 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.distance_txt >= 99999) {
this.gotoAndStop("two");
} else if (_parent.distance_txt >= 999999999) {
this.gotoAndStop("three");
} else {
gotoAndStop (1);
}
}
Symbol 921 MovieClip Frame 26
stop();
Symbol 924 MovieClip Frame 80
_global.multiplier--;
_parent.prevFrame();
Symbol 936 MovieClip Frame 120
_global.multiplier--;
_parent.prevFrame();
Symbol 953 MovieClip Frame 1
stop();
Symbol 955 MovieClip Frame 1
stop();
Symbol 955 MovieClip Frame 2
var airTimer = new Sound(this);
airTimer.attachSound("AirTimeSnd");
airTimer.setVolume(100);
if (_global.Mute == false) {
airTimer.start();
}
Instance of Symbol 955 MovieClip "air_mc" in Symbol 956 MovieClip Frame 1
/* no clip actions */
Symbol 961 MovieClip Frame 8
stop();
Symbol 971 MovieClip Frame 64
stop();
Symbol 972 MovieClip Frame 1
stop();
_global.canSurfit = false;
Symbol 972 MovieClip Frame 2
stop();
_global.canSurfit = true;
Symbol 972 MovieClip Frame 3
stop();
_global.canSurfit = false;
Symbol 977 Button
on (release) {
gotoAndStop (3);
}
Symbol 981 Button
on (release) {
_global.Mute = false;
gotoAndStop (2);
}
Symbol 982 MovieClip Frame 1
if (_global.Mute == true) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 982 MovieClip Frame 2
stop();
Symbol 982 MovieClip Frame 3
_global.Mute = true;
Symbol 984 Button
on (release) {
gotoAndStop (3);
}
Symbol 985 Button
on (release) {
gotoAndStop (4);
}
Symbol 990 Button
on (release) {
gotoAndStop (4);
}
Symbol 991 Button
on (release) {
gotoAndStop (2);
}
Symbol 994 Button
on (release) {
gotoAndStop (3);
}
Symbol 997 MovieClip Frame 2
stop();
_quality = "BEST";
_global.quali_light = true;
Symbol 997 MovieClip Frame 3
_quality = "MEDIUM";
_global.quali_light = true;
Symbol 997 MovieClip Frame 4
_quality = "LOW";
_global.quali_light = false;
Symbol 999 MovieClip Frame 1
stop();
Symbol 1008 Button
on (keyPress "<Space>") {
gotoAndPlay ("un");
}
on (release) {
gotoAndPlay ("un");
}
Symbol 1011 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("reset");
}
Symbol 1015 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 3
var pauseSnd = new Sound(this);
pauseSnd.attachSound("pauseSnd");
pauseSnd.setVolume(100);
if (_global.Mute == false) {
pauseSnd.start();
}
Symbol 1015 MovieClip Frame 10
stop();
Symbol 1015 MovieClip Frame 13
if (_global.Mute == false) {
pauseSnd.start();
}
Symbol 1015 MovieClip Frame 20
_global.Paused = false;
Symbol 1034 Button
on (release) {
gotoAndStop (3);
}
Symbol 1043 Button
on (release) {
_global.seenIt = true;
gotoAndStop (4);
}
on (keyPress "<Space>") {
_global.seenIt = true;
gotoAndStop (4);
}
Symbol 1048 Button
on (release) {
stopAllSounds();
Mouse.show();
_root.gotoAndPlay("reset");
}
Symbol 1062 MovieClip Frame 1
if (_global.startUp == true) {
_global.Paused = false;
gotoAndStop (4);
}
Symbol 1062 MovieClip Frame 2
stop();
if (_global.seenIt == true) {
gotoAndStop (4);
}
Instance of Symbol 899 MovieClip in Symbol 1062 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.distance_txt >= 99999) {
this.gotoAndStop("two");
} else if (_parent.distance_txt >= 999999999) {
this.gotoAndStop("three");
} else {
gotoAndStop (1);
}
}
Symbol 1062 MovieClip Frame 4
stop();
_global.startUp = true;
_global.isMenu = false;
_global.Paused = false;
_parent.theme_mc._x = 740;
_parent.PauseBtn._x = 739;
_parent.sndbtn._x = 766;
Symbol 1066 MovieClip Frame 1
stop();
Symbol 1066 MovieClip Frame 2
_global.isMenu = true;
_global.scr_add = _root.thescore_mc.scr_txt;
_global.f_Dist = _root.speed_mc.distance_txt;
Symbol 1066 MovieClip Frame 53
stop();
stopAllSounds();
_root.gotoAndStop("ending");
Symbol 1078 MovieClip Frame 1
stop();
Symbol 1105 Button
on (release) {
stopAllSounds();
_global.usedBoard = false;
_global.gotoLocal = false;
_global.skip_scr = false;
_global.Paused = true;
_global.isMenu = true;
_global.SlowMo = false;
_global.Current_Speed = 0;
_global.gap = 175;
_global.Boosting = false;
_global.dist = 0;
_global.Oily = false;
_global.mouse_time = 0;
_global.thattheone = 0;
_global.die = false;
_global.scr_add = 0;
_global.f_Dist = 0;
_global.On_Ramps = 0;
_global.Times_Jumped = 0;
_global.Tramps_Taken = 0;
_global.Wipe_Outs = 0;
_global.Close_Calls = 0;
_global.Air_Time = 0;
_global.Multi_Collect = 0;
_global.Small_Bonus = 0;
_global.Big_Bonus = 0;
_root.gotoAndStop("game");
}
on (keyPress "<Space>") {
if (useButtons == true) {
stopAllSounds();
_global.usedBoard = false;
_global.gotoLocal = false;
_global.skip_scr = false;
_global.Paused = true;
_global.isMenu = true;
_global.SlowMo = false;
_global.Current_Speed = 0;
_global.gap = 175;
_global.Boosting = false;
_global.dist = 0;
_global.Oily = false;
_global.mouse_time = 0;
_global.thattheone = 0;
_global.die = false;
_global.scr_add = 0;
_global.f_Dist = 0;
_global.On_Ramps = 0;
_global.Times_Jumped = 0;
_global.Tramps_Taken = 0;
_global.Wipe_Outs = 0;
_global.Close_Calls = 0;
_global.Air_Time = 0;
_global.Multi_Collect = 0;
_global.Small_Bonus = 0;
_global.Big_Bonus = 0;
_root.gotoAndStop("game");
}
}
Symbol 1109 Button
on (release) {
stopAllSounds();
Mouse.show();
_root.gotoAndPlay("reset");
}
Symbol 1110 MovieClip Frame 1
_global.fscr = _global.scr_add;
_global.fDist = _global.f_Dist;
_global.fscr = _global.fscr + _global.Times_Jumped;
_global.fscr = _global.fscr + _global.Tramps_Taken;
_global.fscr = _global.fscr + _global.On_Ramps;
_global.fscr = _global.fscr + _global.Close_Calls;
_global.fscr = _global.fscr + _global.Wipe_Outs;
_global.fscr = _global.fscr + _global.Air_Time;
_global.fscr = _global.fscr + _global.Multi_Collect;
_global.fscr = _global.fscr + _global.Small_Bonus;
_global.fscr = _global.fscr + _global.Big_Bonus;
_global.fscr = _global.fscr + _global.fDist;
_global.thattheone = _global.fscr;
Symbol 1110 MovieClip Frame 2
_global.isMenu = true;
Symbol 1110 MovieClip Frame 20
useButtons = false;
Symbol 1110 MovieClip Frame 23
var myHighscores = com.miniclip.highscores.HighscoresLoader.start(_global.thattheone);
myHighscores.onClose = function () {
useButtons = true;
playAgain_btn._x = 300;
menu_btn._x = 329;
};
stop();
Symbol 1111 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 2
stop();
Symbol 1115 Button
on (release) {
gotoAndPlay ("reset");
}
Symbol 1116 Button
on (release) {
stopAllSounds();
Mouse.show();
gotoAndPlay ("reset");
}
Symbol 1120 Button
on (release) {
gotoAndPlay ("global_score");
}