Frame 1
globalSound = new Sound();
sound = true;
_global.myRoot = this;
var rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_global.myRoot.menu = rightClick;
var urlString = _global.myRoot._url;
if (urlString.indexOf("armorgames.com") == -1) {
_root._x = 50000;
_root._y = 40000;
}
buttonPreloader.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Frame 2
this.gotoAndPlay(1);
Frame 4
stop();
stopAllSounds();
levelName = "click play - the game!";
_global.myRoot.attachMovie("fg", "fg", 100000, {_x:320, _y:240});
totalClicks = 0;
rockOn = false;
scores = false;
highestDepth = 10000;
buttonPlay.onPress = function () {
localInfo.data.currentLevel = "click play";
localInfo.data.totalClicks = 0;
rockOn = true;
scores = false;
fg.play();
if (fg.tune._currentframe == 1) {
fg.tune.play();
}
};
buttonScores.onPress = function () {
rockOn = false;
scores = true;
fg.play();
};
onMouseDown = function () {
pressed = true;
};
onMouseUp = function () {
pressed = false;
};
fg.speaker.onRelease = function () {
if ((!levelPassed) and (!gamePaused)) {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
fg.speaker.gotoAndStop(2);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
fg.speaker.gotoAndStop(1);
}
}
};
fg.q.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
fg.buttonLink.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
fg.pauseGame.gotoAndStop(2);
onEnterFrame = function () {
fg.clicksText = "clicks: " + totalClicks;
fg.levelText = ("* " + levelName) + " *";
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
if (rockOn) {
if (fg._currentframe == fg._totalframes) {
gotoAndStop ("click play");
}
}
if (scores) {
if (fg._currentframe == fg._totalframes) {
fg.removeMovieClip();
gotoAndStop ("scores");
}
}
if (pressed) {
pressed = false;
if (pig.hitTest(_xmouse, _ymouse, true)) {
pig.play();
pigReflection.play();
}
}
};
setup = function () {
levelPassed = false;
gamePaused = false;
shaking = false;
quit = false;
onMouseDown = function () {
pressed = true;
if (((((_xmouse > 20) and (_xmouse < 620)) and (_ymouse > 100)) and (_ymouse < 380)) and (!gamePaused)) {
totalClicks = totalClicks + 1;
}
};
onMouseUp = function () {
pressed = false;
};
fg.speaker.onRelease = function () {
if ((!levelPassed) and (!gamePaused)) {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
fg.speaker.gotoAndStop(2);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
fg.speaker.gotoAndStop(1);
}
}
};
fg.q.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
fg.pauseGame.onRelease = function () {
fg.pauseGame.play();
fg.pausedMenu.play();
gamePaused = true;
};
};
explode = function () {
shaking = true;
shakeCount = 20;
i = 0;
while (i < 100) {
p = attachMovie("explosion", "explosion" + (i++), highestDepth--);
p._x = explodeX;
p._y = explodeY;
p._xscale = (p._yscale = (Math.random() * 100) + 40);
p._rotation = random(360);
i++;
}
};
shake = function () {
if (shaking) {
_global.myRoot._x = random(20) - 5;
_global.myRoot._y = random(20) - 5;
shakeCount--;
if (shakeCount == 0) {
shaking = false;
_global.myRoot._x = 0;
_global.myRoot._y = 0;
}
}
};
count = function () {
if (pressed) {
counter++;
} else {
counter = 0;
}
};
game = function () {
fg.clicksText = "clicks: " + totalClicks;
fg.levelText = ("* " + levelName) + " *";
fg.pauseGame.gotoAndStop(1);
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
shake();
count();
if (highestDepth == 0) {
highestDepth = 10000;
}
};
passedOrPaused = function () {
if (levelPassed) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
if (fg._currentframe == fg._totalframes) {
play();
}
}
if (gamePaused) {
if (quit) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
if (fg._currentframe == fg._totalframes) {
gotoAndStop ("menu");
}
}
}
};
Instance of Symbol 107 MovieClip "pig" in Frame 4
on (press) {
}
Frame 5
stop();
setup();
levelName = "click play";
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
arrowButton.play();
levelPassed = true;
}
}
} else {
passedOrPaused();
}
};
Frame 6
stop();
setup();
gravity = 0.1;
velocity = 0;
levelName = "heavy thinking";
onEnterFrame = function () {
game();
if (weight.six._rotation == 180) {
if (weight.anchor._currentframe == 1) {
weight.six.play();
weight.anchor.play();
}
velocity = velocity + gravity;
if (weight._y < 310) {
weight._y = weight._y + velocity;
} else {
weight._y = 310;
}
}
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (weight.six.hitTest(_xmouse, _ymouse, true)) {
if (weight.six._rotation != 180) {
weight.six._rotation = weight.six._rotation + 45;
}
}
if (weight.anchor.hitTest(_xmouse, _ymouse, true)) {
weight.anchor.arrowButton.play();
levelPassed = true;
}
}
} else {
passedOrPaused();
}
};
Frame 7
stop();
setup();
pulledOut = false;
gravity = 0.05;
velocity = 0;
levelName = "click play";
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
velocity = velocity + gravity;
if ((sword._y > 190) and (sword._y < 250)) {
sword._y = sword._y + velocity;
} else if (!dragging) {
sword._y = 250;
velocity = 0;
}
if ((sword._y < 190) and (!pulledOut)) {
pulledOut = true;
sword.play();
stone.play();
swordAnim.play();
}
if (pressed) {
pressed = false;
if (pulledOut) {
if (swordAnim.sword.arrowButton.hitTest(_xmouse, _ymouse, true)) {
swordAnim.sword.arrowButton.play();
levelPassed = true;
}
}
}
} else {
passedOrPaused();
}
};
Instance of Symbol 142 MovieClip "sword" in Frame 7
on (press) {
if (((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) and (!_global.myRoot.pulledOut)) {
startDrag (this, false, 450, 0, 450, 270);
_global.myRoot.dragging = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging = false;
}
Frame 8
stop();
setup();
pos = new Array();
pos[0] = {x:80, y:150};
pos[1] = {x:140, y:150};
pos[2] = {x:200, y:150};
pos[3] = {x:260, y:150};
pos[4] = {x:320, y:150};
pos[5] = {x:380, y:150};
pos[6] = {x:440, y:150};
pos[7] = {x:500, y:150};
pos[8] = {x:560, y:150};
pos[9] = {x:80, y:210};
pos[10] = {x:140, y:210};
pos[11] = {x:200, y:210};
pos[12] = {x:260, y:210};
pos[13] = {x:320, y:210};
pos[14] = {x:380, y:210};
pos[15] = {x:440, y:210};
pos[16] = {x:500, y:210};
pos[17] = {x:560, y:210};
pos[18] = {x:80, y:270};
pos[19] = {x:140, y:270};
pos[20] = {x:200, y:270};
pos[21] = {x:260, y:270};
pos[22] = {x:320, y:270};
pos[23] = {x:380, y:270};
pos[24] = {x:440, y:270};
pos[25] = {x:500, y:270};
pos[26] = {x:560, y:270};
pos[27] = {x:80, y:330};
pos[28] = {x:140, y:330};
pos[29] = {x:200, y:330};
pos[30] = {x:260, y:330};
pos[31] = {x:320, y:330};
pos[32] = {x:380, y:330};
pos[33] = {x:440, y:330};
pos[34] = {x:500, y:330};
pos[35] = {x:560, y:330};
i = 0;
while (i < 36) {
j = Math.floor(Math.random() * pos.length);
_global.myRoot["arrowButton" + i]._x = pos[j].x;
_global.myRoot["arrowButton" + i]._y = pos[j].y;
pos.splice(j, 1);
i++;
}
levelName = "twist & turn";
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (arrowButton35.hitTest(_xmouse, _ymouse, true)) {
if (arrowButton35._currentframe > 39) {
arrowButton35.arrowButton.play();
levelPassed = true;
}
}
}
} else {
passedOrPaused();
}
};
Frame 9
stop();
setup();
levelName = "obstacle course";
carX = 80;
carY = 300;
gravity = 0.2;
moving = false;
velocity = new Array();
dragging = new Array();
onEnterFrame = function () {
game();
i = 0;
while (i < 2) {
_global.myRoot["cloud" + i]._x = _global.myRoot["cloud" + i]._x + 0.5;
if (_global.myRoot["cloud" + i]._x > (640 + (_global.myRoot["cloud" + i]._width / 2))) {
_global.myRoot["cloud" + i]._x = -(_global.myRoot["cloud" + i]._width / 2);
}
i++;
}
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (car.hitTest(_xmouse, _ymouse, true)) {
car.play();
moving = true;
}
if (sign._currentframe == sign._totalframes) {
if (sign.hitTest(_xmouse, _ymouse, true)) {
sign.signArrowButton.arrowButton.play();
levelPassed = true;
}
}
}
i = 0;
while (i < 3) {
if (!dragging[i]) {
if (_global.myRoot["obstacle" + i]._y < 300) {
velocity[i] = velocity[i] + gravity;
_global.myRoot["obstacle" + i]._y = _global.myRoot["obstacle" + i]._y + velocity[i];
} else {
velocity[i] = 0;
_global.myRoot["obstacle" + i]._y = 300;
}
}
i++;
}
if (moving) {
car._x = car._x + 1;
p = attachMovie("exhaust", "exhaust" + (i++), highestDepth--);
p._x = car._x - 32;
p._y = car._y - 7;
p._xscale = (p._yscale = (Math.random() * 100) + 20);
}
i = 0;
while (i < 3) {
if (car.hitTest(_global.myRoot["obstacle" + i])) {
car.play();
_global.myRoot["obstacle" + i].play();
explodeX = car._x + 5;
explodeY = car._y;
explode();
moving = false;
car._x = carX;
car._y = carY;
}
i++;
}
if (car.hitTest(sign)) {
if (sign._currentframe == 1) {
sign.play();
}
}
} else {
passedOrPaused();
}
};
Instance of Symbol 171 MovieClip "obstacle1" in Frame 9
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (this, false, 320, 0, 320, 300);
_global.myRoot.dragging[1] = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging[1] = false;
}
Instance of Symbol 171 MovieClip "obstacle0" in Frame 9
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (this, false, 180, 0, 180, 300);
_global.myRoot.dragging[0] = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging[0] = false;
}
Instance of Symbol 171 MovieClip "obstacle2" in Frame 9
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (this, false, 460, 0, 460, 300);
_global.myRoot.dragging[2] = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging[2] = false;
}
Frame 10
stop();
setup();
levelName = "chain gang";
gravity = 0.2;
velocity = new Array();
i = 0;
while (i < 3) {
velocity[i] = 0;
i++;
}
dragging = new Array();
i = 0;
while (i < 3) {
dragging[i] = false;
i++;
}
added = new Array();
i = 0;
while (i < 3) {
added[i] = false;
i++;
}
touched = 0;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
i = 0;
while (i < 3) {
if (!dragging[i]) {
if (_global.myRoot["chain" + i]._y < 0) {
velocity[i] = velocity[i] + gravity;
_global.myRoot["chain" + i]._y = _global.myRoot["chain" + i]._y + velocity[i];
}
} else {
velocity[i] = 0;
if (!added[i]) {
added[i] = true;
touched++;
}
if (touched == 3) {
_global.myRoot["chain" + i].anchor.gotoAndStop(2);
touched = 0;
}
}
i++;
}
if (pressed) {
pressed = false;
i = 0;
while (i < 3) {
if (_global.myRoot["chain" + i].anchor.arrowButton.hitTest(_xmouse, _ymouse, true)) {
_global.myRoot["chain" + i].anchor.arrowButton.play();
levelPassed = true;
}
i++;
}
}
} else {
passedOrPaused();
}
};
Instance of Symbol 181 MovieClip in Frame 10
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (_global.myRoot.chain0, false, 160, 0, 160, -900);
_global.myRoot.dragging[0] = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging[0] = false;
}
Instance of Symbol 181 MovieClip in Frame 10
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (_global.myRoot.chain1, false, 320, 0, 320, -900);
_global.myRoot.dragging[1] = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging[1] = false;
}
Instance of Symbol 181 MovieClip in Frame 10
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (_global.myRoot.chain2, false, 480, 0, 480, -900);
_global.myRoot.dragging[2] = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging[2] = false;
}
Frame 11
stop();
setup();
levelName = "raindance";
dragging = false;
feather._visible = false;
girl.girlHead.feather._visible = false;
girlIndian._visible = false;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (bird.hitTest(_xmouse, _ymouse, true)) {
if (bird._currentframe == 1) {
if (pressed) {
pressed = false;
bird.play();
featherAnim.play();
}
}
}
if (featherAnim._currentframe == featherAnim._totalframes) {
if (girl._currentframe == 1) {
feather._visible = true;
}
}
if (feather.hitTest(_xmouse, _ymouse, true)) {
if (pressed) {
dragging = true;
}
}
if (!dragging) {
if (feather.hitTest(girl)) {
feather._visible = false;
if (girl._currentframe == 1) {
girl.play();
girl.girlHead.feather._visible = true;
}
} else {
feather._x = 480;
feather._y = 368;
}
}
if (girl._currentframe == girl._totalframes) {
if (girl._visible == true) {
girl._visible = false;
girlIndian._visible = true;
}
}
if (girlIndian.hitTest(_xmouse, _ymouse, true)) {
if ((girlIndian._currentframe == 1) and (girlIndian._visible == true)) {
if (pressed) {
pressed = false;
girlIndian.play();
cloud.play();
}
}
}
if (cloud.hitTest(_xmouse, _ymouse, true)) {
if (((((((((((cloud._currentframe == 1) or (cloud._currentframe == 1)) or (cloud._currentframe == 10)) or (cloud._currentframe == 20)) or (cloud._currentframe == 30)) or (cloud._currentframe == 40)) or (cloud._currentframe == 50)) or (cloud._currentframe == 60)) or (cloud._currentframe == 70)) or (cloud._currentframe == 80)) or (cloud._currentframe == 90)) {
if (pressed) {
pressed = false;
cloud.cloudRain.play();
}
}
}
if (cloud.hitTest(flower)) {
if (flower._currentframe == 1) {
flower.play();
}
}
if (flower._currentframe == flower._totalframes) {
if (pressed) {
pressed = false;
if (flower.arrowButton.hitTest(_xmouse, _ymouse, true)) {
flower.arrowButton.play();
levelPassed = true;
}
}
}
} else {
passedOrPaused();
}
};
Instance of Symbol 190 MovieClip "cloud" in Frame 11
on (press) {
}
Instance of Symbol 216 MovieClip "bird" in Frame 11
on (press) {
}
Instance of Symbol 235 MovieClip "girlIndian" in Frame 11
on (press) {
}
Instance of Symbol 218 MovieClip "feather" in Frame 11
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
startDrag (this, false, 20, 100, 620, 380);
_global.myRoot.dragging = true;
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.dragging = false;
}
Frame 12
stop();
setup();
levelName = "anybody home?";
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
i = 0;
while (i < 4) {
if (bell.hitTest(_xmouse, _ymouse, true)) {
bell.play();
}
i++;
}
if (bell.hitTest(_xmouse, _ymouse, true)) {
arrowButton.play();
}
if (arrowButton.hitTest(_xmouse, _ymouse, true) and (!building.hitTest(_xmouse, _ymouse, true))) {
arrowButton.stop();
arrowButton.arrowButton.play();
levelPassed = true;
}
}
} else {
passedOrPaused();
}
};
Instance of Symbol 255 MovieClip "bell" in Frame 12
on (press) {
}
Frame 13
stop();
setup();
levelName = "too many ghosties";
pos = new Array();
pos[0] = {x:80, y:150};
pos[1] = {x:140, y:150};
pos[2] = {x:200, y:150};
pos[3] = {x:260, y:150};
pos[4] = {x:320, y:150};
pos[5] = {x:380, y:150};
pos[6] = {x:440, y:150};
pos[7] = {x:500, y:150};
pos[8] = {x:560, y:150};
pos[9] = {x:80, y:210};
pos[10] = {x:140, y:210};
pos[11] = {x:200, y:210};
pos[12] = {x:260, y:210};
pos[13] = {x:320, y:210};
pos[14] = {x:380, y:210};
pos[15] = {x:440, y:210};
pos[16] = {x:500, y:210};
pos[17] = {x:560, y:210};
pos[18] = {x:80, y:270};
pos[19] = {x:140, y:270};
pos[20] = {x:200, y:270};
pos[21] = {x:260, y:270};
pos[22] = {x:320, y:270};
pos[23] = {x:380, y:270};
pos[24] = {x:440, y:270};
pos[25] = {x:500, y:270};
pos[26] = {x:560, y:270};
pos[27] = {x:80, y:330};
pos[28] = {x:140, y:330};
pos[29] = {x:200, y:330};
pos[30] = {x:260, y:330};
pos[31] = {x:320, y:330};
pos[32] = {x:380, y:330};
pos[33] = {x:440, y:330};
pos[34] = {x:500, y:330};
pos[35] = {x:560, y:330};
i = 0;
while (i < 36) {
j = Math.floor(Math.random() * pos.length);
_global.myRoot["ghostie" + i]._x = pos[j].x;
_global.myRoot["ghostie" + i]._y = pos[j].y;
pos.splice(j, 1);
i++;
}
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
i = 0;
while (i < 36) {
if (_global.myRoot["ghostie" + i].hitTest(_xmouse, _ymouse, true)) {
_global.myRoot["ghostie" + i].ghostie.play();
}
if (_global.myRoot["ghostie" + i].ghostie.arrowButton.hitTest(_xmouse, _ymouse, true)) {
_global.myRoot["ghostie" + i].ghostie.arrowButton.play();
levelPassed = true;
}
i++;
}
}
} else {
passedOrPaused();
}
};
Frame 14
stop();
setup();
levelName = "stop moving!";
pos = new Array();
pos[0] = {x:100, y:310};
pos[1] = {x:160, y:310};
pos[2] = {x:100, y:370};
pos[3] = {x:160, y:370};
pos[4] = {x:260, y:190};
pos[5] = {x:320, y:190};
pos[6] = {x:380, y:190};
pos[7] = {x:260, y:250};
pos[8] = {x:320, y:250};
pos[9] = {x:380, y:250};
pos[10] = {x:260, y:310};
pos[11] = {x:320, y:310};
pos[12] = {x:380, y:310};
pos[13] = {x:260, y:370};
pos[14] = {x:320, y:370};
pos[15] = {x:380, y:370};
pos[16] = {x:480, y:250};
pos[17] = {x:540, y:250};
pos[18] = {x:480, y:310};
pos[19] = {x:540, y:310};
pos[20] = {x:480, y:370};
pos[21] = {x:540, y:370};
randomPos = random(pos.length);
arrowButton._x = pos[randomPos].x;
arrowButton._y = pos[randomPos].y;
onEnterFrame = function () {
game();
i = 0;
while (i < 2) {
_global.myRoot["cloud" + i]._x = _global.myRoot["cloud" + i]._x + 0.5;
if (_global.myRoot["cloud" + i]._x > (640 + (_global.myRoot["cloud" + i]._width / 2))) {
_global.myRoot["cloud" + i]._x = -(_global.myRoot["cloud" + i]._width / 2);
}
i++;
}
if ((!levelPassed) and (!gamePaused)) {
if (arrowButton._currentframe == arrowButton._totalframes) {
randomPos = random(pos.length);
arrowButton._x = pos[randomPos].x;
arrowButton._y = pos[randomPos].y;
arrowButton.play();
}
if (pressed) {
pressed = false;
if (arrowButton.hitTest(_xmouse, _ymouse, true) and (!building.hitTest(_xmouse, _ymouse, true))) {
arrowButton.stop();
arrowButton.arrowButton.play();
levelPassed = true;
}
}
} else {
passedOrPaused();
}
};
Frame 15
stop();
setup();
levelName = "last train";
acceleration = 0.005;
velocity = 0;
friction = 0.95;
onEnterFrame = function () {
game();
train._x = train._x + velocity;
i = 0;
while (i < 2) {
_global.myRoot["cloud" + i]._x = _global.myRoot["cloud" + i]._x + 0.5;
if (_global.myRoot["cloud" + i]._x > (640 + (_global.myRoot["cloud" + i]._width / 2))) {
_global.myRoot["cloud" + i]._x = -(_global.myRoot["cloud" + i]._width / 2);
}
i++;
}
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
if (train._x < 1000) {
if (train._currentframe == 1) {
train.play();
}
p = attachMovie("smoke", "smoke" + (i++), highestDepth--);
p._x = train._x + 732;
p._y = train._y - 52;
p._xscale = (p._yscale = (Math.random() * 100) + 20);
velocity = velocity + acceleration;
} else {
pressed = false;
}
if (counter == 1) {
if (train.carriageCarrier.arrowButton.hitTest(_xmouse, _ymouse, true)) {
if (train.carriageCarrier.arrowButton._currentframe == 1) {
train.carriageCarrier.arrowButton.play();
levelPassed = true;
}
}
}
} else {
velocity = velocity * friction;
}
} else {
passedOrPaused();
}
};
Frame 16
stop();
setup();
levelName = "highway race";
num = 1;
carsToPass = 15;
allDone = false;
roadSpeed = 16;
pos = new Array();
pos[0] = 240;
pos[1] = 160;
pos[2] = 240;
pos[3] = 320;
enemyPos = new Array();
enemyPos[0] = 160;
enemyPos[1] = 240;
enemyPos[2] = 320;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (roadlines._x > -660) {
roadlines._x = roadlines._x - roadSpeed;
} else {
roadlines._x = 0;
}
if (!allDone) {
if (num > 3) {
num = 0;
}
if (enemyCar._x > -40) {
enemyCar._x = enemyCar._x - 16;
} else {
if (carsToPass > 0) {
enemyCar.play();
}
if (carsToPass > 1) {
carsToPass--;
enemyCar._x = 680;
enemyCar._y = enemyPos[random(3)];
} else {
carsToPass = 0;
allDone = true;
}
}
if (pressed) {
pressed = false;
if (car.hitTest(_xmouse, _ymouse, true)) {
car._y = pos[num];
num++;
}
}
if (car.hitTest(enemyCar)) {
enemyCar._x = 640;
enemyCar._y = enemyPos[random(3)];
carsToPass = 10;
explodeX = car._x + 5;
explodeY = car._y;
explode();
car.play();
}
} else {
roadSpeed = roadSpeed * 0.95;
if (arrowButtonAnim._currentframe == 1) {
arrowButtonAnim.play();
}
if (pressed) {
pressed = false;
if (arrowButtonAnim.arrowButton.hitTest(_xmouse, _ymouse, true)) {
arrowButtonAnim.arrowButton.play();
levelPassed = true;
}
}
}
} else {
passedOrPaused();
}
};
Frame 17
stop();
setup();
levelName = "looney lift";
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (doorButton.hitTest(_xmouse, _ymouse, true)) {
doorButton.play();
door.play();
}
if (door.arrowButton.hitTest(_xmouse, _ymouse, true)) {
if (door._currentframe == 10) {
door.arrowButton.play();
levelPassed = true;
}
}
}
if ((!door.trail.hitTest(_xmouse, _ymouse, true)) or ASnative(800, 2) /* [Key] isDown */(2)) {
if ((door._currentframe > 1) and (door._currentframe < 11)) {
shaking = true;
shakeCount = 20;
door.gotoAndPlay(11);
}
}
} else {
passedOrPaused();
}
};
Frame 18
stop();
setup();
levelName = "bombs away";
speed = new Array();
speed[0] = {x:4, y:4};
speed[1] = {x:-4, y:4};
speed[2] = {x:4, y:-4};
speed[3] = {x:-4, y:-4};
speed[4] = {x:4, y:4};
speed[5] = {x:-4, y:4};
speed[6] = {x:4, y:-4};
speed[7] = {x:-4, y:-4};
speed[8] = {x:4, y:4};
speed[9] = {x:-4, y:4};
i = 0;
while (i < 10) {
_global.myRoot["ball" + i].ballNum = i + 1;
i++;
}
noneClicked = true;
allDone = false;
balls = 0;
gravity = 0.2;
velocity = 0;
onEnterFrame = function () {
game();
if (balls == 10) {
balls = 0;
allDone = true;
arrowButton._x = explodeX;
arrowButton._y = explodeY;
}
if (allDone) {
velocity = velocity + gravity;
if (arrowButton._y < 365) {
arrowButton._y = arrowButton._y + velocity;
} else {
arrowButton._y = 365;
}
}
if ((!levelPassed) and (!gamePaused)) {
i = 0;
while (i < 10) {
_global.myRoot["ball" + i]._x = _global.myRoot["ball" + i]._x + speed[i].x;
_global.myRoot["ball" + i]._y = _global.myRoot["ball" + i]._y + speed[i].y;
if (_global.myRoot["ball" + i]._x > 600) {
_global.myRoot["ball" + i]._x = 600;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y > 360) {
_global.myRoot["ball" + i]._y = 360;
speed[i].y = speed[i].y * -1;
}
if (_global.myRoot["ball" + i]._x < 40) {
_global.myRoot["ball" + i]._x = 40;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y < 120) {
_global.myRoot["ball" + i]._y = 120;
speed[i].y = speed[i].y * -1;
}
i++;
}
if (pressed) {
pressed = false;
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
arrowButton.play();
levelPassed = true;
}
i = 0;
while (i < 10) {
if (_global.myRoot["ball" + i].hitTest(_xmouse, _ymouse)) {
if (noneClicked and (i == 0)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 1) and (i == 1)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 2) and (i == 2)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 3) and (i == 3)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 4) and (i == 4)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 5) and (i == 5)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 6) and (i == 6)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 7) and (i == 7)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 8) and (i == 8)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 9) and (i == 9)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
}
i++;
}
}
} else {
passedOrPaused();
}
};
Frame 19
stop();
setup();
levelName = "happy birthday";
progress = 0;
itemXpos = new Array();
itemXpos[0] = 120;
itemXpos[1] = 250;
itemXpos[2] = 380;
itemXpos[3] = 510;
i = 0;
while (i < 4) {
j = Math.floor(Math.random() * itemXpos.length);
_global.myRoot["item" + i]._x = itemXpos[j];
_global.myRoot[("item" + i) + "reflection"]._x = itemXpos[j];
itemXpos.splice(j, 1);
i++;
}
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (notes.noteArrowButton.arrowButton.hitTest(_xmouse, _ymouse, true)) {
notes.noteArrowButton.arrowButton.play();
levelPassed = true;
}
i = 0;
while (i < 5) {
if (_global.myRoot["item" + i].hitTest(_xmouse, _ymouse, true)) {
if (_global.myRoot["item" + i]._currentframe == 1) {
_global.myRoot["item" + i].play();
_global.myRoot[("item" + i) + "reflection"].play();
if (progress == 0) {
if (i == 0) {
progress = 1;
notes.noteC1.gotoAndStop("on");
}
} else if (progress == 1) {
if (i == 0) {
progress = 2;
notes.noteC2.gotoAndStop("on");
} else {
notes.noteC1.gotoAndStop("off");
notes.noteC2.gotoAndStop("off");
notes.noteC3.gotoAndStop("off");
notes.noteD.gotoAndStop("off");
notes.noteF.gotoAndStop("off");
progress = 0;
}
} else if (progress == 2) {
if (i == 1) {
progress = 3;
notes.noteD.gotoAndStop("on");
} else {
notes.noteC1.gotoAndStop("off");
notes.noteC2.gotoAndStop("off");
notes.noteC3.gotoAndStop("off");
notes.noteD.gotoAndStop("off");
notes.noteF.gotoAndStop("off");
progress = 0;
}
} else if (progress == 3) {
if (i == 0) {
progress = 4;
notes.noteC3.gotoAndStop("on");
} else {
notes.noteC1.gotoAndStop("off");
notes.noteC2.gotoAndStop("off");
notes.noteC3.gotoAndStop("off");
notes.noteD.gotoAndStop("off");
notes.noteF.gotoAndStop("off");
progress = 0;
}
} else if (progress == 4) {
if (i == 2) {
progress = 5;
notes.noteF.gotoAndStop("on");
} else {
notes.noteC1.gotoAndStop("off");
notes.noteC2.gotoAndStop("off");
notes.noteC3.gotoAndStop("off");
notes.noteD.gotoAndStop("off");
notes.noteF.gotoAndStop("off");
progress = 0;
}
} else if (progress == 5) {
if (i == 3) {
progress = 6;
notes.noteE.gotoAndStop("on");
notes.noteArrowButton.gotoAndStop("on");
} else {
notes.noteC1.gotoAndStop("off");
notes.noteC2.gotoAndStop("off");
notes.noteC3.gotoAndStop("off");
notes.noteD.gotoAndStop("off");
notes.noteF.gotoAndStop("off");
progress = 0;
}
}
}
}
i++;
}
}
} else {
passedOrPaused();
}
};
Instance of Symbol 358 MovieClip "item2" in Frame 19
on (press) {
}
Instance of Symbol 377 MovieClip "item1" in Frame 19
on (press) {
}
Instance of Symbol 415 MovieClip "item3" in Frame 19
on (press) {
}
Instance of Symbol 396 MovieClip "item0" in Frame 19
on (press) {
}
Frame 20
stop();
setup();
levelName = "letter tiles";
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
i = 0;
while (i < 4) {
if (_global.myRoot["tile" + i].hitTest(_xmouse, _ymouse, true)) {
_global.myRoot["tile" + i].play();
_global.myRoot["tile" + i].tile.play();
_global.myRoot[("tile" + i) + "reflection"].play();
}
i++;
}
}
if ((((tile0._currentframe == 3) and (tile1._currentframe == 2)) and (tile2._currentframe == 1)) and (tile3._currentframe == 4)) {
tile0.tile.gotoAndStop(3);
levelPassed = true;
}
} else {
passedOrPaused();
}
};
Frame 21
stop();
setup();
levelName = "scarborough fair";
happy = false;
jar0.gotoAndStop(4);
jar1.gotoAndStop(3);
jar2.gotoAndStop(2);
jar3.gotoAndStop(1);
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and (counter == 1)) {
if (!happy) {
i = 0;
while (i < 4) {
if (_global.myRoot["jar" + i].hitTest(_xmouse, _ymouse, true)) {
_global.myRoot["jar" + i].play();
_global.myRoot["jar" + i].jar.play();
lastClicked = i;
}
i++;
}
}
if (_global.myRoot["jar" + lastClicked].jar.arrowButton.hitTest(_xmouse, _ymouse, true)) {
_global.myRoot["jar" + lastClicked].jar.arrowButton.play();
levelPassed = true;
}
}
if (!happy) {
if ((((jar0._currentframe == 1) and (jar1._currentframe == 2)) and (jar2._currentframe == 3)) and (jar3._currentframe == 4)) {
happy = true;
_global.myRoot["jar" + lastClicked].jar.gotoAndPlay(16);
}
}
} else {
passedOrPaused();
}
};
Frame 22
stop();
setup();
levelName = "almost twins";
diffsLeft = 5;
i = 0;
while (i < 5) {
_global.myRoot["hotspot" + i]._visible = false;
i++;
}
gravity = 0.5;
velocity = 0;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
diffsLeftText = diffsLeft + "x";
if (pressed) {
pressed = false;
i = 0;
while (i < 5) {
if (_global.myRoot["hotspot" + i].hitTest(_xmouse, _ymouse, true)) {
if (_global.myRoot[("diff" + i) + "a"]._currentframe == 1) {
_global.myRoot[("diff" + i) + "a"].play();
_global.myRoot[("diff" + i) + "b"].play();
diffsLeft--;
}
}
i++;
}
if (diffsLeft == 0) {
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
arrowButton.arrowButton.play();
levelPassed = true;
}
}
}
if (diffsLeft == 0) {
if (arrowButton._currentframe == 1) {
arrowButton.play();
}
}
} else {
passedOrPaused();
}
};
Frame 23
stop();
setup();
levelName = "up & down";
itemXpos = new Array();
itemXpos[0] = 120;
itemXpos[1] = 250;
itemXpos[2] = 380;
itemXpos[3] = 510;
i = 0;
while (i < 4) {
j = Math.floor(Math.random() * itemXpos.length);
_global.myRoot["item" + i]._x = itemXpos[j];
_global.myRoot[("item" + i) + "reflection"]._x = itemXpos[j];
itemXpos.splice(j, 1);
i++;
}
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
i = 0;
while (i < 4) {
if (_global.myRoot["item" + i].arrowButton.hitTest(_xmouse, _ymouse, true)) {
if (pressed) {
pressed = false;
_global.myRoot["item" + i].arrowButton.play();
levelPassed = true;
}
}
if (_global.myRoot["item" + i].hitTest(_xmouse, _ymouse, true)) {
if (pressed) {
pressed = false;
if (i == 0) {
if ((((item2._currentframe == 10) and (item3._currentframe == 10)) and (item0._currentframe == 1)) and (item1._currentframe == 1)) {
item0.play();
item0reflection.play();
item1.gotoAndPlay(20);
item1reflection.gotoAndPlay(20);
} else {
item0.play();
item0reflection.play();
item1.play();
item1reflection.play();
}
}
if (i == 1) {
if ((((item1._currentframe == 10) and (item3._currentframe == 10)) and (item0._currentframe == 1)) and (item2._currentframe == 1)) {
item0.play();
item0reflection.play();
item2.gotoAndPlay(20);
item2reflection.gotoAndPlay(20);
} else {
item0.play();
item0reflection.play();
item2.play();
item2reflection.play();
}
}
if (i == 2) {
if ((((item1._currentframe == 10) and (item2._currentframe == 10)) and (item0._currentframe == 1)) and (item3._currentframe == 1)) {
item0.play();
item0reflection.play();
item3.gotoAndPlay(20);
item3reflection.gotoAndPlay(20);
} else {
item0.play();
item0reflection.play();
item3.play();
item3reflection.play();
}
}
if (i == 3) {
if ((((item0._currentframe == 10) and (item1._currentframe == 1)) and (item2._currentframe == 1)) and (item3._currentframe == 1)) {
item1.play();
item1reflection.play();
item2.play();
item2reflection.play();
item3.gotoAndPlay(20);
item3reflection.gotoAndPlay(20);
} else {
item1.play();
item1reflection.play();
item2.play();
item2reflection.play();
item3.play();
item3reflection.play();
}
}
}
}
i++;
}
} else {
passedOrPaused();
}
};
Instance of Symbol 519 MovieClip "item0" in Frame 23
on (press) {
}
Instance of Symbol 519 MovieClip "item1" in Frame 23
on (press) {
}
Instance of Symbol 519 MovieClip "item2" in Frame 23
on (press) {
}
Instance of Symbol 519 MovieClip "item3" in Frame 23
on (press) {
}
Frame 24
stop();
setup();
levelName = "bowling ball bash";
gravity = 0.4;
restitution = 0.5;
friction = 0.9;
vel = {x:0, y:0};
pos = {x:320, y:320};
old = {x:ball._x, y:ball._y};
radius = ball._width / 2;
dragging = false;
broken = 0;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
if (counter == 1) {
if (ball.hitTest(_xmouse, _ymouse, true)) {
dragging = true;
}
}
} else {
dragging = false;
}
if ((((_xmouse < 20) or (_xmouse > 620)) or (_ymouse < 100)) or (_ymouse > 380)) {
dragging = false;
}
if (!dragging) {
vel.y = vel.y + gravity;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
if ((pos.y + radius) > 380) {
pos.y = 380 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 100) {
pos.y = 100 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 620) {
pos.x = 620 - radius;
vel.x = vel.x * (-restitution);
}
if (pos.x < (20 + radius)) {
pos.x = 20 + radius;
vel.x = vel.x * (-restitution);
}
ball._x = pos.x;
ball._y = pos.y;
i = 0;
while (i < 20) {
if (ball.hitTest(_global.myRoot["bottle" + i])) {
if (_global.myRoot["bottle" + i]._currentframe == 1) {
broken++;
if (broken == 20) {
lastBottle = _global.myRoot["bottle" + i];
}
_global.myRoot["bottle" + i].play();
if (ball._currentframe == 1) {
ball.play();
}
explodeX = _global.myRoot["bottle" + i]._x;
explodeY = _global.myRoot["bottle" + i]._y - 7;
explode();
}
}
i++;
}
} else {
ballEndX = _xmouse;
ballEndY = _ymouse;
ball._x = ball._x + ((ballEndX - ball._x) / 3);
ball._y = ball._y + ((ballEndY - ball._y) / 3);
old.x = pos.x;
old.y = pos.y;
pos.x = ball._x;
pos.y = ball._y;
vel.x = (pos.x - old.x) / 2;
vel.y = (pos.y - old.y) / 2;
}
if (broken == 20) {
arrowButton._x = lastBottle._x;
arrowButton._y = lastBottle._y - 12;
if (pressed and (counter == 1)) {
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
arrowButton.play();
levelPassed = true;
}
}
}
} else {
passedOrPaused();
vel.y = vel.y + gravity;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
if ((pos.y + radius) > 380) {
pos.y = 380 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 100) {
pos.y = 100 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 620) {
pos.x = 620 - radius;
vel.x = vel.x * (-restitution);
}
if (pos.x < (20 + radius)) {
pos.x = 20 + radius;
vel.x = vel.x * (-restitution);
}
ball._x = pos.x;
ball._y = pos.y;
}
};
Frame 25
stop();
setup();
levelName = "mega squeal";
jumping = new Array();
jumping[0] = false;
jumping[1] = false;
jumping[2] = false;
itemXpos = new Array();
itemXpos[0] = 230;
itemXpos[1] = 380;
itemXpos[2] = 530;
i = 0;
while (i < 3) {
j = Math.floor(Math.random() * itemXpos.length);
_global.myRoot["item" + i]._x = itemXpos[j];
_global.myRoot[("item" + i) + "reflection"]._x = itemXpos[j];
itemXpos.splice(j, 1);
i++;
}
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
arrowButton.arrowButton.play();
levelPassed = true;
}
i = 0;
while (i < 3) {
if (_global.myRoot["item" + i].hitTest(_xmouse, _ymouse, true)) {
if (_global.myRoot["item" + i]._currentframe == 1) {
_global.myRoot["item" + i].play();
_global.myRoot[("item" + i) + "reflection"].play();
}
}
i++;
}
}
i = 0;
while (i < 3) {
if (_global.myRoot["item" + i]._currentframe > 7) {
jumping[i] = true;
} else {
jumping[i] = false;
}
i++;
}
if ((jumping[0] or jumping[1]) or jumping[2]) {
meter.gotoAndStop(2);
}
if (jumping[0] and jumping[1]) {
meter.gotoAndStop(3);
} else if (jumping[1] and jumping[2]) {
meter.gotoAndStop(3);
} else if (jumping[0] and jumping[2]) {
meter.gotoAndStop(3);
}
if ((jumping[0] and jumping[1]) and jumping[2]) {
meter.gotoAndStop(4);
if (arrowButton._currentframe == 1) {
arrowButton.play();
}
}
if (((!jumping[0]) and (!jumping[1])) and (!jumping[2])) {
meter.gotoAndStop(1);
}
} else {
passedOrPaused();
}
};
Instance of Symbol 531 MovieClip "item0" in Frame 25
on (press) {
}
Instance of Symbol 107 MovieClip "item1" in Frame 25
on (press) {
}
Instance of Symbol 534 MovieClip "item2" in Frame 25
on (press) {
}
Frame 26
stop();
setup();
levelName = "arrow copter";
power = 1.25;
dy = 0;
dx = 0;
friction = 0.8;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
if (control) {
if (arrowCopter._currentframe < 15) {
arrowCopter.stop();
dx = dx + power;
}
if ((arrowCopter._currentframe >= 15) and (arrowCopter._currentframe < 30)) {
arrowCopter.stop();
dy = dy + power;
}
if ((arrowCopter._currentframe >= 30) and (arrowCopter._currentframe < 45)) {
arrowCopter.stop();
dx = dx - power;
}
if ((arrowCopter._currentframe >= 45) and (arrowCopter._currentframe < 60)) {
arrowCopter.stop();
dy = dy - power;
}
} else if (timer > 0) {
timer--;
} else {
timer = 0;
control = true;
}
} else {
arrowCopter.play();
}
dx = dx * friction;
dy = dy * friction;
arrowCopter._y = arrowCopter._y + dy;
arrowCopter._x = arrowCopter._x + dx;
if (arrowCopter._y < 100) {
arrowCopter._y = 380;
}
if (arrowCopter._y > 380) {
arrowCopter._y = 100;
}
if (arrowCopter._x < 20) {
arrowCopter._x = 620;
}
if (arrowCopter._x > 620) {
arrowCopter._x = 20;
}
if (arrowButton.hitTest(arrowCopter._x, arrowCopter._y, true)) {
if (!touching) {
if (arrowCopter._currentframe < 15) {
arrowButton.gotoAndStop(2);
touching = true;
}
if ((arrowCopter._currentframe >= 15) and (arrowCopter._currentframe < 30)) {
arrowButton.gotoAndStop(3);
touching = true;
}
if ((arrowCopter._currentframe >= 30) and (arrowCopter._currentframe < 45)) {
arrowButton.gotoAndStop(4);
touching = true;
}
if ((arrowCopter._currentframe >= 45) and (arrowCopter._currentframe < 60)) {
arrowButton.gotoAndStop(5);
touching = true;
}
}
} else {
touching = false;
}
if (pressed and (counter == 1)) {
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
if (arrowButton._currentframe == 2) {
arrowCopter.arrowCopterBody.play();
levelPassed = true;
}
}
}
while (hitmap.hitTest(arrowCopter._x, arrowCopter._y + 15, true)) {
hit = true;
if (hit and control) {
crashX = arrowCopter._x;
crashY = arrowCopter._y + 10;
hitmap.play();
}
arrowCopter._y--;
control = false;
timer = 5;
dy = dy * -1;
}
while (hitmap.hitTest(arrowCopter._x, arrowCopter._y - 20, true)) {
hit = true;
if (hit and control) {
crashX = arrowCopter._x;
crashY = arrowCopter._y - 10;
hitmap.play();
}
arrowCopter._y++;
control = false;
timer = 5;
dy = dy * -1;
}
while (hitmap.hitTest(arrowCopter._x - 15, arrowCopter._y, true)) {
hit = true;
if (hit and control) {
crashX = arrowCopter._x - 10;
crashY = arrowCopter._y;
hitmap.play();
}
arrowCopter._x++;
control = false;
timer = 5;
dx = dx * -1;
}
while (hitmap.hitTest(arrowCopter._x + 15, arrowCopter._y, true)) {
hit = true;
if (hit and control) {
crashX = arrowCopter._x + 10;
crashY = arrowCopter._y;
hitmap.play();
}
arrowCopter._x--;
control = false;
timer = 5;
dx = dx * -1;
}
hit = false;
} else {
passedOrPaused();
}
};
Frame 27
stop();
setup();
levelName = "star shine";
starsOn = 0;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed) {
pressed = false;
i = 0;
while (i < 11) {
if (_global.myRoot["star" + i].hitTest(_xmouse, _ymouse, true)) {
if (_global.myRoot["star" + i]._currentframe == 1) {
_global.myRoot["star" + i].play();
starsOn++;
}
}
i++;
}
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
if (arrowButton._currentframe == arrowButton._totalframes) {
arrowButton.arrowButton.play();
levelPassed = true;
}
}
}
if (starsOn == 11) {
if (arrowButton._currentframe == 1) {
arrowButton.play();
}
i = 0;
while (i < 11) {
_global.myRoot["star" + i].gotoAndStop("on");
i++;
}
}
} else {
passedOrPaused();
}
};
Frame 28
stop();
setup();
levelName = "knight moves";
tilesOff = 0;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (tilesOff == 16) {
if (arrowButton._currentframe == 1) {
arrowButton.play();
}
}
i = 0;
while (i < 16) {
if (_global.myRoot.chessboard["tile" + i].hitTest(_xmouse, _ymouse, true)) {
chessboard.outline._x = _global.myRoot.chessboard["tile" + i]._x;
chessboard.outline._y = _global.myRoot.chessboard["tile" + i]._y;
}
i++;
}
if (pressed) {
pressed = false;
if (arrowButton.hitTest(_xmouse, _ymouse, true)) {
if (arrowButton._currentframe == arrowButton._totalframes) {
arrowButton.arrowButton.play();
levelPassed = true;
}
}
if (chessboard.knight.hitTest(chessboard.tile0)) {
if (chessboard.tile6.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile6._x;
chessboard.knight._y = chessboard.tile6._y;
if (chessboard.tile6._alpha == 100) {
chessboard.tile6._alpha = 10;
tilesOff++;
} else {
chessboard.tile6._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile0)) {
if (chessboard.tile9.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile9._x;
chessboard.knight._y = chessboard.tile9._y;
if (chessboard.tile9._alpha == 100) {
chessboard.tile9._alpha = 10;
tilesOff++;
} else {
chessboard.tile9._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile1)) {
if (chessboard.tile7.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile7._x;
chessboard.knight._y = chessboard.tile7._y;
if (chessboard.tile7._alpha == 100) {
chessboard.tile7._alpha = 10;
tilesOff++;
} else {
chessboard.tile7._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile1)) {
if (chessboard.tile8.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile8._x;
chessboard.knight._y = chessboard.tile8._y;
if (chessboard.tile8._alpha == 100) {
chessboard.tile8._alpha = 10;
tilesOff++;
} else {
chessboard.tile8._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile1)) {
if (chessboard.tile10.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile10._x;
chessboard.knight._y = chessboard.tile10._y;
if (chessboard.tile10._alpha == 100) {
chessboard.tile10._alpha = 10;
tilesOff++;
} else {
chessboard.tile10._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile2)) {
if (chessboard.tile4.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile4._x;
chessboard.knight._y = chessboard.tile4._y;
if (chessboard.tile4._alpha == 100) {
chessboard.tile4._alpha = 10;
tilesOff++;
} else {
chessboard.tile4._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile2)) {
if (chessboard.tile9.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile9._x;
chessboard.knight._y = chessboard.tile9._y;
if (chessboard.tile9._alpha == 100) {
chessboard.tile9._alpha = 10;
tilesOff++;
} else {
chessboard.tile9._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile2)) {
if (chessboard.tile11.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile11._x;
chessboard.knight._y = chessboard.tile11._y;
if (chessboard.tile11._alpha == 100) {
chessboard.tile11._alpha = 10;
tilesOff++;
} else {
chessboard.tile11._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile3)) {
if (chessboard.tile5.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile5._x;
chessboard.knight._y = chessboard.tile5._y;
if (chessboard.tile5._alpha == 100) {
chessboard.tile5._alpha = 10;
tilesOff++;
} else {
chessboard.tile5._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile3)) {
if (chessboard.tile10.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile10._x;
chessboard.knight._y = chessboard.tile10._y;
if (chessboard.tile10._alpha == 100) {
chessboard.tile10._alpha = 10;
tilesOff++;
} else {
chessboard.tile10._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile4)) {
if (chessboard.tile2.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile2._x;
chessboard.knight._y = chessboard.tile2._y;
if (chessboard.tile2._alpha == 100) {
chessboard.tile2._alpha = 10;
tilesOff++;
} else {
chessboard.tile2._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile4)) {
if (chessboard.tile10.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile10._x;
chessboard.knight._y = chessboard.tile10._y;
if (chessboard.tile10._alpha == 100) {
chessboard.tile10._alpha = 10;
tilesOff++;
} else {
chessboard.tile10._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile4)) {
if (chessboard.tile13.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile13._x;
chessboard.knight._y = chessboard.tile13._y;
if (chessboard.tile13._alpha == 100) {
chessboard.tile13._alpha = 10;
tilesOff++;
} else {
chessboard.tile13._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile5)) {
if (chessboard.tile3.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile3._x;
chessboard.knight._y = chessboard.tile3._y;
if (chessboard.tile3._alpha == 100) {
chessboard.tile3._alpha = 10;
tilesOff++;
} else {
chessboard.tile3._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile5)) {
if (chessboard.tile11.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile11._x;
chessboard.knight._y = chessboard.tile11._y;
if (chessboard.tile11._alpha == 100) {
chessboard.tile11._alpha = 10;
tilesOff++;
} else {
chessboard.tile11._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile5)) {
if (chessboard.tile12.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile12._x;
chessboard.knight._y = chessboard.tile12._y;
if (chessboard.tile12._alpha == 100) {
chessboard.tile12._alpha = 10;
tilesOff++;
} else {
chessboard.tile12._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile5)) {
if (chessboard.tile14.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile14._x;
chessboard.knight._y = chessboard.tile14._y;
if (chessboard.tile14._alpha == 100) {
chessboard.tile14._alpha = 10;
tilesOff++;
} else {
chessboard.tile14._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile6)) {
if (chessboard.tile0.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile0._x;
chessboard.knight._y = chessboard.tile0._y;
if (chessboard.tile0._alpha == 100) {
chessboard.tile0._alpha = 10;
tilesOff++;
} else {
chessboard.tile0._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile6)) {
if (chessboard.tile8.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile8._x;
chessboard.knight._y = chessboard.tile8._y;
if (chessboard.tile8._alpha == 100) {
chessboard.tile8._alpha = 10;
tilesOff++;
} else {
chessboard.tile8._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile6)) {
if (chessboard.tile13.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile13._x;
chessboard.knight._y = chessboard.tile13._y;
if (chessboard.tile13._alpha == 100) {
chessboard.tile13._alpha = 10;
tilesOff++;
} else {
chessboard.tile13._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile6)) {
if (chessboard.tile15.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile15._x;
chessboard.knight._y = chessboard.tile15._y;
if (chessboard.tile15._alpha == 100) {
chessboard.tile15._alpha = 10;
tilesOff++;
} else {
chessboard.tile15._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile7)) {
if (chessboard.tile1.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile1._x;
chessboard.knight._y = chessboard.tile1._y;
if (chessboard.tile1._alpha == 100) {
chessboard.tile1._alpha = 10;
tilesOff++;
} else {
chessboard.tile1._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile7)) {
if (chessboard.tile9.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile9._x;
chessboard.knight._y = chessboard.tile9._y;
if (chessboard.tile9._alpha == 100) {
chessboard.tile9._alpha = 10;
tilesOff++;
} else {
chessboard.tile9._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile7)) {
if (chessboard.tile14.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile14._x;
chessboard.knight._y = chessboard.tile14._y;
if (chessboard.tile14._alpha == 100) {
chessboard.tile14._alpha = 10;
tilesOff++;
} else {
chessboard.tile14._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile8)) {
if (chessboard.tile1.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile1._x;
chessboard.knight._y = chessboard.tile1._y;
if (chessboard.tile1._alpha == 100) {
chessboard.tile1._alpha = 10;
tilesOff++;
} else {
chessboard.tile1._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile8)) {
if (chessboard.tile6.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile6._x;
chessboard.knight._y = chessboard.tile6._y;
if (chessboard.tile6._alpha == 100) {
chessboard.tile6._alpha = 10;
tilesOff++;
} else {
chessboard.tile6._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile8)) {
if (chessboard.tile14.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile14._x;
chessboard.knight._y = chessboard.tile14._y;
if (chessboard.tile14._alpha == 100) {
chessboard.tile14._alpha = 10;
tilesOff++;
} else {
chessboard.tile14._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile9)) {
if (chessboard.tile0.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile0._x;
chessboard.knight._y = chessboard.tile0._y;
if (chessboard.tile0._alpha == 100) {
chessboard.tile0._alpha = 10;
tilesOff++;
} else {
chessboard.tile0._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile9)) {
if (chessboard.tile2.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile2._x;
chessboard.knight._y = chessboard.tile2._y;
if (chessboard.tile2._alpha == 100) {
chessboard.tile2._alpha = 10;
tilesOff++;
} else {
chessboard.tile2._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile9)) {
if (chessboard.tile7.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile7._x;
chessboard.knight._y = chessboard.tile7._y;
if (chessboard.tile7._alpha == 100) {
chessboard.tile7._alpha = 10;
tilesOff++;
} else {
chessboard.tile7._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile9)) {
if (chessboard.tile15.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile15._x;
chessboard.knight._y = chessboard.tile15._y;
if (chessboard.tile15._alpha == 100) {
chessboard.tile15._alpha = 10;
tilesOff++;
} else {
chessboard.tile15._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile10)) {
if (chessboard.tile1.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile1._x;
chessboard.knight._y = chessboard.tile1._y;
if (chessboard.tile1._alpha == 100) {
chessboard.tile1._alpha = 10;
tilesOff++;
} else {
chessboard.tile1._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile10)) {
if (chessboard.tile3.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile3._x;
chessboard.knight._y = chessboard.tile3._y;
if (chessboard.tile3._alpha == 100) {
chessboard.tile3._alpha = 10;
tilesOff++;
} else {
chessboard.tile3._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile10)) {
if (chessboard.tile4.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile4._x;
chessboard.knight._y = chessboard.tile4._y;
if (chessboard.tile4._alpha == 100) {
chessboard.tile4._alpha = 10;
tilesOff++;
} else {
chessboard.tile4._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile10)) {
if (chessboard.tile12.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile12._x;
chessboard.knight._y = chessboard.tile12._y;
if (chessboard.tile12._alpha == 100) {
chessboard.tile12._alpha = 10;
tilesOff++;
} else {
chessboard.tile12._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile11)) {
if (chessboard.tile2.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile2._x;
chessboard.knight._y = chessboard.tile2._y;
if (chessboard.tile2._alpha == 100) {
chessboard.tile2._alpha = 10;
tilesOff++;
} else {
chessboard.tile2._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile11)) {
if (chessboard.tile5.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile5._x;
chessboard.knight._y = chessboard.tile5._y;
if (chessboard.tile5._alpha == 100) {
chessboard.tile5._alpha = 10;
tilesOff++;
} else {
chessboard.tile5._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile11)) {
if (chessboard.tile13.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile13._x;
chessboard.knight._y = chessboard.tile13._y;
if (chessboard.tile13._alpha == 100) {
chessboard.tile13._alpha = 10;
tilesOff++;
} else {
chessboard.tile13._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile12)) {
if (chessboard.tile5.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile5._x;
chessboard.knight._y = chessboard.tile5._y;
if (chessboard.tile5._alpha == 100) {
chessboard.tile5._alpha = 10;
tilesOff++;
} else {
chessboard.tile5._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile12)) {
if (chessboard.tile10.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile10._x;
chessboard.knight._y = chessboard.tile10._y;
if (chessboard.tile10._alpha == 100) {
chessboard.tile10._alpha = 10;
tilesOff++;
} else {
chessboard.tile10._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile13)) {
if (chessboard.tile4.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile4._x;
chessboard.knight._y = chessboard.tile4._y;
if (chessboard.tile4._alpha == 100) {
chessboard.tile4._alpha = 10;
tilesOff++;
} else {
chessboard.tile4._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile13)) {
if (chessboard.tile6.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile6._x;
chessboard.knight._y = chessboard.tile6._y;
if (chessboard.tile6._alpha == 100) {
chessboard.tile6._alpha = 10;
tilesOff++;
} else {
chessboard.tile6._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile13)) {
if (chessboard.tile11.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile11._x;
chessboard.knight._y = chessboard.tile11._y;
if (chessboard.tile11._alpha == 100) {
chessboard.tile11._alpha = 10;
tilesOff++;
} else {
chessboard.tile11._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile14)) {
if (chessboard.tile5.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile5._x;
chessboard.knight._y = chessboard.tile5._y;
if (chessboard.tile5._alpha == 100) {
chessboard.tile5._alpha = 10;
tilesOff++;
} else {
chessboard.tile5._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile14)) {
if (chessboard.tile7.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile7._x;
chessboard.knight._y = chessboard.tile7._y;
if (chessboard.tile7._alpha == 100) {
chessboard.tile7._alpha = 10;
tilesOff++;
} else {
chessboard.tile7._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile14)) {
if (chessboard.tile8.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile8._x;
chessboard.knight._y = chessboard.tile8._y;
if (chessboard.tile8._alpha == 100) {
chessboard.tile8._alpha = 10;
tilesOff++;
} else {
chessboard.tile8._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile15)) {
if (chessboard.tile6.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile6._x;
chessboard.knight._y = chessboard.tile6._y;
if (chessboard.tile6._alpha == 100) {
chessboard.tile6._alpha = 10;
tilesOff++;
} else {
chessboard.tile6._alpha = 100;
tilesOff--;
}
}
}
if (chessboard.knight.hitTest(chessboard.tile15)) {
if (chessboard.tile9.hitTest(_xmouse, _ymouse, true)) {
chessboard.knight._x = chessboard.tile9._x;
chessboard.knight._y = chessboard.tile9._y;
if (chessboard.tile9._alpha == 100) {
chessboard.tile9._alpha = 10;
tilesOff++;
} else {
chessboard.tile9._alpha = 100;
tilesOff--;
}
}
}
}
} else {
passedOrPaused();
}
};
Frame 29
stop();
setup();
levelName = "curtain call";
gravity = 7;
velocity = 0;
hookSpeed = 6;
draggingCurtain = false;
draggingHook = false;
caught = false;
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (!caught) {
if (!draggingCurtain) {
if (curtain._y > 100) {
velocity = velocity + gravity;
curtain._y = curtain._y - velocity;
if (curtain._currentframe == 1) {
_global.myRoot.curtain.play();
}
} else {
curtain._y = 100;
}
} else {
velocity = 0;
}
if (hook._x > 30) {
if (!draggingHook) {
hook._x = hook._x - hookSpeed;
}
} else {
hook._x = 30;
}
} else if (pressed) {
pressed = false;
if (curtain.arrowButton.hitTest(_xmouse, _ymouse, true)) {
curtain.arrowButton.play();
levelPassed = true;
}
}
if (curtain.curtainLoop.hitTest(hook)) {
caught = true;
hook._x = 320;
}
} else {
passedOrPaused();
}
};
Instance of Symbol 577 MovieClip "hook" in Frame 29
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
if (!_global.myRoot.caught) {
startDrag (this, false, 30, 380, 610, 380);
_global.myRoot.draggingHook = true;
}
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.draggingHook = false;
}
Frame 30
stopAllSounds();
play();
Frame 31
stop();
levelName = "awesome!";
clicksText = totalClicks + " clicks!";
if (totalClicks > 600) {
ranks.gotoAndStop(4);
}
if ((totalClicks > 400) and (totalClicks <= 600)) {
ranks.gotoAndStop(1);
}
if ((totalClicks > 200) and (totalClicks <= 400)) {
ranks.gotoAndStop(2);
}
if (totalClicks <= 200) {
ranks.gotoAndStop(3);
}
menu = false;
submit = false;
buttonMenu.onPress = function () {
menu = true;
submit = false;
fg.play();
};
buttonSubmit.onPress = function () {
menu = false;
submit = true;
fg.play();
};
onMouseDown = function () {
pressed = true;
};
onMouseUp = function () {
pressed = false;
};
fg.speaker.onRelease = function () {
if ((!levelPassed) and (!gamePaused)) {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
fg.speaker.gotoAndStop(2);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
fg.speaker.gotoAndStop(1);
}
}
};
fg.q.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
fg.pauseGame.gotoAndStop(2);
onEnterFrame = function () {
fg.clicksText = "clicks: " + totalClicks;
fg.levelText = ("* " + levelName) + " *";
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
if (menu) {
if (fg._currentframe == fg._totalframes) {
gotoAndStop ("menu");
}
}
if (submit) {
if (fg._currentframe == fg._totalframes) {
fg.removeMovieClip();
gotoAndStop ("submit");
}
}
};
Symbol 3 MovieClip [explosion] Frame 20
stop();
this.removeMovieClip();
Symbol 15 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip in Symbol 15 MovieClip Frame 1
on (press) {
}
Symbol 15 MovieClip Frame 2
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 37 Button
on (press) {
_global.myRoot.fg.pauseGame.play();
_global.myRoot.fg.pausedMenu.play();
}
Symbol 39 Button
on (press) {
_global.myRoot.quit = true;
}
Symbol 41 MovieClip Frame 1
stop();
_global.myRoot.gamePaused = false;
Symbol 41 MovieClip Frame 2
play();
Symbol 41 MovieClip Frame 10
stop();
Symbol 41 MovieClip Frame 11
play();
Symbol 42 MovieClip [fg] Frame 20
stop();
Symbol 45 MovieClip [smoke] Frame 100
stop();
this.removeMovieClip();
Symbol 57 MovieClip [exhaust] Frame 30
stop();
this.removeMovieClip();
Symbol 76 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 79 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 79 MovieClip Frame 218
_root.nextFrame();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
play();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
play();
Symbol 122 MovieClip Frame 5
stop();
Symbol 123 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip in Symbol 123 MovieClip Frame 1
on (press) {
}
Symbol 123 MovieClip Frame 2
play();
Symbol 123 MovieClip Frame 5
stop();
Symbol 130 MovieClip Frame 1
stop();
Instance of Symbol 129 MovieClip in Symbol 130 MovieClip Frame 1
on (press) {
}
Symbol 130 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
play();
Symbol 147 MovieClip Frame 20
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
play();
Symbol 160 MovieClip Frame 20
stop();
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 166 MovieClip in Symbol 168 MovieClip Frame 1
on (press) {
}
Symbol 168 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
play();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
play();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
play();
Symbol 190 MovieClip Frame 10
stop();
Symbol 190 MovieClip Frame 11
play();
Symbol 190 MovieClip Frame 20
stop();
Symbol 190 MovieClip Frame 21
play();
Symbol 190 MovieClip Frame 30
stop();
Symbol 190 MovieClip Frame 31
play();
Symbol 190 MovieClip Frame 40
stop();
Symbol 190 MovieClip Frame 41
play();
Symbol 190 MovieClip Frame 50
stop();
Instance of Symbol 189 MovieClip "cloudRain" in Symbol 190 MovieClip Frame 50
on (press) {
}
Symbol 190 MovieClip Frame 51
play();
Symbol 190 MovieClip Frame 60
stop();
Symbol 190 MovieClip Frame 61
play();
Symbol 190 MovieClip Frame 70
stop();
Symbol 190 MovieClip Frame 71
play();
Symbol 190 MovieClip Frame 80
stop();
Symbol 190 MovieClip Frame 81
play();
Symbol 190 MovieClip Frame 90
gotoAndStop (1);
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
play();
Symbol 199 MovieClip Frame 25
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
play();
Symbol 216 MovieClip Frame 45
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
play();
Symbol 219 MovieClip Frame 72
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
play();
Symbol 234 MovieClip Frame 13
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
play();
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 2
play();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
play();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
play();
Instance of Symbol 266 MovieClip "ghostie" in Symbol 267 MovieClip Frame 1
on (press) {
}
Symbol 268 MovieClip Frame 1
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
play();
Instance of Symbol 269 MovieClip "ghostie" in Symbol 270 MovieClip Frame 1
on (press) {
}
Symbol 275 MovieClip Frame 106
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 294 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip in Symbol 294 MovieClip Frame 1
on (press) {
}
Symbol 294 MovieClip Frame 2
play();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
play();
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
play();
Symbol 301 MovieClip Frame 150
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
play();
Symbol 315 MovieClip Frame 10
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
play();
Symbol 324 MovieClip Frame 1
stop();
Instance of Symbol 321 MovieClip in Symbol 324 MovieClip Frame 1
on (press) {
}
Symbol 324 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 2
play();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
play();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
play();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
play();
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
stop();
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 2
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
stop();
Instance of Symbol 123 MovieClip "arrowButton" in Symbol 439 MovieClip Frame 2
on (press) {
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
gotoAndStop (1);
Symbol 444 MovieClip Frame 3
stop();
Symbol 450 MovieClip Frame 1
stop();
Instance of Symbol 444 MovieClip "tile" in Symbol 450 MovieClip Frame 1
on (press) {
}
Symbol 450 MovieClip Frame 2
stop();
Symbol 450 MovieClip Frame 3
stop();
Symbol 450 MovieClip Frame 4
stop();
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
play();
Symbol 459 MovieClip Frame 15
gotoAndStop (1);
Symbol 459 MovieClip Frame 16
play();
Symbol 459 MovieClip Frame 30
stop();
Symbol 464 MovieClip Frame 1
stop();
Instance of Symbol 459 MovieClip "jar" in Symbol 464 MovieClip Frame 1
on (press) {
}
Symbol 464 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 3
stop();
Symbol 464 MovieClip Frame 4
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
play();
Symbol 502 MovieClip Frame 25
stop();
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
play();
Symbol 508 MovieClip Frame 30
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 2
play();
Symbol 519 MovieClip Frame 10
stop();
Symbol 519 MovieClip Frame 19
gotoAndStop (1);
Symbol 519 MovieClip Frame 20
play();
Symbol 519 MovieClip Frame 30
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
stop();
Symbol 529 MovieClip Frame 1
stop();
Instance of Symbol 527 MovieClip in Symbol 529 MovieClip Frame 1
on (press) {
}
Symbol 529 MovieClip Frame 2
play();
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 2
play();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 2
play();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
play();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 3
stop();
Symbol 540 MovieClip Frame 4
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 2
stop();
Symbol 544 MovieClip Frame 3
stop();
Symbol 544 MovieClip Frame 4
stop();
Symbol 544 MovieClip Frame 5
stop();
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 1
stop();
Instance of Symbol 555 MovieClip in Symbol 565 MovieClip Frame 1
on (press) {
}
Symbol 565 MovieClip Frame 2
play();
Symbol 565 MovieClip Frame 419
gotoAndStop (1);
_global.myRoot.starsOn--;
Symbol 565 MovieClip Frame 420
stop();
Symbol 566 MovieClip Frame 1
stop();
Instance of Symbol 555 MovieClip in Symbol 566 MovieClip Frame 1
on (press) {
}
Symbol 566 MovieClip Frame 2
play();
Symbol 566 MovieClip Frame 181
gotoAndStop (1);
_global.myRoot.starsOn--;
Symbol 566 MovieClip Frame 182
stop();
Symbol 582 MovieClip Frame 1
stop();
Instance of Symbol 579 MovieClip "curtainLoop" in Symbol 582 MovieClip Frame 1
on (press) {
if ((!_global.myRoot.levelPassed) and (!_global.myRoot.gamePaused)) {
if (!_global.myRoot.caught) {
startDrag (_global.myRoot.curtain, false, 320, 100, 320, 353);
_global.myRoot.draggingCurtain = true;
}
}
}
on (release, releaseOutside) {
stopDrag();
_global.myRoot.draggingCurtain = false;
}
Symbol 582 MovieClip Frame 2
play();
Symbol 605 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 2
stop();
Symbol 605 MovieClip Frame 3
stop();
Symbol 605 MovieClip Frame 4
stop();
Instance of Symbol 107 MovieClip "pigReflection" in Symbol 605 MovieClip Frame 4
on (press) {
}
Instance of Symbol 107 MovieClip "pig" in Symbol 605 MovieClip Frame 4
on (press) {
}
Instance of Symbol 107 MovieClip "pigReflection" in Symbol 605 MovieClip Frame 4
on (press) {
}