Frame 1
stop();
Frame 2
loadMovieNum ("redbeardmusic.swf", 1);
platformOptionFile = sharedobject.getLocal("IMBplatform01");
_root.highestLevel = platformOptionFile.data.highestLevel;
_root.highScore = platformOptionFile.data.highScore;
if (highestLevel != null) {
continueBUT._visible = ture;
} else {
continueBUT._visible = false;
}
if (highScore == null) {
highScore = 0;
}
firstLevel = "L1";
stop();
Instance of Symbol 26 MovieClip "clouds" in Frame 2
onClipEvent (enterFrame) {
if (_x < -446) {
_x = -27;
}
_x = (_x - 1);
}
Instance of Symbol 62 MovieClip in Frame 2
onClipEvent (load) {
stop();
}
Frame 3
dead = new Sound();
dead.attachSound("DEAD.wav");
gem = new Sound();
gem.attachSound("gem.wav");
gem2 = new Sound();
gem2.attachSound("gem2.wav");
gem3 = new Sound();
gem3.attachSound("gem3.wav");
goal = new Sound();
goal.attachSound("goalgem.wav");
jump = new Sound();
jump.attachSound("jump.wav");
click = new Sound();
click.attachSound("roll.wav");
beep = new Sound();
beep.attachSound("beep.wav");
if (_root.codeMC:lives == 0) {
gotoAndStop (5);
}
if (_root:end == 1) {
gotoAndStop (7);
}
Instance of Symbol 76 MovieClip "codeMC" in Frame 3
onClipEvent (load) {
move = 7;
jumpHeight = 20;
direction = 1;
Air = 5;
drownRate = 0.0666666666666667;
platformActive = 0;
gravity = 20;
scrollPoint = 226;
scrollPointLeft = 225;
scrollPointUpper = 100;
scrollPointLower = 200;
}
onClipEvent (enterFrame) {
if (checked == "done") {
time = getTimer();
checked = "checking";
}
frame = frame + 1;
if ((getTimer() - time) > 1000) {
FPS = frame;
checked = "done";
frame = 0;
if ((FPS < 20) and (_quality == "HIGH")) {
_quality = "MEDIUM";
}
if ((FPS > 25) and (_quality == "MEDIUM")) {
_quality = "HIGH";
}
}
if (collected == "red") {
purplegems = 0;
bluegems = 0;
collected = "none";
colourActive = "none";
}
if (collected == "purple") {
redgems = 0;
bluegems = 0;
collected = "none";
colourActive = "none";
}
if (collected == "blue") {
purplegems = 0;
redgems = 0;
collected = "none";
colourActive = "none";
}
if ((redgems >= redNeeded) and (redneeded != "X")) {
colourActive = "red";
}
if ((bluegems >= blueNeeded) and (blueneeded != "X")) {
colourActive = "blue";
}
if ((purplegems >= purpleNeeded) and (purpleneeded != "X")) {
colourActive = "purple";
}
if ((bonusScore > levelComplete) and (levelBoardDone == "TRUE")) {
bonusScore = bonusScore - 10;
}
if (levelBoardDone == "TRUE") {
Testscore = Testscore + 10;
}
if (getProperty("_root.waterMC", _x) < -670) {
setProperty("_root.waterMC", _x , 0);
setProperty("_root.waterBackMC", _x , 0);
}
waterHeight = waterHeight - waterSpeed;
setProperty("_root.waterMC", _x , getProperty("_root.waterMC", _x) - 20);
setProperty("_root.waterBackMC", _x , getProperty("_root.waterBackMC", _x) - 20);
setProperty("_root.waterMC", _y , (getProperty("_root.BackgroundMC", _y) + waterheight) + 522);
setProperty("_root.waterBackMC", _y , (getProperty("_root.BackgroundMC", _y) + waterheight) + 510);
if ((getProperty("_root.playerMC", _y) - 20) > getProperty("_root.waterMC", _y)) {
Air = Air - drownRate;
if (Air < 0) {
state = "dead";
}
} else {
Air = 5;
}
if ((enemyCol == "on") and (invincibleTimer != "on")) {
enemyCol = "off";
state = "dead";
}
if ((invincibleTimer == "on") and (nInvincible < 180)) {
nInvincible = nInvincible + 1;
enemyCol = "off";
setProperty("_root.counterMC.invincibleMC", _visible , true);
} else {
nInvincible = 0;
invincibleTimer = "off";
setProperty("_root.counterMC.invincibleMC", _visible , false);
}
if (state == "dead") {
if (deadSound != "played") {
_root.dead.start();
deadSound = "played";
}
if (getProperty("_root.playerMC", _y) < 750) {
setProperty("_root.playerMC", _y , (getProperty("_root.playerMC", _y) - 16) + deathspeed);
deathspeed = deathspeed + 3;
} else {
_root.score = score;
lives = lives - 1;
state = "Stopped";
Set("_root.codeMC:blueSwitch", "off");
Set("_root.codeMC:redSwitch", "off");
Set("_root.codeMC:purpleSwitch", "off");
air = 5;
redgems = 0;
bluegems = 0;
purplegems = 0;
colourActive = "none";
currentGround = 500;
setProperty("_root.backgroundMC", _x , 0);
setProperty("_root.backgroundMC", _y , 0);
setProperty("_root.playerMC", _x , 197.2);
setProperty("_root.playerMC", _y , 97);
_root.levelBoardMC.play();
_root.backgroundMC.gotoAndPlay(currentlevel);
deathspeed = 0;
deadSound = "waiting";
}
}
if (state == "Stopped") {
if (left == "on") {
direction = -1;
speed = 1;
currentJumpHeight = jumpHeight;
state = "Accelerate";
}
if (right == "on") {
direction = 1;
speed = 1;
currentJumpHeight = jumpHeight;
state = "Accelerate";
}
}
if (state == "Skid") {
speed = speed - 2;
if (speed <= 0) {
state = "Stopped";
}
if (((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) or ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1))) {
if ((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
if ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
} else {
setProperty("_root.playerMC", _x , getProperty("_root.playerMC", _x) + (direction * speed));
}
}
if (state == "Inertia") {
speed = speed - 1;
if (((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) or ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1))) {
if ((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
if ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
} else {
setProperty("_root.playerMC", _x , getProperty("_root.playerMC", _x) + (direction * speed));
}
if ((direction == 1) and (_root.CodeMC:left == "on")) {
state = "Stopped";
}
if ((direction == -1) and (_root.CodeMC:right == "on")) {
state = "Stopped";
}
if (speed == 0) {
state = "Stopped";
}
}
if (state == "Move") {
if (((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) or ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1))) {
if ((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
if ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
} else {
setProperty("_root.playerMC", _x , getProperty("_root.playerMC", _x) + (direction * speed));
}
if ((direction == -1) and (left == "off")) {
state = "Inertia";
}
if ((direction == 1) and (right == "off")) {
state = "Inertia";
}
}
if (state == "Accelerate") {
speed = speed + 1;
if (((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) or ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1))) {
if ((getProperty("_root.playerMC", _x) > scrollPoint) and (direction == 1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
if ((getProperty("_root.playerMC", _x) < scrollPointLeft) and (direction == -1)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - (direction * speed));
}
} else {
setProperty("_root.playerMC", _x , getProperty("_root.playerMC", _x) + (direction * speed));
}
if ((direction == -1) and (left == "off")) {
state = "Inertia";
}
if ((direction == 1) and (right == "off")) {
state = "Inertia";
}
if (speed == Move) {
state = "Move";
}
}
if (((getProperty("_root.playerMC", _y) < currentGround) and (jumping == "off")) and (state != "dead")) {
fallspeed = fallspeed + 2;
falling = "on";
if (fallspeed > gravity) {
fallspeed = gravity;
}
if ((getProperty("_root.playerMC", _y) + fallspeed) >= currentGround) {
setProperty("_root.playerMC", _y , currentGround - 1);
fallspeed = 0;
}
if ((getProperty("_root.playerMC", _y) + fallspeed) > scrollPointLower) {
setProperty("_root.backgroundMC", _y , getProperty("_root.backgroundMC", _y) - fallspeed);
} else {
setProperty("_root.playerMC", _y , getProperty("_root.playerMC", _y) + fallspeed);
}
} else {
fallspeed = 0;
falling = "off";
}
if (platformActive == 0) {
currentGround = 400;
}
if (((((lastjump == "off") and (state != "tutorial")) and (jump == "on")) and (fallspeed == 0)) and (jumping == "off")) {
jumping = "on";
_root.jump.start();
}
if ((jumping == "on") and (jumpSpeed < currentJumpHeight)) {
jumpSpeed = jumpSpeed + 2;
if (jump ne "on") {
currentJumpHeight = currentJumpHeight - 2;
}
if (getProperty("_root.playerMC", _y) < scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) + currentJumpHeight) - jumpSpeed);
} else {
setProperty("_root.playerMC", _y , (getProperty("_root.playerMC", _y) - currentJumpHeight) + jumpSpeed);
}
} else {
jumping = "off";
jumpSpeed = 0;
currentJumpHeight = jumpHeight;
}
if (direction == 1) {
if (((state != "Stopped") and (jumping == "off")) and (state != "dead")) {
_root.playerMC.gotoAndStop("right");
}
if (jumping == "on") {
_root.playerMC.gotoAndStop("jump right");
}
if ((state == "Stopped") and (jumping == "off")) {
_root.playerMC.gotoAndStop("stopped right");
}
if (state == "tutorial") {
_root.playerMC.gotoAndStop("stopped right");
}
}
if (direction == -1) {
if (((state != "Stopped") and (jumping == "off")) and (state != "dead")) {
_root.playerMC.gotoAndStop("left");
}
if (jumping == "on") {
_root.playerMC.gotoAndStop("jump left");
}
if ((state == "Stopped") and (jumping == "off")) {
_root.playerMC.gotoAndStop("stopped left");
}
if (state == "tutorial") {
_root.playerMC.gotoAndStop("stopped right");
}
}
if (state == "dead") {
_root.playerMC.gotoAndStop("death");
}
}
Instance of Symbol 78 MovieClip "KeyMC" in Frame 3
onClipEvent (enterFrame) {
if (_root.CodeMC:jump == "on") {
Set("_root.CodeMC:lastjump", "on");
} else {
Set("_root.CodeMC:lastjump", "off");
}
Set("_root.CodeMC:jump", "off");
Set("_root.CodeMC:left", "off");
Set("_root.CodeMC:right", "off");
if (Key.isDown(32)) {
Set("_root.CodeMC:jump", "on");
}
if (Key.isDown(37)) {
Set("_root.CodeMC:left", "on");
}
if (Key.isDown(39)) {
Set("_root.CodeMC:right", "on");
}
if (_root.codeMC:state == "Stopped") {
if (Key.isDown(38)) {
if (getProperty("_root.PlayerMC", _y) < (_root.codeMC:scrollPointLower - 5)) {
setProperty("_root.PlayerMC", _y , getProperty("_root.PlayerMC", _y) + 5);
setProperty("_root.backgroundMC", _y , getProperty("_root.backgroundMC", _y) + 5);
} else if (getProperty("_root.PlayerMC", _y) < (_root.codeMC:scrollPointLower - 1)) {
setProperty("_root.PlayerMC", _y , getProperty("_root.PlayerMC", _y) + 1);
setProperty("_root.backgroundMC", _y , getProperty("_root.backgroundMC", _y) + 1);
}
}
if (Key.isDown(40)) {
if (getProperty("_root.PlayerMC", _y) > (_root.codeMC:scrollPointUpper + 5)) {
setProperty("_root.PlayerMC", _y , getProperty("_root.PlayerMC", _y) - 5);
setProperty("_root.backgroundMC", _y , getProperty("_root.backgroundMC", _y) - 5);
}
} else if (getProperty("_root.PlayerMC", _y) > (_root.codeMC:scrollPointLower + 1)) {
setProperty("_root.PlayerMC", _y , getProperty("_root.PlayerMC", _y) - 1);
setProperty("_root.backgroundMC", _y , getProperty("_root.backgroundMC", _y) - 1);
}
}
if (Key.isDown(81)) {
_root.score = _root.codeMC:score;
Set("_root.codeMC:lives", _root.codeMC:lives - 1);
Set("_root.codeMC:state", "Stopped");
Set("_root.codeMC:blueSwitch", "off");
Set("_root.codeMC:redSwitch", "off");
Set("_root.codeMC:purpleSwitch", "off");
Set("_root.codeMC:air", 5);
Set("_root.codeMC:redgems", 0);
Set("_root.codeMC:bluegems", 0);
Set("_root.codeMC:purplegems", 0);
Set("_root.codeMC:colourActive", "none");
Set("_root.codeMC:currentGround", 500);
setProperty("_root.backgroundMC", _x , 0);
setProperty("_root.backgroundMC", _y , 0);
setProperty("_root.playerMC", _x , 197.2);
setProperty("_root.playerMC", _y , 97);
Set("_root:end", 1);
Set("_root.codeMC:deathspeed", 0);
}
if (Key.isDown(70)) {
setProperty("_root.codeMC", _y , 260);
}
}
Frame 4
gotoAndPlay (3);
Frame 5
platformOptionFile = sharedobject.getLocal("IMBplatform01");
if (_root.highScore < score) {
highText._visible = true;
platformOptionFile.data.highScore = score;
} else {
highText._visible = false;
}
stop();
Instance of Symbol 26 MovieClip "clouds" in Frame 5
onClipEvent (enterFrame) {
if (_x < -446) {
_x = -27;
}
_x = (_x - 1);
}
Instance of Symbol 62 MovieClip in Frame 5
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 5
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 5
onClipEvent (load) {
stop();
}
Instance of Symbol 427 MovieClip in Frame 6
//component parameters
onClipEvent (initialize) {
scoreLocation = "_root.score";
gamename = "redbeard";
saveScore = true;
scoreIsTime = false;
}
Frame 7
_root.end = 0;
platformOptionFile = sharedobject.getLocal("IMBplatform01");
if (_root.highScore < score) {
highText._visible = true;
platformOptionFile.data.highScore = score;
} else {
highText._visible = false;
}
stop();
Instance of Symbol 26 MovieClip "clouds" in Frame 7
onClipEvent (enterFrame) {
if (_x < -446) {
_x = -27;
}
_x = (_x - 1);
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 62 MovieClip in Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 427 MovieClip in Frame 8
//component parameters
onClipEvent (initialize) {
scoreLocation = "_root.score";
gamename = "redbeard";
saveScore = true;
scoreIsTime = false;
}
Symbol 22 MovieClip Frame 99
_root.play();
Symbol 38 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 50 Button
on (release) {
play();
}
Symbol 55 Button
on (release) {
firstLevel = "L" + _root.highestLevel;
play();
}
Symbol 58 MovieClip Frame 1
if (Key.isDown(76)) {
_y = 300;
}
Symbol 58 MovieClip Frame 2
gotoAndPlay (1);
Symbol 83 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if (((getProperty("_root.playerMC", _y) > (_y + getProperty("_root.BackgroundMC", _y))) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.backgroundMC", _x)))) and (getProperty("_root.playerMC", _x) < ((_x + getProperty("_root.backgroundMC", _x)) + _width))) {
if (_root.CodeMC:direction == 1) {
setProperty("_root.playerMC", _x , (_x + getProperty("_root.backgroundMC", _x)) - 1);
}
if (_root.CodeMC:direction == -1) {
setProperty("_root.playerMC", _x , ((_x + getProperty("_root.backgroundMC", _x)) + _width) + 1);
}
Set("_root.CodeMC:state", "Stopped");
}
}
}
Symbol 83 MovieClip Frame 2
gotoAndPlay (1);
Symbol 86 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if (hittest(_root.playerMC)) {
_root.gem.start();
_root.goal.start();
trace(_root.codeMC:Testscore);
Set("_root.codeMC:blueSwitch", "off");
Set("_root.codeMC:redSwitch", "off");
Set("_root.codeMC:purpleSwitch", "off");
Set("_root.codeMC:Testscore", 0);
Set("_root.codeMC:score", _root.codeMC:score + _root.codeMC:bonusScore);
setProperty("_root.playerMC", _x , 171.2);
setProperty("_root.playerMC", _y , 97);
setProperty("_root.backgroundMC", _x , 0);
setProperty("_root.backgroundMC", _y , 0);
Set("_root.codeMC:redgems", 0);
Set("_root.codeMC:bluegems", 0);
Set("_root.codeMC:purplegems", 0);
Set("_root.codeMC:colourActive", "none");
Set("_root.codeMC:currentGround", 500);
_root.LevelboardMC.gotoAndPlay("start");
Set("_root.CodeMC:tutorial", "off");
_root.backgroundMC.gotoAndPlay(_root.codeMC:nextlevel);
}
}
}
Symbol 86 MovieClip Frame 2
gotoAndPlay (1);
Symbol 99 MovieClip Frame 1
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
Symbol 99 MovieClip Frame 2
gotoAndPlay (1);
Symbol 101 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else {
if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
if ((((hitTest(_root.playerMC) and (_root.codeMC:jumping == "on")) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.PlayerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.backgroundMC", _y)) + _height))) {
setProperty("_root.playerMC", _y , ((_y + getProperty("_root.backgroundMC", _y)) + getProperty("_root.playerMC", _height)) + _height);
Set("_root.codeMC:jumping", "off");
Set("_root.codeMC:jumpSpeed", 0);
Set("_root.codeMC:fallSpeed", 0);
}
if ((((getProperty("_root.playerMC", _y) > (_y + getProperty("_root.BackgroundMC", _y))) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + _height))) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.backgroundMC", _x)))) and (getProperty("_root.playerMC", _x) < ((_x + getProperty("_root.backgroundMC", _x)) + _width))) {
if (_root.CodeMC:direction == 1) {
setProperty("_root.playerMC", _x , (_x + getProperty("_root.backgroundMC", _x)) - 1);
}
if (_root.CodeMC:direction == -1) {
setProperty("_root.playerMC", _x , ((_x + getProperty("_root.backgroundMC", _x)) + _width) + 1);
}
Set("_root.CodeMC:state", "Stopped");
}
}
}
}
Symbol 101 MovieClip Frame 2
gotoAndPlay (1);
Symbol 102 MovieClip Frame 1
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else {
if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
if ((((hitTest(_root.playerMC) and (_root.codeMC:jumping == "on")) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.PlayerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.backgroundMC", _y)) + _height))) {
setProperty("_root.playerMC", _y , ((_y + getProperty("_root.backgroundMC", _y)) + getProperty("_root.playerMC", _height)) + _height);
Set("_root.codeMC:jumping", "off");
Set("_root.codeMC:jumpSpeed", 0);
Set("_root.codeMC:fallSpeed", 0);
}
if ((((getProperty("_root.playerMC", _y) > (_y + getProperty("_root.BackgroundMC", _y))) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + _height))) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.backgroundMC", _x)))) and (getProperty("_root.playerMC", _x) < ((_x + getProperty("_root.backgroundMC", _x)) + _width))) {
if (_root.CodeMC:direction == 1) {
setProperty("_root.playerMC", _x , (_x + getProperty("_root.backgroundMC", _x)) - 1);
}
if (_root.CodeMC:direction == -1) {
setProperty("_root.playerMC", _x , ((_x + getProperty("_root.backgroundMC", _x)) + _width) + 1);
}
Set("_root.CodeMC:state", "Stopped");
}
}
}
Symbol 102 MovieClip Frame 2
gotoAndPlay (1);
Symbol 105 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if (this.hittest(_root.playerMC)) {
Set("_root.codeMC:enemyCol", "on");
}
}
}
Symbol 105 MovieClip Frame 2
gotoAndPlay (1);
Symbol 107 MovieClip Frame 1
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
Symbol 107 MovieClip Frame 2
gotoAndPlay (1);
Symbol 109 MovieClip Frame 1
if (startup == null) {
starty = _y + 1;
startup = "done";
}
if ((_root.codeMC:colourActive == "red") or (_root.codeMC:redSwitch == "on")) {
if (_y < starty) {
direction = 1;
}
if (_y > (starty + 100)) {
direction = -1;
}
_y = (_y + direction);
}
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
Symbol 109 MovieClip Frame 2
gotoAndPlay (1);
Symbol 110 MovieClip Frame 24
gotoAndPlay (5);
Symbol 110 MovieClip Frame 29
stop();
Symbol 111 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (hittest(_root.playerMC) and (collected != "on")) {
Set("_root.codeMC:redgems", _root.codeMC:redgems + 1);
_root.gem.start();
gemTweenMovie.gotoAndPlay("collected");
Set("_root.codeMC:collected", "red");
collected = "on";
}
}
if ((_root.codeMC:redgems == 0) and (collected == "on")) {
gemTweenMovie.gotoAndPlay("appear");
collected = "off";
}
Instance of Symbol 110 MovieClip "gemTweenMovie" in Symbol 111 MovieClip Frame 1
/* no clip actions */
Symbol 111 MovieClip Frame 2
gotoAndPlay (1);
Symbol 113 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
Symbol 113 MovieClip Frame 2
gotoAndPlay (1);
Symbol 115 MovieClip Frame 1
if (startup == null) {
starty = _y - 1;
startup = "done";
}
if ((_root.codeMC:colourActive == "blue") or (_root.codeMC:blueSwitch == "on")) {
if (_y > starty) {
direction = -1;
}
if (_y < (starty - 100)) {
direction = 1;
}
_y = (_y + direction);
}
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
Symbol 115 MovieClip Frame 2
gotoAndPlay (1);
Symbol 116 MovieClip Frame 24
gotoAndPlay (5);
Symbol 116 MovieClip Frame 30
stop();
Symbol 117 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (hittest(_root.playerMC) and (collected != "on")) {
_root.gem2.start();
Set("_root.codeMC:bluegems", _root.codeMC:bluegems + 1);
gemTweenMovie.gotoAndPlay("collected");
Set("_root.codeMC:collected", "blue");
collected = "on";
}
}
if ((_root.codeMC:bluegems == 0) and (collected == "on")) {
gemTweenMovie.gotoAndPlay("appear");
collected = "off";
}
Instance of Symbol 116 MovieClip "gemTweenMovie" in Symbol 117 MovieClip Frame 1
/* no clip actions */
Symbol 117 MovieClip Frame 2
gotoAndPlay (1);
Symbol 119 MovieClip Frame 1
if (startup == null) {
startx = _x + 1;
startup = "done";
}
if ((_root.codeMC:colourActive == "purple") or (_root.codeMC:purpleSwitch == "on")) {
if (_x < startx) {
direction = 2;
}
if (_x > (startx + 100)) {
direction = -2;
}
_x = (_x + direction);
}
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if ((_root.codeMC:colourActive == "purple") or (_root.codeMC:purpleSwitch == "on")) {
if (((getProperty("_root.playerMC", _x) > _root.codeMC:scrollPoint) and (direction == 2)) or ((getProperty("_root.playerMC", _x) < _root.codeMC:scrollPointLeft) and (direction == -2))) {
if ((getProperty("_root.playerMC", _x) > _root.codeMC:scrollPoint) and (direction == 2)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - direction);
}
if ((getProperty("_root.playerMC", _x) < _root.codeMC:scrollPointLeft) and (direction == -2)) {
setProperty("_root.backgroundMC", _x , getProperty("_root.backgroundMC", _x) - direction);
}
} else {
setProperty("_root.PlayerMC", _x , getProperty("_root.PlayerMC", _x) + direction);
}
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
Symbol 119 MovieClip Frame 2
gotoAndPlay (1);
Symbol 120 MovieClip Frame 24
gotoAndPlay (5);
Symbol 120 MovieClip Frame 30
stop();
Symbol 121 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (hittest(_root.playerMC) and (collected != "on")) {
_root.gem3.start();
Set("_root.codeMC:purplegems", _root.codeMC:purplegems + 1);
gemTweenMovie.gotoAndPlay("collected");
Set("_root.codeMC:collected", "purple");
collected = "on";
}
}
if ((_root.codeMC:purplegems == 0) and (collected == "on")) {
gemTweenMovie.gotoAndPlay("appear");
collected = "off";
}
Instance of Symbol 120 MovieClip "gemTweenMovie" in Symbol 121 MovieClip Frame 1
/* no clip actions */
Symbol 121 MovieClip Frame 2
gotoAndPlay (1);
Symbol 123 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
Symbol 123 MovieClip Frame 2
gotoAndPlay (1);
Symbol 127 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if ((_root.codeMC:colourActive == "red") or (_root.codeMC:redSwitch == "on")) {
graphic.gotoAndStop("on");
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
}
Symbol 127 MovieClip Frame 2
gotoAndPlay (1);
Symbol 131 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if ((_root.codeMC:colourActive == "blue") or (_root.codeMC:blueSwitch == "on")) {
graphic.gotoAndStop("on");
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
}
Symbol 131 MovieClip Frame 2
gotoAndPlay (1);
Symbol 135 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if ((_root.codeMC:colourActive == "purple") or (_root.codeMC:purpleSwitch == "on")) {
graphic.gotoAndStop("on");
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
}
Symbol 135 MovieClip Frame 2
gotoAndPlay (1);
Symbol 138 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else {
if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
if ((((hitTest(_root.playerMC) and (_root.codeMC:jumping == "on")) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.PlayerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.backgroundMC", _y)) + _height))) {
setProperty("_root.playerMC", _y , ((_y + getProperty("_root.backgroundMC", _y)) + getProperty("_root.playerMC", _height)) + _height);
Set("_root.codeMC:jumping", "off");
Set("_root.codeMC:jumpSpeed", 0);
Set("_root.codeMC:fallSpeed", 0);
}
if ((((getProperty("_root.playerMC", _y) > (_y + getProperty("_root.BackgroundMC", _y))) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + _height))) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.backgroundMC", _x)))) and (getProperty("_root.playerMC", _x) < ((_x + getProperty("_root.backgroundMC", _x)) + _width))) {
if (_root.CodeMC:direction == 1) {
setProperty("_root.playerMC", _x , (_x + getProperty("_root.backgroundMC", _x)) - 1);
}
if (_root.CodeMC:direction == -1) {
setProperty("_root.playerMC", _x , ((_x + getProperty("_root.backgroundMC", _x)) + _width) + 1);
}
Set("_root.CodeMC:state", "Stopped");
}
}
}
}
Symbol 138 MovieClip Frame 2
gotoAndPlay (1);
Symbol 140 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else {
if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
if ((((hitTest(_root.playerMC) and (_root.codeMC:jumping == "on")) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.PlayerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.backgroundMC", _y)) + _height))) {
setProperty("_root.playerMC", _y , ((_y + getProperty("_root.backgroundMC", _y)) + getProperty("_root.playerMC", _height)) + _height);
Set("_root.codeMC:jumping", "off");
Set("_root.codeMC:jumpSpeed", 0);
Set("_root.codeMC:fallSpeed", 0);
}
if ((((getProperty("_root.playerMC", _y) > (_y + getProperty("_root.BackgroundMC", _y))) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + _height))) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.backgroundMC", _x)))) and (getProperty("_root.playerMC", _x) < ((_x + getProperty("_root.backgroundMC", _x)) + _width))) {
if (_root.CodeMC:direction == 1) {
setProperty("_root.playerMC", _x , (_x + getProperty("_root.backgroundMC", _x)) - 1);
}
if (_root.CodeMC:direction == -1) {
setProperty("_root.playerMC", _x , ((_x + getProperty("_root.backgroundMC", _x)) + _width) + 1);
}
Set("_root.CodeMC:state", "Stopped");
}
}
}
}
Symbol 140 MovieClip Frame 2
gotoAndPlay (1);
Symbol 141 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
if (_root.codeMC:jumping == "off") {
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
}
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else {
if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
if ((((hitTest(_root.playerMC) and (_root.codeMC:jumping == "on")) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.PlayerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) and (getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.backgroundMC", _y)) + _height))) {
setProperty("_root.playerMC", _y , ((_y + getProperty("_root.backgroundMC", _y)) + getProperty("_root.playerMC", _height)) + _height);
Set("_root.codeMC:jumping", "off");
Set("_root.codeMC:jumpSpeed", 0);
Set("_root.codeMC:fallSpeed", 0);
}
if ((((getProperty("_root.playerMC", _y) > (_y + getProperty("_root.BackgroundMC", _y))) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + _height))) and (getProperty("_root.playerMC", _x) > (_x + getProperty("_root.backgroundMC", _x)))) and (getProperty("_root.playerMC", _x) < ((_x + getProperty("_root.backgroundMC", _x)) + _width))) {
if (_root.CodeMC:direction == 1) {
setProperty("_root.playerMC", _x , (_x + getProperty("_root.backgroundMC", _x)) - 1);
}
if (_root.CodeMC:direction == -1) {
setProperty("_root.playerMC", _x , ((_x + getProperty("_root.backgroundMC", _x)) + _width) + 1);
}
Set("_root.CodeMC:state", "Stopped");
}
}
}
}
Symbol 141 MovieClip Frame 2
gotoAndPlay (1);
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 5
stop();
Symbol 145 MovieClip Frame 1
if (hitTest(_root.playerMC) and (_root.codeMC:falling == "on")) {
if (_root.codeMC:redSwitch != "on") {
_root.click.start();
}
Set("_root.codeMC:redSwitch", "on");
switchMC.gotoAndStop("on");
}
Symbol 145 MovieClip Frame 2
gotoAndPlay (1);
Symbol 163 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + getProperty("_parent", _x)) > 0) and ((getProperty("_root.BackgroundMC", _x) + getProperty("_parent", _x)) < 450)) and ((getProperty("_root.BackgroundMC", _y) + getProperty("_parent", _y)) > 0)) and ((getProperty("_root.BackgroundMC", _y) + getProperty("_parent", _y)) < 300)) {
if (_parent.beastie.hittest(_root.playerMC)) {
Set("_root.codeMC:enemyCol", "on");
}
}
if (startup == null) {
startx = getProperty("_parent", _x) + 1;
startup = "done";
}
if (getProperty("_parent", _x) < startx) {
direction = _parent._parent:beastieMove;
_parent.gotoAndStop(1);
}
distance = Number(_parent._name);
if (getProperty("_parent", _x) > (startx + distance)) {
direction = -_parent._parent:beastieMove;
_parent.gotoAndStop(2);
}
setProperty("_parent", _x , getProperty("_parent", _x) + direction);
Symbol 163 MovieClip Frame 2
gotoAndPlay (1);
Symbol 169 MovieClip Frame 1
if ((((((getProperty("_root.BackgroundMC", _x) + _x) + _width) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and (((getProperty("_root.BackgroundMC", _y) + _y) + _height) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if ((_root.codeMC:colourActive == "blue") or (_root.codeMC:blueSwitch == "on")) {
graphic.gotoAndStop("on");
range = 10;
if ((getProperty("_root.playerMC", _y) > ((_y + getProperty("_root.BackgroundMC", _y)) - range)) and (getProperty("_root.playerMC", _y) < ((_y + getProperty("_root.BackgroundMC", _y)) + range))) {
inRange = "on";
} else {
inrange = "off";
}
if ((getProperty("_root.playerMC", _y) < (_y + getProperty("_root.BackgroundMC", _y))) and ((getProperty("_root.playerMC", _y) + _root.CodeMC:fallspeed) > (_y + getProperty("_root.BackgroundMC", _y)))) {
yCollision = "on";
} else {
yCollision = "off";
}
if ((getProperty("_root.playerMC", _x) > (_x + getProperty("_root.BackgroundMC", _x))) and (getProperty("_root.playerMC", _x) < ((_x + _width) + getProperty("_root.BackgroundMC", _x)))) {
xCollision = "on";
} else {
xCollision = "off";
}
if ((inRange == "on") and (xCollision == "on")) {
if (collision != "on") {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive + 1);
}
collision = "on";
Set("_root.CodeMC:currentGround", _y + getProperty("_root.BackgroundMC", _y));
setProperty("_root.playerMC", _y , _y + getProperty("_root.BackgroundMC", _y));
if (getProperty("_root.playerMC", _y) > _root.codeMC:scrollPointLower) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointLower);
}
if (getProperty("_root.playerMC", _y) < _root.codeMC:scrollPointUpper) {
setProperty("_root.backgroundMC", _y , (getProperty("_root.backgroundMC", _y) - getProperty("_root.playerMC", _y)) + _root.codeMC:scrollPointUpper);
}
} else if (collision == "on") {
if ((inRange == "off") or (xCollision == "off")) {
Set("_root.CodeMC:platformActive", _root.CodeMC:platformActive - 1);
collision = "off";
}
}
}
}
Symbol 169 MovieClip Frame 2
gotoAndPlay (1);
Symbol 172 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (_root.codeMC:state != "dead") {
if (this.hittest(_root.playerMC)) {
Set("_root.codeMC:enemyCol", "on");
}
}
}
Symbol 172 MovieClip Frame 2
gotoAndPlay (1);
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 5
stop();
Symbol 176 MovieClip Frame 1
if (hitTest(_root.playerMC) and (_root.codeMC:falling == "on")) {
if (_root.codeMC:blueSwitch != "on") {
_root.click.start();
}
Set("_root.codeMC:blueSwitch", "on");
switchMC.gotoAndStop("on");
}
Symbol 176 MovieClip Frame 2
gotoAndPlay (1);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 5
stop();
Symbol 180 MovieClip Frame 1
if (hitTest(_root.playerMC) and (_root.codeMC:falling == "on")) {
if (_root.codeMC:purpleSwitch != "on") {
_root.click.start();
}
Set("_root.codeMC:purpleSwitch", "on");
switchMC.gotoAndStop("on");
}
Symbol 180 MovieClip Frame 2
gotoAndPlay (1);
Symbol 181 MovieClip Frame 1
if (((((getProperty("_root.BackgroundMC", _x) + _x) > 0) and ((getProperty("_root.BackgroundMC", _x) + _x) < 450)) and ((getProperty("_root.BackgroundMC", _y) + _y) > 0)) and ((getProperty("_root.BackgroundMC", _y) + _y) < 300)) {
if (hittest(_root.playerMC)) {
trace(_root.codeMC:Testscore);
Set("_root.codeMC:blueSwitch", "off");
Set("_root.codeMC:redSwitch", "off");
Set("_root.codeMC:purpleSwitch", "off");
Set("_root.codeMC:Testscore", 0);
Set("_root.codeMC:score", _root.codeMC:score + _root.codeMC:bonusScore);
setProperty("_root.playerMC", _x , 171.2);
setProperty("_root.playerMC", _y , 97);
setProperty("_root.backgroundMC", _x , 0);
setProperty("_root.backgroundMC", _y , 0);
Set("_root.codeMC:redgems", 0);
Set("_root.codeMC:bluegems", 0);
Set("_root.codeMC:purplegems", 0);
Set("_root.codeMC:colourActive", "none");
Set("_root.codeMC:currentGround", 500);
_root.LevelboardMC.gotoAndPlay("start");
Set("_root.CodeMC:tutorial", "off");
_root.score = _root.codeMC:score;
Set("_root:end", 1);
}
}
Symbol 181 MovieClip Frame 2
gotoAndPlay (1);
Symbol 182 MovieClip Frame 1
function saveHighestLevel(x) {
platformOptionFile.data.highestLevel = x;
}
platformOptionFile = sharedobject.getLocal("IMBplatform01");
Set("_root.codeMC:lives", 3);
Set("_root.codeMC:score", 0);
gotoAndPlay(_root:firstLevel);
Symbol 182 MovieClip Frame 2
Set("_root.codeMC:state", "tutorial");
Set("_root.codeMC:redNeeded", "X");
Set("_root.codeMC:blueNeeded", "X");
Set("_root.codeMC:purpleNeeded", "X");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L2");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L1");
Set("_root.codeMC:levelName", "01");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 100);
Set("_root.codeMC:bonusScore", 1750);
Symbol 182 MovieClip Frame 3
stop();
Symbol 182 MovieClip Frame 4
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 2) {
saveHighestLevel(2);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "X");
Set("_root.codeMC:purpleNeeded", "X");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L3");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L2");
Set("_root.codeMC:levelName", "02");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 150);
Set("_root.codeMC:bonusScore", 2050);
Symbol 182 MovieClip Frame 5
stop();
Symbol 182 MovieClip Frame 6
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 3) {
saveHighestLevel(3);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "X");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L4");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L3");
Set("_root.codeMC:levelName", "03");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 200);
Set("_root.codeMC:bonusScore", 3200);
Symbol 182 MovieClip Frame 7
stop();
Symbol 182 MovieClip Frame 8
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 4) {
saveHighestLevel(4);
}
Set("_root.codeMC:redNeeded", "2");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L5");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L4");
Set("_root.codeMC:levelName", "04");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 250);
Set("_root.codeMC:bonusScore", 5750);
Symbol 182 MovieClip Frame 9
stop();
Symbol 182 MovieClip Frame 10
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 5) {
saveHighestLevel(5);
}
Set("_root.codeMC:redNeeded", "2");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L6");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L5");
Set("_root.codeMC:levelName", "05");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 300);
Set("_root.codeMC:bonusScore", 6750);
Symbol 182 MovieClip Frame 11
stop();
Symbol 182 MovieClip Frame 12
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 6) {
saveHighestLevel(6);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L7");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L6");
Set("_root.codeMC:levelName", "06");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 350);
Set("_root.codeMC:bonusScore", 3750);
Symbol 182 MovieClip Frame 13
stop();
Symbol 182 MovieClip Frame 14
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 7) {
saveHighestLevel(7);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0.5);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L8");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L7");
Set("_root.codeMC:levelName", "07");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 400);
Set("_root.codeMC:bonusScore", 4500);
Symbol 182 MovieClip Frame 15
stop();
Symbol 182 MovieClip Frame 16
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 8) {
saveHighestLevel(8);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -200);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L9");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L8");
Set("_root.codeMC:levelName", "08");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 450);
Set("_root.codeMC:bonusScore", 6000);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 17
stop();
Symbol 182 MovieClip Frame 18
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 9) {
saveHighestLevel(9);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -300);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L10");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L9");
Set("_root.codeMC:levelName", "09");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 500);
Set("_root.codeMC:bonusScore", 6500);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 19
stop();
Symbol 182 MovieClip Frame 20
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 10) {
saveHighestLevel(10);
}
Set("_root.codeMC:redNeeded", "2");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -200);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L11");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L10");
Set("_root.codeMC:levelName", "10");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 450);
Set("_root.codeMC:bonusScore", 6750);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 21
stop();
Symbol 182 MovieClip Frame 22
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 11) {
saveHighestLevel(11);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -250);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L12");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L11");
Set("_root.codeMC:levelName", "11");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 450);
Set("_root.codeMC:bonusScore", 7250);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 23
stop();
Symbol 182 MovieClip Frame 24
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 12) {
saveHighestLevel(12);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -200);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L13");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L12");
Set("_root.codeMC:levelName", "12");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 450);
Set("_root.codeMC:bonusScore", 7000);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 25
stop();
Symbol 182 MovieClip Frame 26
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 13) {
saveHighestLevel(13);
}
Set("_root.codeMC:redNeeded", "3");
Set("_root.codeMC:blueNeeded", "3");
Set("_root.codeMC:purpleNeeded", "3");
Set("_root.codeMC:Waterheight", -250);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L14");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L13");
Set("_root.codeMC:levelName", "13");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 450);
Set("_root.codeMC:bonusScore", 8500);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 27
stop();
Symbol 182 MovieClip Frame 28
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 14) {
saveHighestLevel(14);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -200);
Set("_root.codeMC:waterSpeed", 0);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "L15");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L14");
Set("_root.codeMC:levelName", "14");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 1000);
Set("_root.codeMC:bonusScore", 14750);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 29
stop();
Symbol 182 MovieClip Frame 30
Set("_root.codeMC:state", "tutorial");
if (_root.highestLevel < 15) {
saveHighestLevel(15);
}
Set("_root.codeMC:redNeeded", "1");
Set("_root.codeMC:blueNeeded", "1");
Set("_root.codeMC:purpleNeeded", "1");
Set("_root.codeMC:Waterheight", -200);
Set("_root.codeMC:waterSpeed", 0.75);
Set("_root.codeMC:clouds", "on");
Set("_root.codeMC:nextlevel", "END");
Set("_root.codeMC:platformActive", 0);
Set("_root.codeMC:currentlevel", "L15");
Set("_root.codeMC:levelName", "15");
_root.LevelboardMC.play;
Set("_root.codeMC:levelComplete", 1000);
Set("_root.codeMC:bonusScore", 9750);
beastieMove = 3;
beastieDist = 150;
Symbol 182 MovieClip Frame 31
stop();
Symbol 207 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 5
stop();
Symbol 216 MovieClip Frame 15
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 6
stop();
Symbol 233 MovieClip Frame 11
stop();
Symbol 233 MovieClip Frame 16
stop();
Symbol 233 MovieClip Frame 21
stop();
Symbol 233 MovieClip Frame 26
stop();
Symbol 236 MovieClip Frame 1
_x = getProperty("_root.playerMC", _x);
_y = getProperty("_root.playerMC", _y);
if ((_root.codeMC:Air < 0) and (air != "death")) {
CounterMC.gotoAndPlay("death");
air = "death";
}
if (_root.codeMC:state != "dead") {
if (_root.codeMC:Air == 5) {
CounterMC.gotoAndStop(1);
air = "max";
}
if (((_root.codeMC:Air < 5) and (_root.codeMC:Air > 4)) and (air != "five")) {
CounterMC.gotoAndPlay("five");
air = "five";
}
if (((_root.codeMC:Air < 4) and (_root.codeMC:Air > 3)) and (air != "four")) {
CounterMC.gotoAndPlay("four");
air = "four";
}
if (((_root.codeMC:Air < 3) and (_root.codeMC:Air > 2)) and (air != "three")) {
CounterMC.gotoAndPlay("three");
air = "three";
}
if (((_root.codeMC:Air < 2) and (_root.codeMC:Air > 1)) and (air != "two")) {
CounterMC.gotoAndPlay("two");
air = "two";
}
if (((_root.codeMC:Air < 1) and (_root.codeMC:Air > 0)) and (air != "one")) {
CounterMC.gotoAndPlay("one");
air = "one";
}
if (((_root.codeMC:redgems < 1) and (_root.codeMC:bluegems < 1)) and (_root.codeMC:purplegems < 1)) {
CounterMC.gems.g1.gotoAndStop("none");
CounterMC.gems.g2.gotoAndStop("none");
CounterMC.gems.g3.gotoAndStop("none");
}
if (((_root.codeMC:redgems < 3) or (_root.codeMC:bluegems < 3)) or (_root.codeMC:purplegems < 3)) {
CounterMC.gems.g2.gotoAndStop("none");
CounterMC.gems.g3.gotoAndStop("none");
}
if (_root.codeMC:redgems > 0) {
CounterMC.gems.g1.gotoAndStop("red");
}
if (_root.codeMC:redgems > 1) {
CounterMC.gems.g2.gotoAndStop("red");
}
if (_root.codeMC:redgems > 2) {
CounterMC.gems.g3.gotoAndStop("red");
}
if (_root.codeMC:bluegems > 0) {
CounterMC.gems.g1.gotoAndStop("blue");
}
if (_root.codeMC:bluegems > 1) {
CounterMC.gems.g2.gotoAndStop("blue");
}
if (_root.codeMC:bluegems > 2) {
CounterMC.gems.g3.gotoAndStop("blue");
}
if (_root.codeMC:purplegems > 0) {
CounterMC.gems.g1.gotoAndStop("purple");
}
if (_root.codeMC:purplegems > 1) {
CounterMC.gems.g2.gotoAndStop("purple");
}
if (_root.codeMC:purplegems > 2) {
CounterMC.gems.g3.gotoAndStop("purple");
}
}
Symbol 236 MovieClip Frame 2
gotoAndPlay (1);
Symbol 249 MovieClip Frame 41
Set("_root.codeMC:levelBoardDone", "TRUE");
Set("_root.codeMC:state", "Stopped");
Symbol 249 MovieClip Frame 46
stop();
Symbol 266 Button
on (release) {
getURL ("http://www.miniclip.com/redbeard.htm", "_blank");
}
Symbol 271 Button
on (release) {
gotoAndStop (2);
}
Symbol 281 MovieClip Frame 2
stop();
Symbol 295 Button
on (release) {
sendHighScore();
}
Symbol 311 MovieClip Frame 18
txtUsername = _parent.mcHighScoreData.notSentUsername;
myDate = new Date();
stop();
Symbol 318 Button
on (release) {
gotoAndPlay (48);
}
Symbol 321 Button
on (release) {
gotoAndPlay (68);
}
Symbol 356 MovieClip Frame 11
stop();
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 357 MovieClip Frame 10
stop();
Symbol 363 Button
on (release) {
gotoAndStop (41);
}
Symbol 427 MovieClip Frame 1
function convertScoreToTime(scoreToBeConverted) {
var convertScore = (-(scoreToBeConverted - 1000000));
var strScore = new String(convertScore);
if (convertScore > 99999) {
var tmpTime = ((((strScore.substring(0, 2) + ":") + strScore.substring(2, 4)) + ":") + strScore.substring(4, 6));
} else if (convertScore > 9999) {
var tmpTime = ((((("0" + strScore.substring(0, 1)) + ":") + strScore.substring(1, 3)) + ":") + strScore.substring(3, 5));
} else if (convertScore > 999) {
var tmpTime = ((("00:" + strScore.substring(0, 2)) + ":") + strScore.substring(2, 5));
} else if (convertScore > 99) {
var tmpTime = ((("00:0" + strScore.substring(0, 1)) + ":") + strScore.substring(1, 3));
} else if (convertScore > 9) {
var tmpTime = ("00:00:" + strScore.substring(0, 2));
} else {
var tmpTime = ("00:00:0" + strScore.substring(0, 1));
}
convertScore = tmpTime;
if (convertScore != "10:00:00") {
return(convertScore);
}
}
function getHighScores(period, target) {
target.records = 0;
if (saveScore) {
target.score = localScore;
target.username = txtUsername;
target.notSentScore = localScore;
target.notSentUsername = txtUsername;
}
target.gamename = gamename;
target.low = 0;
target.high = 10;
target.formaction = "gethighscores";
target.dwm = period;
var preventCaching = (getTimer() + random(100));
target.loadVariables("http://www.miniclip.com/Flash/proxy.php?preventCashing=" + preventCaching, "GET");
play();
}
function sendHighScore() {
if ((txtUsername != "") && (txtUsername != undefined)) {
getHighScores(2, mcHighScoreData);
}
}
this.username = "";
this.score = 0;
position_d = 0;
position_w = 0;
position_m = 0;
mcHighScoreData.records = 0;
dailyLoaded = false;
weeklyLoaded = false;
monthlyLoaded = false;
dailyTabClicked = false;
weeklyTabClicked = false;
monthlyTabClicked = false;
timeOutVal = 15000;
completed = "false";
localScore = int(eval (scoreLocation));
if (scoreIsTime && (localScore > 0)) {
localScore = 1000000 - localScore;
}
this._x = int(this._x);
this._y = int(this._y);
if (gameName == undefined) {
trace("MINICLIP.COM HIGHSCORE COMPONENT WARNING");
trace("========================================");
trace("The 'gameName' parameter has not been set. This parameter");
trace("needs to be set for the highscore component to function.");
error = true;
}
if ((eval (scoreLocation) == undefined) && (saveScore)) {
trace("MINICLIP.COM HIGHSCORE COMPONENT WARNING");
trace("========================================");
trace("The 'scoreLocation' parameter does not contain any data.");
trace("This parameter needs to be pointing to the game score variable");
trace("set for the highscore component to function.");
error = true;
}
if (error == true) {
_parent.stop();
stop();
} else if (saveScore && (eval (scoreLocation) > 0)) {
gotoAndPlay (2);
} else {
getHighScores(2, mcHighScoreData);
gotoAndPlay (15);
}
Symbol 427 MovieClip Frame 9
Selection.setFocus("txtUsername");
txtUsername = mcHighScoreData.username;
stop();
Instance of Symbol 291 MovieClip in Symbol 427 MovieClip Frame 9
onClipEvent (keyDown) {
if (Key.isDown(13)) {
_parent.sendHighScore();
}
}
Symbol 427 MovieClip Frame 15
mcHighScoreData.username = "";
everyNSeconds = getTimer() + 2000;
saveScore = false;
timeOut = getTimer() + timeOutVal;
Symbol 427 MovieClip Frame 17
if (getTimer() > timeOut) {
timeOut = getTimer() + timeOutVal;
completed = false;
gotoAndPlay (20);
} else if (mcHighScoreData.records > 0) {
mcHighScoreData.positionDaily = mcHighScoreData.position;
if (scoreIsTime) {
mcHighScoreData.notSentScore = convertScoreToTime(localScore);
}
var i = 0;
while (i < mcHighScoreData.high) {
mcHighScoreData["userNameDaily" + i] = mcHighScoreData["user_name" + i];
mcHighScoreData["scoreDaily" + i] = mcHighScoreData["score" + i];
mcHighScoreData["dateDaily" + i] = mcHighScoreData["date" + i];
i++;
}
gotoAndPlay (34);
} else {
if (getTimer() > everyNSeconds) {
getHighScores(2, mcHighScoreData);
everyNSeconds = getTimer() + 2000;
trace("try");
}
gotoAndPlay(_currentframe - 1);
}
Symbol 427 MovieClip Frame 28
stop();
Instance of Symbol 311 MovieClip "mcYourScore" in Symbol 427 MovieClip Frame 34
onClipEvent (load) {
if (_parent.localScore <= 0) {
this._visible = false;
}
}
Symbol 427 MovieClip Frame 41
if (!dailyTabClicked) {
mcYourScore.position = position;
dailyTabClicked = true;
var i = 0;
while (i < mcHighScoreData.high) {
if (scoreIsTime) {
mcHighScoreData["scoreDaily" + i] = convertScoreToTime(mcHighScoreData["scoreDaily" + i]);
}
this["txtUserName" + i] = mcHighScoreData["userNameDaily" + i];
this["txtScore" + i] = mcHighScoreData["scoreDaily" + i];
this["txtDate" + i] = mcHighScoreData["dateDaily" + i];
i++;
}
}
mcYourScore.position = mcHighScoreData.positionDaily;
stop();
Symbol 427 MovieClip Frame 48
if ((!weeklyTabClicked) or (!weeklyLoaded)) {
getHighScores(1, mcHighScoreData);
weeklyTabClicked = true;
} else if (weeklyLoaded) {
gotoAndPlay (56);
}
Symbol 427 MovieClip Frame 55
if (mcHighScoreData.records > 0) {
mcHighScoreData.positionWeekly = mcHighScoreData.position;
weeklyLoaded = true;
var i = 0;
while (i < mcHighScoreData.high) {
mcHighScoreData["userNameWeekly" + i] = mcHighScoreData["user_name" + i];
mcHighScoreData["scoreWeekly" + i] = mcHighScoreData["score" + i];
mcHighScoreData["dateWeekly" + i] = mcHighScoreData["date" + i];
if (scoreIsTime) {
mcHighScoreData["scoreWeekly" + i] = convertScoreToTime(mcHighScoreData["scoreWeekly" + i]);
}
i++;
}
gotoAndPlay (56);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 427 MovieClip Frame 56
mcYourScore.position = mcHighScoreData.positionWeekly;
stop();
Symbol 427 MovieClip Frame 68
if ((!monthlyTabClicked) or (!monthlyLoaded)) {
getHighscores(0, mcHighScoreData);
monthlyTabClicked = true;
} else if (monthlyLoaded) {
gotoAndPlay (76);
}
Symbol 427 MovieClip Frame 75
if (mcHighScoreData.records > 0) {
mcHighScoreData.positionMonthly = mcHighScoreData.position;
monthlyLoaded = true;
var i = 0;
while (i < mcHighScoreData.high) {
mcHighScoreData["userNameMonthly" + i] = mcHighScoreData["user_name" + i];
mcHighScoreData["scoreMonthly" + i] = mcHighScoreData["score" + i];
mcHighScoreData["dateMonthly" + i] = mcHighScoreData["date" + i];
if (scoreIsTime) {
mcHighScoreData["scoreMonthly" + i] = convertScoreToTime(mcHighScoreData["scoreMonthly" + i]);
}
i++;
}
gotoAndPlay (76);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 427 MovieClip Frame 76
mcYourScore.position = mcHighScoreData.positionMonthly;
var i = 0;
while (i < mcHighScoreData.high) {
this["txtUserName" + i] = mcHighScoreData["userNameMonthly" + i];
this["txtScore" + i] = mcHighScoreData["scoreMonthly" + i];
this["txtDate" + i] = mcHighScoreData["dateMonthly" + i];
i++;
}
stop();