Frame 1
fscommand ("allowscale", "false");
Frame 2
function SetPercentageBar() {
var totalbytes0 = _level0.getBytesTotal();
var currentbytes0 = _level0.getBytesLoaded();
var PercentAgeLoaded0 = Math.floor((currentbytes0 / totalbytes0) * 100);
var totalbytes300 = this["_level" + MenuSystemLevel].getBytesTotal();
var currentbytes300 = this["_level" + MenuSystemLevel].getBytesLoaded();
var PercentAgeLoaded300 = Math.floor((currentbytes300 / totalbytes300) * 100);
var Frame = ((PercentAgeLoaded0 + PercentAgeLoaded300) / NoItemsToPreload);
Bytesloaded = currentbytes0 + currentbytes300;
TotalBytes = "\\ " + (totalbytes0 + totalbytes300);
if ((((_root.CookieLoaded && (Frame == 100)) && (_level10.getBytesTotal() >= 83027)) && (_level200.getBytesTotal() >= 305923)) && (_level300.getBytesTotal() >= 78010)) {
_root.play();
}
}
CurrentLevel = 10;
SoundLevel = 200;
MenuSystemLevel = 300;
loadMovieNum ("MenuSystem/Menusystem.swf", MenuSystemLevel);
loadMovieNum ("Sound-Lib/Sound-Lib.swf", SoundLevel);
loadMovieNum (("Floors/Floor" + CurrentLevel) + ".swf", CurrentLevel);
NoItemsToPreload = 2;
BytesLoaded = "";
TotalBytes = "";
stop();
Instance of Symbol 14 MovieClip "DataDump" in Frame 2
onClipEvent (load) {
_root.CookieLoaded = false;
action = "get";
currenttimer = getTimer() + (Math.random() * 100000000);
loadVariables ("asp/Cookies.asp", this, "GET");
}
onClipEvent (data) {
if (_root._url == "http://www.kerb.co.uk/newKerbSite.swf") {
_root.CookieLoaded = true;
_root.parameter = VisitedSite;
}
}
onClipEvent (enterFrame) {
_root.SetPercentageBar();
}
Frame 3
flagged = true;
var i = (CurrentLevel - 1);
loadMovieNum (("Floors/floor" + i) + ".swf", i);
i--;
loadMovieNum (("Floors/floor" + i) + ".swf", i);
i--;
loadMovieNum (("Floors/floor" + i) + ".swf", i);
Frame 37
gotoAndPlay (38);
Frame 38
function ExitMenu() {
this["_Level" + _level0.MenuSystemLevel].gotoAndStop(1);
MainMenu = false;
gotoAndPlay (38);
}
function StopMainMusic() {
_Level["_Level" + SoundLevel][("Floor" + currentlevel) + "Sounds"].stop(("Floor" + currentlevel) + "Sounds");
}
function GotoTraining() {
gotoAndPlay (138);
}
function GotoEnd() {
gotoAndPlay (285);
}
function CleanUpTraining() {
doneworld = false;
gotoAndStop (186);
}
function GotoIntro() {
gotoAndPlay (38);
}
function GotoGame() {
gotoAndStop (1069);
}
function GotoNextFrame() {
nextFrame();
}
function GotoNextFramePlay() {
nextFrame();
play();
}
function CheckTimer() {
if (CurrentTime < (getTimer() - 1000)) {
Swap = false;
}
}
function GotoSite() {
var i = 2;
while (i < 6) {
this["line" + i].removeMovieClip();
i++;
}
this.linea.removeMovieClip();
this.lineb.removeMovieClip();
gotoAndStop (1069);
}
function ClearBox() {
this["_Level" + _Level0.CurrentLevel].Box.gotoAndStop(1);
_root.CurrentItem = 1;
}
function SetGameActive(state) {
this["_Level" + CurrentLevel].NinjaCat.Active = state;
this["_Level" + CurrentLevel].NinjaCat.AllowControl = state;
this["_Level" + CurrentLevel].NinjaCat.animation.gotoAndStop(1);
}
function Platform(width) {
this.width = width;
}
function CheckMove(object, number) {
if (_level0.WorldArray[_level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe].LeftBlocked && ((object._x + (number * object._width)) < _level0.WorldArray[_level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe].OffsetLeft)) {
return(false);
}
if (_level0.WorldArray[_level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe].RightBlocked && (_level0.WorldArray[_level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe].OffsetRight < (object._x + (number * object._width)))) {
return(false);
}
return(true);
}
function MoveOnScreen(object, newx, newy, newx2, newy2) {
if (_level0.StartLeft) {
if (newx != null) {
this["_Level" + _Level0.CurrentLevel][object]._x = newx;
} else {
this["_Level" + _Level0.CurrentLevel][object]._x = 0;
}
if (newy != null) {
this["_Level" + _Level0.CurrentLevel][object]._y = newy;
}
} else {
if (newx2 != null) {
this["_Level" + _Level0.CurrentLevel][object]._x = newx2;
} else {
this["_Level" + _Level0.CurrentLevel][object]._x = 600;
}
if (newy2 != null) {
this["_Level" + _Level0.CurrentLevel][object]._y = newy2;
}
}
}
function Init(object, JumpSpeed, MoveSpeed, Gravity, Friction, newx, newy, newx2, newy2) {
if (newx != null) {
this["_Level" + CurrentLevel][object]._xscale = xScale;
this["_Level" + CurrentLevel][object]._yscale = yScale;
this["_Level" + _Level0.CurrentLevel][object]._x = newx;
}
if (newx2 != null) {
this["_Level" + CurrentLevel][object]._xscale = -xScale;
this["_Level" + CurrentLevel][object]._yscale = yScale;
this["_Level" + _Level0.CurrentLevel][object]._x = newx2;
}
if (newy == 0) {
this["_Level" + _Level0.CurrentLevel][object]._y = newy;
} else {
this["_Level" + _Level0.CurrentLevel][object]._y = _root.Floor;
}
this["_Level" + _Level0.CurrentLevel][object].AllowJump = true;
this["_Level" + _Level0.CurrentLevel][object]._Training = false;
this["_Level" + _Level0.CurrentLevel][object]._VelX = 0;
this["_Level" + _Level0.CurrentLevel][object]._VelY = 0;
this["_Level" + _Level0.CurrentLevel][object]._XAcceleration = MoveSpeed;
this["_Level" + _Level0.CurrentLevel][object]._Friction = Friction;
this["_Level" + _Level0.CurrentLevel][object]._Gravity = Gravity;
this["_Level" + _Level0.CurrentLevel][object]._JumpSpeed = JumpSpeed;
this["_Level" + _Level0.CurrentLevel][object].Jumping = false;
this["_Level" + _Level0.CurrentLevel][object].Active = true;
this["_Level" + _Level0.CurrentLevel][object].AllowLeft = true;
this["_Level" + _Level0.CurrentLevel][object].AllowRight = true;
this["_Level" + _Level0.CurrentLevel][object].AllowControl = true;
this["_Level" + _Level0.CurrentLevel][object].Platform = false;
MoveOnScreen(object, newx, newy, newx2, newy2);
}
function CheckPlatformHits(object) {
var temp = false;
var i = 0;
while (i < PlatFormArray[_Level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe].length) {
if (object.CollideStrip.hitTest(this["_Level" + _Level0.CurrentLevel]["Platform" + i].CollideStrip)) {
if ((0 < object._VelY) || (object.platform)) {
object._y = this["_Level" + _Level0.CurrentLevel]["Platform" + i]._y - PlatFormArray[_Level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe][i].width;
object.platform = true;
object._VelY = 0;
object.jumping = false;
temp = true;
}
}
i++;
}
if (!temp) {
object.platform = false;
}
}
function ApplyForces(object, amount) {
with (object) {
_VelX = _VelX * amount;
if (((-1 < _VelX) && (_VelX < 1)) && (!Jumping)) {
gotoAndStop(1);
_Velx = 0;
} else if ((_VelY < 20) && (Jumping)) {
gotoAndStop(4);
_VelY = _VelY + _Gravity;
} else if (!Jumping) {
gotoAndStop(2);
}
}
}
function CheckFloor(object, floorval) {
with (object) {
if ((_y >= floorval) && (_yscale == 100)) {
_y = floorval;
_VelY = 0;
Jumping = false;
} else if ((_y >= (floorval + 20)) && (_yscale == 55)) {
_y = floorval + 20;
_VelY = 0;
Jumping = false;
} else if (!Platform) {
Jumping = true;
}
}
}
function Move(object, x, y) {
with (object) {
_velx = x;
_vely = y;
_x = _x + _velx;
_y = _y + _vely;
}
}
function CheckOffscreen(object) {
with (object) {
if (_x < 0) {
_level0.StartLeft = false;
_level0.StartRight = true;
_level0.Cleanup(-1);
} else if (_level0.screenwidth < _x) {
_level0.StartLeft = true;
_level0.StartRight = false;
_level0.Cleanup(1);
}
}
}
function CheckKeyPress(object) {
with (object) {
if (AllowControl) {
if ((Key.isDown(Key.RIGHT) && (_Level0.CheckMove(object, 1))) && (AllowRight)) {
_xscale = Math.abs(_xscale);
_VelX = _VelX + _XAcceleration;
} else if ((Key.isDown(Key.LEFT) && (_Level0.CheckMove(object, -1))) && (AllowLeft)) {
_xscale = Math.abs(_xscale) * -1;
_VelX = _VelX + (-_XAcceleration);
}
if (Key.isDown(Key.UP)) {
if (AllowJump && (!Jumping)) {
AllowJump = false;
_VelY = -_Jumpspeed;
}
}
}
}
}
function LoadScreen(object, newx, newy, newx2, newy2) {
if (!this["_Level" + _Level0.CurrentLevel][object].Active) {
Init(object, 20, 5, 2.5, 0.6, newx, newy, newx2, newy2);
} else {
if (0 < _Level0.PlatFormArray[_Level0.CurrentLevel][this["_Level" + _Level0.CurrentLevel]._currentframe].length) {
_Level0.PlatFormActive = true;
} else {
_Level0.PlatFormActive = false;
}
MoveOnScreen(object, newx, newy, newx2, newy2);
}
this["_Level" + _Level0.CurrentLevel].Box.gotoAndStop(_Level0.CurrentItem);
}
function CleanUp(Frame) {
if (_root.WorldArray[_root.CurrentLevel][this["_level" + CurrentLevel]._currentframe].Lift && (0 < Frame)) {
_root.InLift = true;
_root.StartRight = true;
_root.StartLeft = false;
this["_level" + CurrentLevel].gotoAndStop(1);
gotoAndPlay (1070);
} else if ((0 < _root.WorldArray[_root.CurrentLevel][this["_level" + CurrentLevel]._currentframe].special.length) && (StartRight)) {
var Movie = _root.WorldArray[8][this["_level" + CurrentLevel]._currentframe].special;
this["_level" + CurrentLevel].gotoAndStop(1);
loadMovieNum (Movie, 20);
} else {
this["_level" + CurrentLevel].gotoAndStop(this["_level" + CurrentLevel]._currentframe + Frame);
}
}
function Screen(Left, Right, item, OffsetLeft, OffsetRight, Lift, special) {
this.LeftBlocked = Left;
this.RightBlocked = Right;
this.OffsetLeft = OffsetLeft;
this.OffsetRight = OffsetRight;
this.Lift = Lift;
this.item = item;
this.special = special;
}
function CreateWorld(FloorVal) {
ShadowOffset = 0;
ShadowScaleFactor = 1;
ScaleOffset = 1;
xScale = 100;
yScale = 100;
CurrentItem = 1;
GameActive = true;
ScreenWidth = 600;
ScreenHeight = 400;
Floor = FloorVal;
ScaleRatio = 100;
DoneWorld = true;
StartLeft = true;
WorldArray = new Array();
PlatFormArray = new Array();
var i = 0;
while (10 >= i) {
WorldArray[i] = new Array();
i++;
}
var i = 0;
while (i < 20) {
PlatFormArray[i] = new Array();
var j = 0;
while (j < 20) {
PlatFormArray[i][j] = new Array();
j++;
}
i++;
}
WorldArray[10][1] = new Screen(true, true, null, null, null, null, null);
WorldArray[10][2] = new Screen(true, false, null, 200, null, null, null);
WorldArray[10][3] = new Screen(false, false, null, null, null, null, null);
WorldArray[10][4] = new Screen(false, false, 2, null, null, null, null);
WorldArray[10][5] = new Screen(false, false, null, null, null, true, null);
WorldArray[9][1] = new Screen(true, true, null, null, null, null, null);
WorldArray[9][2] = new Screen(true, false, 5, 50, null, null, null);
WorldArray[9][3] = new Screen(false, false, null, null, null, null, null);
WorldArray[9][4] = new Screen(false, false, null, null, null, null, null);
WorldArray[9][5] = new Screen(false, false, null, null, null, null, null);
PlatFormArray[9][5][0] = new Platform(78);
PlatFormArray[9][5][1] = new Platform(86);
WorldArray[9][6] = new Screen(false, false, null, null, null, null, null);
WorldArray[9][7] = new Screen(false, false, null, null, null, null, null);
WorldArray[9][8] = new Screen(false, false, null, null, null, null, null);
WorldArray[9][9] = new Screen(false, false, null, null, null, null, null);
WorldArray[9][10] = new Screen(false, false, null, null, null, true, null);
WorldArray[8][1] = new Screen(true, true, null, null, null, null, null);
WorldArray[8][2] = new Screen(true, false, 6, 50, null, null, null);
WorldArray[8][3] = new Screen(false, false, null, null, 550, null, null);
WorldArray[8][4] = new Screen(false, false, null, null, null, null, null);
WorldArray[8][5] = new Screen(false, false, null, null, null, null, null);
PlatFormArray[8][5][0] = new Platform(95);
WorldArray[8][6] = new Screen(false, false, null, null, null, null, null);
WorldArray[8][7] = new Screen(false, false, null, null, null, null, null);
WorldArray[8][8] = new Screen(false, false, null, null, null, null, null);
PlatFormArray[8][9][0] = new Platform(95);
PlatFormArray[8][9][1] = new Platform(95);
PlatFormArray[8][9][2] = new Platform(95);
WorldArray[8][9] = new Screen(false, false, 4, null, null, null, null);
WorldArray[8][10] = new Screen(false, false, null, null, null, null, null);
WorldArray[8][11] = new Screen(false, false, null, null, null, true, null);
WorldArray[7][1] = new Screen(true, false, null, null, null, null, null);
WorldArray[7][2] = new Screen(true, false, null, 400, null, null, null);
WorldArray[7][3] = new Screen(false, false, 3, null, null, null, null);
WorldArray[7][4] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][5] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][6] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][7] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][8] = new Screen(false, false, null, null, null, null, null);
PlatFormArray[7][8][0] = new Platform(90);
PlatFormArray[7][8][1] = new Platform(78);
PlatFormArray[7][8][2] = new Platform(78);
WorldArray[7][9] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][10] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][11] = new Screen(false, false, null, null, null, null, null);
WorldArray[7][12] = new Screen(false, false, null, null, null, true, null);
this["_Level" + CurrentLevel].gotoAndStop(2);
}
Frame 97
stop();
Frame 116
stop();
Instance of Symbol 44 MovieClip "Picker" in Frame 123
onClipEvent (load) {
if (_root.parameter != "True") {
gotoAndStop (39);
}
}
Frame 137
stop();
Instance of Symbol 48 MovieClip in Frame 167
onClipEvent (load) {
if (_root.parameter == "True") {
gotoAndStop (39);
}
}
Frame 185
gotoAndPlay (347);
Instance of Symbol 51 MovieClip "DataDump" in Frame 186
onClipEvent (load) {
action = "set";
currenttimer = getTimer() + (Math.random() * 100000000);
loadVariables ("asp/Cookies.asp", this, "GET");
}
onClipEvent (data) {
if (VisitedCookie == "True") {
_root.play();
}
}
Instance of Symbol 60 MovieClip "balla" in Frame 266
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 61 MovieClip "ballb" in Frame 266
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 62 MovieClip "ballc" in Frame 266
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 62 MovieClip "balld" in Frame 266
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 64 MovieClip "Controller" in Frame 266
onClipEvent (load) {
function DrawLines() {
_root.line2._x = _root.ball1._x;
_root.line2._y = _root.ball1._y;
_root.line2._xscale = _root.ball2._x - _root.ball1._x;
_root.line2._yscale = _root.ball2._y - _root.ball1._y;
_root.line3._x = _root.ball2._x;
_root.line3._y = _root.ball2._y;
_root.line3._xscale = _root.ball3._x - _root.ball2._x;
_root.line3._yscale = _root.ball3._y - _root.ball2._y;
_root.line4._x = _root.ball3._x;
_root.line4._y = _root.ball3._y;
_root.line4._xscale = _root.ball4._x - _root.ball3._x;
_root.line4._yscale = _root.ball4._y - _root.ball3._y;
_root.line5._x = _root.ball4._x;
_root.line5._y = _root.ball4._y;
_root.line5._xscale = _root.ball1._x - _root.ball4._x;
_root.line5._yscale = _root.ball1._y - _root.ball4._y;
_root.linea._x = _root.balla._x;
_root.linea._y = _root.balla._y;
_root.linea._xscale = _root.ballb._x - _root.balla._x;
_root.linea._yscale = _root.ballb._y - _root.balla._y;
_root.lineb._x = _root.ballc._x;
_root.lineb._y = _root.ballc._y;
_root.lineb._xscale = _root.balld._x - _root.ballc._x;
_root.lineb._yscale = _root.balld._y - _root.ballc._y;
}
function DrawMidLines() {
_root.balla._x = _root.ball1._x + ((_root.ball2._x - _root.ball1._x) / 2);
_root.balla._y = _root.ball1._y + ((_root.ball2._y - _root.ball1._y) / 2);
_root.ballb._x = _root.ball4._x + ((_root.ball3._x - _root.ball4._x) / 2);
_root.ballb._y = _root.ball4._y + ((_root.ball3._y - _root.ball4._y) / 2);
_root.ballc._x = _root.ball4._x + ((_root.ball1._x - _root.ball4._x) / 2);
_root.ballc._y = _root.ball4._y + ((_root.ball1._y - _root.ball4._y) / 2);
_root.balld._x = _root.ball3._x + ((_root.ball2._x - _root.ball3._x) / 2);
_root.balld._y = _root.ball3._y + ((_root.ball2._y - _root.ball3._y) / 2);
}
_root.gravity = 0;
_root.score = 0;
_root.HighScore = 0;
_root.active = false;
left = (_root.boundary._x - (_root.boundary._width / 2)) + (_root.ball1._width / 2);
right = (_root.boundary._x + (_root.boundary._width / 2)) - (_root.ball1._width / 2);
top = (_root.boundary._y - (_root.boundary._height / 2)) + (_root.ball1._width / 2);
bottom = (_root.boundary._y + (_root.boundary._height / 2)) - (_root.ball1._width / 2);
var i = 1;
while (4 >= i) {
_root["ball" + i].dragged = false;
_root["ball" + i].xspeed = Math.random() * 3;
_root["ball" + i]._root["ball" + i].yspeed = Math.random() * 1;
_root["ball" + i].friction = 0.99;
_root["ball" + i].counter = 1;
_root["ball" + i]._xscale = _root["ball" + i]._y * 0.25;
_root["ball" + i]._yscale = _root["ball" + i]._y * 0.25;
i++;
}
DrawMidLines();
DrawLines();
}
onClipEvent (enterFrame) {
if (_root.active) {
_root.gravity = _root.gravity + 0.0001;
_root.score++;
var i = 1;
while (4 >= i) {
_root["ball" + i]._xscale = _root["ball" + i]._y * 0.25;
_root["ball" + i]._yscale = _root["ball" + i]._y * 0.25;
if (_root["ball" + i].dragged) {
_root["ball" + i].xspeed = (_root["ball" + i]._x - _root["ball" + i].lastx) / 2;
_root["ball" + i].yspeed = (_root["ball" + i]._y - _root["ball" + i].lasty) / 2;
_root["ball" + i].lastx = _root["ball" + i]._x;
_root["ball" + i].lasty = _root["ball" + i]._y;
} else {
_root["ball" + i]._x = _root["ball" + i]._x + _root["ball" + i].xspeed;
_root["ball" + i]._y = _root["ball" + i]._y + _root["ball" + i].yspeed;
_root["ball" + i].yspeed = _root["ball" + i].yspeed + _root.gravity;
DrawMidLines();
DrawLines();
if (_root["ball" + i]._x < left) {
_root["ball" + i]._x = left;
_root["ball" + i].xspeed = _root["ball" + i].xspeed * -1;
} else if (right < _root["ball" + i]._x) {
_root["ball" + i]._x = right;
_root["ball" + i].xspeed = _root["ball" + i].xspeed * -1;
} else {
_root["ball" + i].xspeed = _root["ball" + i].xspeed * _root["ball" + i].friction;
}
if (_root["ball" + i]._y < top) {
_root["ball" + i]._y = top + (_root["ball" + i]._height / 2);
_root["ball" + i].yspeed = _root["ball" + i].yspeed * -1;
} else if (bottom < _root["ball" + i]._y) {
_root["ball" + i]._y = bottom;
_root["ball" + i].yspeed = _root["ball" + i].yspeed * -0.8;
if (_root.HighScore < _root.score) {
_root.Highscore = _root.Score;
}
_root.score = 0;
_root.gravity = 0;
}
}
i++;
}
}
}
Frame 284
val = 10;
active = true;
stop();
Instance of Symbol 84 MovieClip "Controller3" in Frame 284
onClipEvent (enterFrame) {
if (!done) {
NoItemsToPreload = 2;
CurrentLevel = 10;
var totalbytes10 = this["_level" + CurrentLevel].getBytesTotal();
var currentbytes10 = this["_level" + CurrentLevel].getBytesLoaded();
var PercentAgeLoaded10 = Math.floor((currentbytes10 / totalbytes10) * 100);
var totalbytes200 = this["_level" + _root.SoundLevel].getBytesTotal();
var currentbytes200 = this["_level" + _root.SoundLevel].getBytesLoaded();
var PercentAgeLoaded200 = Math.floor((currentbytes200 / totalbytes200) * 100);
var PercentAgeLoaded = ((PercentAgeLoaded10 + PercentAgeLoaded200) / NoItemsToPreload);
_root.BytesLoaded = currentbytes10 + currentbytes200;
_root.totalbytes = "\\ " + (totalbytes10 + totalbytes200);
_root.LoaderBar.gotoAndStop(PercentAgeLoaded);
if (PercentAgeLoaded == 100) {
done = true;
}
}
}
onClipEvent (load) {
done = false;
}
Frame 346
gotoAndPlay (215);
Instance of Symbol 92 MovieClip "ExitTraining" in Frame 347
onClipEvent (load) {
if (_root.parameter == "True") {
gotoAndStop (348);
}
}
Frame 1067
_root.ExitTraining.gotoAndStop(2);
gotoAndPlay (606);
Frame 1069
1((hacker = 1));
if (!doneworld) {
CurrentLevel = 10;
delete WorldArray;
delete PlatformArray;
delete CurrentItem;
delete Floor;
CreateWorld(320);
}
stop();
Frame 1070
function Start() {
gotoAndStop (1069);
}
function SetPercentageBar() {
var currentbytes = this["_level" + CurrentLevel].getBytesLoaded();
var PercentAgeLoaded = Math.floor((currentbytes / totalbytes) * 100);
_root.PreloadDoor.PreloadDoor.gotoAndStop(PercentAgeLoaded);
if (PercentAgeLoaded == 100) {
return(true);
}
}
this["_Level" + MenuSystemLevel].gotoAndStop(1);
_Level200.FlyBy1.setVolume(25);
if (_Level10.Floor10TopFloorVentPlay) {
_Level10.Floor10TopFloorVentPlay = false;
_Level200.TopFloorVent.stop("TopFloorVent");
}
if (this["_Level" + currentlevel].FloorSoundsPlay) {
this["_Level" + currentlevel].FloorSoundsPlay = false;
StopMainMusic();
}
_Level200.LiftMusic.setVolume(80);
_Level200.LiftMusic.setPan(0);
_level200.Typing.stop("Typing");
_root.LeftBackWall._y = LeftBackWally;
_root.GlassSheen._y = GlassSheenY;
play();
Frame 1079
_root.MainDoor.Door.play();
Frame 1101
_level200.PopUpSound.start(0, 1);
Frame 1106
MoveCounter = 0;
_root.Blocker._x = 124.2;
stop();
Instance of Symbol 183 MovieClip "Blocker" in Frame 1106
onClipEvent (load) {
function DoLevel(levelvar) {
_level200.PressSound.start(0, 1);
SetCurrentLevel(levelvar);
_root.play();
}
function SetCurrentLevel(levelvar) {
if (levelvar == null) {
level = TopFloor - FloorPos;
} else {
level = levelvar;
}
_root.LiftCounter = _root.Currentlevel - level;
_root.CurrentLevel = level;
}
JumpAmount = 42;
InitY = 162.5;
LevelOffset = 0;
NoFloors = 4;
TopFloor = 10;
MouseOver = null;
FloorPos = TopFloor - _root.CurrentLevel;
this._y = InitY + (FloorPos * JumpAmount);
_root["TextBox" + _root.CurrentLevel].gotoAndStop(2);
}
onClipEvent (keyUp) {
if (MouseOver == null) {
if ((key.getCode() == 40) && (FloorPos < (NoFloors - 1))) {
_level200.Dip.start(0, 1);
this._y = this._y + JumpAmount;
if (("TextBox" + (_root.CurrentLevel - LevelOffset)) != MouseOver) {
_root["TextBox" + (_root.CurrentLevel - LevelOffset)].gotoAndStop(1);
}
LevelOffset++;
FloorPos++;
_root["TextBox" + (_root.CurrentLevel - LevelOffset)].gotoAndStop(2);
} else if ((key.getCode() == 38) && (0 < FloorPos)) {
_level200.Dip.start(0, 1);
this._y = this._y - JumpAmount;
if (("TextBox" + (_root.CurrentLevel - LevelOffset)) != MouseOver) {
_root["TextBox" + (_root.CurrentLevel - LevelOffset)].gotoAndStop(1);
}
LevelOffset--;
FloorPos--;
_root["TextBox" + (_root.CurrentLevel - LevelOffset)].gotoAndStop(2);
} else if (key.getCode() == 32) {
DoLevel();
}
}
}
Instance of Symbol 188 MovieClip "TextBox10" in Frame 1106
onClipEvent (load) {
Level = 10;
text = "ROOF";
}
Instance of Symbol 189 MovieClip "TextBox9" in Frame 1106
onClipEvent (load) {
Level = 9;
text = "2nd FLOOR";
}
Instance of Symbol 190 MovieClip "TextBox8" in Frame 1106
onClipEvent (load) {
Level = 8;
text = "1st FLOOR";
}
Instance of Symbol 191 MovieClip "TextBox7" in Frame 1106
onClipEvent (load) {
Level = 7;
text = "BASEMENT";
}
Frame 1125
totalbytes = this["_level" + CurrentLevel].getBytesTotal();
Frame 1126
if (liftcounter < 0) {
_vely = 1;
} else {
_vely = -1;
}
Frame 1127
if (LiftCounter == 0) {
if (SetPercentageBar()) {
LeftBackWally = _root.LeftBackWall._y;
GlassSheenY = _root.GlassSheen._y;
delete PercentAgeLoaded;
delete LiftCounter;
delete MoveCounter;
gotoAndPlay (1128);
} else {
prevFrame();
play();
}
} else {
if (MoveCounter == 52) {
MoveCounter = 0;
if (liftcounter < 0) {
liftcounter++;
} else {
liftcounter--;
}
}
MoveCounter++;
if ((_root.GlassSheen._y < -400) && (_vely < 0)) {
_root.GlassSheen._y = 500;
} else if ((500 < _root.GlassSheen._y) && (0 < _vely)) {
_root.GlassSheen._y = -400;
}
_root.GlassSheen._y = _root.GlassSheen._y + (_vely * 20);
_root.LeftBackWall._y = _root.LeftBackWall._y + (_vely * 5);
_root.RightBackWall._y = _root.RightBackWall._y + _vely;
prevFrame();
play();
}
Frame 1128
_Level200.LiftPing.start(0, 1);
Frame 1134
_root.MainDoor.Door.gotoAndPlay(1);
Frame 1157
this["_level" + CurrentLevel].gotoAndStop(this["_level" + CurrentLevel]._totalframes);
_root.Start();
Symbol 29 Button
on (press) {
gotoAndPlay (117);
}
Symbol 34 Button
on (release) {
_root.GotoTraining();
}
Symbol 37 Button
on (release) {
_root.GotoEnd();
}
Symbol 42 Button
on (release) {
_root.GotoTraining();
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 58 Button
on (press) {
if (_root.active) {
dragged = true;
startDrag (this, false, _root.Controller.left, _root.Controller.top, _root.Controller.right, _root.Controller.bottom);
_root.score = _root.score + 1;
}
}
on (release, releaseOutside) {
dragged = false;
stopDrag();
}
Symbol 82 Button
on (release) {
_root.GotoSite();
}
Symbol 83 MovieClip Frame 1
stop();
stop();
Symbol 91 Button
on (release) {
_root.Dropper.gotoAndPlay(2);
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 39
_root.CleanUpTraining();
stop();
Symbol 167 MovieClip Frame 1
_Level200.DoorOpen.start(0, 1);
Symbol 167 MovieClip Frame 10
_Level200.DoorOpen.stop("DoorOpen");
stop();
Symbol 167 MovieClip Frame 12
_Level200.DoorOpen.start(0, 1);
Symbol 167 MovieClip Frame 21
_Level200.DoorOpen.stop("DoorOpen");
stop();
Symbol 169 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip "Door" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (10);
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 185 Button
on (rollOver) {
_root["TextBox" + (_root.CurrentLevel - _parent.Blocker.LevelOffset)].gotoAndStop(1);
_parent.Blocker._visible = false;
_parent.Blocker.MouseOver = _name;
gotoAndStop (2);
}
on (rollOut) {
_root["TextBox" + (_root.CurrentLevel - _parent.Blocker.LevelOffset)].gotoAndStop(2);
_parent.Blocker._visible = true;
_parent.Blocker.MouseOver = null;
if ((_parent.Blocker.TopFloor - _parent.Blocker.FloorPos) != level) {
gotoAndStop (1);
}
}
on (release) {
_parent.Blocker.DoLevel(level);
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();