Frame 1
function onEnterFrame() {
var _local2 = 1;
while (_local2 < 8) {
this["guy" + _local2]._x = this["guy" + _local2]._x + this["guy" + _local2].speed;
if ((this["guy" + _local2]._x > 600) || (this["guy" + _local2]._x < -200)) {
this["guy" + _local2]._x = this["guy" + _local2]._x - this["guy" + _local2].speed;
this["guy" + _local2]._xscale = this["guy" + _local2]._xscale * -1;
this["guy" + _local2].speed = this["guy" + _local2].speed * -1;
}
_local2++;
}
}
var i = 1;
while (i < 8) {
this["guy" + i].sprite.gotoAndStop("run");
this["guy" + i].headSprite = i;
this["guy" + i].speed = (random(30) + 20) / 10;
i++;
}
var i = 1;
while (i < 4) {
this["guy" + i]._xscale = this["guy" + i]._xscale * -1;
this["guy" + i].speed = this["guy" + i].speed * -1;
i++;
}
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 6;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy1" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy2" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy3" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy4" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy5" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy6" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 43 MovieClip [SCORGAMITE] "guy7" in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 2
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_quality = "high";
Frame 3
if (_root.percentLoaded == 100) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Frame 5
function saveAll() {
savefile.data.scoreStore = scoreStore;
savefile.data.levelNo = levelNo;
savefile.flush();
}
stop();
var savefile = SharedObject.getLocal("SCOREGAMITES1");
soundActive = true;
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
domain.toLowerCase();
if ((domain != "") && (domain != "armorgames.com")) {
}
Instance of Symbol 73 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 6
function gotoFrame(targ) {
gotoAndStop(targ);
fader._alpha = 100;
}
function newMusic(targ) {
if (soundActive == true) {
stopAllSounds();
music.gotoAndStop(targ);
music.gotoAndStop(1);
}
}
levelNo = 1;
scoreStore = 0;
stop();
newMusic("TITLE");
Instance of Symbol 92 MovieClip in Frame 6
onClipEvent (load) {
var rotSwitch = false;
var scalSwith = false;
var spin = 0;
var scal = 100;
}
onClipEvent (enterFrame) {
if (rotSwitch == false) {
if (_rotation < 5) {
spin = spin + 0.2;
} else {
rotSwitch = true;
}
} else if (_rotation > -5) {
spin = spin - 0.2;
} else {
rotSwitch = false;
}
_rotation = (_rotation + spin);
spin = spin / 1.1;
if (scalSwitch == false) {
if (_xscale < 105) {
scal = scal + 0.2;
} else {
scalSwitch = true;
}
} else if (_xscale > 95) {
scal = scal - 0.2;
} else {
scalSwitch = false;
}
_xscale = scal;
_yscale = scal;
}
Frame 8
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjQyNWolZSVhJW4lcw==";
rankz_t10_send.flashkey = "emhsbFp4Z2w=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root["rankz_n" + (i + 1)].text = tempv[0];
_root["rankz_v" + (i + 1)].text = tempv[1];
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Frame 9
if (savefile.data.levelNo == undefined) {
loadText.text = "NO SAVE DATA";
} else {
loadText.text = (("LEVEL: " + savefile.data.levelNo) + "\n SCORE: ") + savefile.data.scoreStore;
}
Instance of Symbol 92 MovieClip in Frame 10
onClipEvent (load) {
var rotSwitch = false;
var scalSwith = false;
var spin = 0;
var scal = 50;
}
onClipEvent (enterFrame) {
if (rotSwitch == false) {
if (_rotation < 2) {
spin = spin + 0.1;
} else {
rotSwitch = true;
}
} else if (_rotation > -2) {
spin = spin - 0.1;
} else {
rotSwitch = false;
}
_rotation = (_rotation + spin);
spin = spin / 1.1;
if (scalSwitch == false) {
if (_xscale < 55) {
scal = scal + 0.1;
} else {
scalSwitch = true;
}
} else if (_xscale > 45) {
scal = scal - 0.1;
} else {
scalSwitch = false;
}
_xscale = scal;
_yscale = scal;
}
Frame 11
if (Key.isDown(38)) {
levelNo = 2;
} else if ((levelNo == undefined) || (levelNo < 1)) {
levelNo = 1;
}
var levelArray = new Array(null, "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX");
var BGArray = new Array(null, 1, 2, 3, 1, 2, 3);
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
gotoAndStop ("STORY");
Frame 12
function pythag(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y1 - y2, 2) + Math.pow(x1 - x2, 2)));
}
function angle(x1, y1, x2, y2) {
return(Math.round((Math.atan2(y2 - y1, x2 - x1) / 3.141593) * 180) + 90);
}
function newPuff(xPos, yPos) {
var _local1 = GAME.EFFECTS.attachMovie("Puff", "Pf" + effectCount, effectCount++);
_local1._x = xPos;
_local1._y = yPos;
_local1._xscale = 200;
_local1._yscale = 200;
}
function newBubble(xPos, yPos, mess, targ) {
var _local1 = GAME.EFFECTS.attachMovie("Bubble", "Pf" + effectCount, effectCount++);
_local1._x = xPos;
_local1._y = yPos;
_local1.mess = mess;
_local1.target = targ;
}
function selfFPS() {
}
function onEnterFrame() {
if (S_Counter < levelNo) {
newScoregamite(GAME.ILayer.SOLPortal._x, GAME.ILayer.SOLPortal._y, S_Array.length);
}
if (Key.isDown(32) && (pauseSwitch == false)) {
pauseSwitch = true;
if (gamePaused == false) {
gamePaused = true;
} else {
gamePaused = false;
}
} else if (!Key.isDown(32)) {
pauseSwitch = false;
}
if (gamePaused == false) {
levelTime++;
if (cameraFreeze == false) {
indicatorControl();
clickBuffer++;
switchJumpTimer++;
mouseDownBuffer++;
if ((mouseDownBuffer == 2) && (clickBuffer > 4)) {
setActiveScoregamite(undefined);
GAME.cameraPos._x = GAME._xmouse;
GAME.cameraPos._y = GAME._ymouse;
}
selectKey();
}
if (GAME._xscale == 100) {
updateScoregamites();
}
cameraControl();
EOL();
selfFPS();
}
}
function controlScoregamite(scoregamite) {
if ((Key.isDown(39) || (Key.isDown(68))) && (!Key.isDown(16))) {
scoregamite.xSpeed = scoregamite.xSpeed + 2;
scoregamite._xscale = scoregamite.scale;
setSprite(scoregamite, "RUN");
} else if ((Key.isDown(37) || (Key.isDown(65))) && (!Key.isDown(16))) {
scoregamite.xSpeed = scoregamite.xSpeed - 2;
scoregamite._xscale = -scoregamite.scale;
setSprite(scoregamite, "RUN");
} else {
setSprite(scoregamite, "STAND");
}
if (((Key.isDown(38) || (Key.isDown(87))) && (jumpKeySwitch == false)) && (switchJumpTimer > 15)) {
jumpKeySwitch = true;
if (scoregamite.hitFloor < 6) {
scoregamite.hitFloor = 20;
scoregamite.ySpeed = -10;
}
} else if ((!Key.isDown(38)) && (!Key.isDown(87))) {
jumpKeySwitch = false;
}
if (scoregamite.hitFloor > 6) {
setSprite(scoregamite, "JUMP");
}
}
function EOL() {
if (EOLCount == -1) {
if (EOLTimer > 0) {
EOLTimer--;
} else {
gotoAndStop ("EOL");
}
}
}
function updateScoregamites() {
var _local1 = 0;
while (_local1 < S_Array.length) {
if (pythag(S_Array[_local1]._x, S_Array[_local1]._y, GAME.ILayer.EOLPortal._x, GAME.ILayer.EOLPortal._y) < 50) {
if ((S_Array[_local1]._xscale > 0.01) || (S_Array[_local1]._xscale < -0.01)) {
if (S_Array[_local1].EOL == false) {
EOLCount--;
S_Array[_local1].EOL = true;
setActiveScoregamite(activeScoregamite.ID + 1);
if (activeScoregamite == undefined) {
setActiveScoregamite(0);
}
HUD["B_" + _local1]._alpha = 90;
newCameraPoint(GAME.ILayer.EOLPortal._x, GAME.ILayer.EOLPortal._y, 30);
}
S_Array[_local1].sprite._rotation = S_Array[_local1].sprite._rotation + 10;
S_Array[_local1]._x = S_Array[_local1]._x - ((S_Array[_local1]._x - GAME.ILayer.EOLPortal._x) / 10);
S_Array[_local1]._y = S_Array[_local1]._y - ((S_Array[_local1]._y - GAME.ILayer.EOLPortal._y) / 10);
S_Array[_local1]._xscale = S_Array[_local1]._xscale / 1.05;
S_Array[_local1]._yscale = S_Array[_local1]._yscale / 1.05;
S_Array[_local1].ySpeed = 0;
}
}
if ((S_Array[_local1].active == true) && (cameraFreeze == false)) {
controlScoregamite(S_Array[_local1]);
} else {
setSprite(S_Array[_local1], "STAND");
S_Array[_local1].xSpeed = 0;
}
if (S_Array[_local1].EOL == false) {
S_Array[_local1]._x = S_Array[_local1]._x + S_Array[_local1].xSpeed;
S_Array[_local1].xSpeed = S_Array[_local1].xSpeed / 1.6;
if (Math.round(S_Array[_local1].xSpeed * 2) == 0) {
S_Array[_local1].xSpeed = 0;
}
S_Array[_local1]._y = S_Array[_local1]._y + S_Array[_local1].ySpeed;
S_Array[_local1].ySpeed++;
S_Array[_local1].hitFloor++;
scoregamiteCollision(S_Array[_local1]);
}
_local1++;
}
}
function scoregamiteCollision(scoregamite) {
scoregamite._y = scoregamite._y - 80;
if (scoregamite._y > 1000) {
scoregamite._x = GAME.ILayer.SOLPortal._x;
scoregamite._y = GAME.ILayer.SOLPortal._y;
newPuff(scoregamite._x, scoregamite._y);
}
if (checkCol(scoregamite._x, scoregamite._y + 80, GAME.GROUND) || (checkCol(scoregamite._x, scoregamite._y + 80, GAME.SCORGAMITELAYER))) {
scoregamite.lastXPos = scoregamite._x;
scoregamite.lastYPos = scoregamite._y;
while (checkCol(scoregamite._x, scoregamite._y + 80, GAME.GROUND) || (checkCol(scoregamite._x, scoregamite._y + 80, GAME.SCORGAMITELAYER))) {
scoregamite._y--;
}
scoregamite.ySpeed = 0;
scoregamite.hitFloor = 0;
scoregamite._y = scoregamite._y + 2;
}
if (checkCol(scoregamite._x, scoregamite._y + 60, GAME.GROUND)) {
while (checkCol(scoregamite._x, scoregamite._y + 60, GAME.GROUND)) {
scoregamite._y++;
}
scoregamite.ySpeed = 1;
}
scoregamite._y = scoregamite._y + 80;
if (scoregamite.active == true) {
scoregamite._x = scoregamite._x - 100;
if (checkCol(scoregamite._x + 110, scoregamite._y - 15, GAME.GROUND) || (checkCol(scoregamite._x + 110, scoregamite._y - 15, GAME.SCORGAMITELAYER))) {
while (checkCol(scoregamite._x + 110, scoregamite._y - 15, GAME.GROUND) || (checkCol(scoregamite._x + 110, scoregamite._y - 15, GAME.SCORGAMITELAYER))) {
scoregamite._x--;
}
scoregamite.xSpeed = 0;
}
if (checkCol(scoregamite._x + 90, scoregamite._y - 15, GAME.GROUND) || (checkCol(scoregamite._x + 90, scoregamite._y - 15, GAME.SCORGAMITELAYER))) {
while (checkCol(scoregamite._x + 90, scoregamite._y - 15, GAME.GROUND) || (checkCol(scoregamite._x + 90, scoregamite._y - 15, GAME.SCORGAMITELAYER))) {
scoregamite._x++;
}
scoregamite.xSpeed = 0;
}
scoregamite._x = scoregamite._x + 100;
}
}
function checkCol(xPos, yPos, targetLayer) {
if (targetLayer.hitTest(xPos + GAME._x, yPos + GAME._y, true)) {
return(true);
}
return(false);
}
function setSprite(scoregamite, pose) {
scoregamite.sprite.gotoAndStop(pose);
}
function newScoregamite(xPos, yPos, number) {
newPuff(xPos, yPos);
HUD["B_" + number]._alpha = 0;
var _local1 = GAME.SCORGAMITELAYER.attachMovie("SCORGAMITE", "S" + S_Counter, S_Counter++);
_local1._xscale = 50;
_local1._yscale = 50;
_local1._x = xPos;
_local1._y = yPos;
_local1.ID = S_Counter - 1;
_local1.headSprite = number + 1;
_local1.hitFloor = 0;
_local1.EOL = false;
_local1.xSpeed = random(6) - 3;
_local1.ySpeed = -4;
_local1.health = 100;
_local1.scale = _local1._xscale;
_local1.lastXPos = _local1._x;
_local1.lastYPos = _local1._y;
S_Array.push(_local1);
setActiveScoregamite(S_Array.length - 1);
_local1 = HUD.attachMovie("HUD_Indicator", "HI_" + indicatorCounter, indicatorCounter++);
_local1._x = 200;
_local1._y = -150;
_local1.ID = S_Counter - 1;
_local1._alpha = 0;
_local1._rotation = random(360);
_local1.faceSprite.gotoAndStop(indicatorCounter);
_local1.faceSprite._rotation = -_local1._rotation;
HI_Array.push(_local1);
}
function clickScoregamite(ID) {
setActiveScoregamite(ID);
clickBuffer = 0;
}
function onMouseDown() {
}
function setActiveScoregamite(scoregamite) {
if ((S_Array[scoregamite] != undefined) && (S_Array[scoregamite].EOL == false)) {
newBubble(S_Array[scoregamite]._x, S_Array[scoregamite]._y, nameArray[scoregamite], S_Array[scoregamite]);
}
switchJumpTimer = 0;
var _local1 = 0;
while (_local1 < S_Array.length) {
S_Array[_local1].active = false;
setTintObject(S_Array[_local1], 60, 60, 60, 50);
_local1++;
}
HUD.H_Select._x = (S_Array[scoregamite].ID * 50) + 50;
SelectNo = S_Array[scoregamite].ID;
activeScoregamite = S_Array[scoregamite];
S_Array[scoregamite].active = true;
setTintObject(S_Array[scoregamite], 0, 0, 0, 0);
S_Array[scoregamite].swapDepths(1000);
if (activeScoregamite.EOL == true) {
setActiveScoregamite(scoregamite + selectDir);
}
}
function setTintObject(target, r, g, b, amount) {
var _local1 = new Color(target);
_local1.setTint(r, g, b, amount);
}
function cameraControl() {
if (cameraFreeze == false) {
HUD.camIcon._alpha = 50;
HUD.camIcon.gotoAndStop("FREE");
GAME.cameraPos._x = GAME.cameraPos._x + cameraXSpeed;
GAME.cameraPos._y = GAME.cameraPos._y + cameraYSpeed;
cameraXSpeed = cameraXSpeed / 1.1;
cameraYSpeed = cameraYSpeed / 1.1;
if (Key.isDown(38)) {
cameraYSpeed--;
} else if (Key.isDown(40)) {
cameraYSpeed++;
}
if (Key.isDown(39) || (Key.isDown(68))) {
cameraXSpeed++;
} else if (Key.isDown(37) || (Key.isDown(65))) {
cameraXSpeed--;
}
if (activeScoregamite != undefined) {
HUD.camIcon._alpha = 0;
GAME.cameraPos._x = activeScoregamite._x;
GAME.cameraPos._y = activeScoregamite._y;
}
} else {
cameraXSpeed = 0;
cameraYSpeed = 0;
cameraFreezeTimer--;
HUD.camIcon.gotoAndStop("ACTION");
HUD.camIcon._alpha = 50;
if (cameraFreezeTimer == 0) {
cameraFreeze = false;
}
}
if (GAME.cameraPos._y > 240) {
GAME.cameraPos._y = 240;
} else if (GAME.cameraPos._y < -400) {
GAME.cameraPos._y = -400;
}
if (GAME.cameraPos._x > 1400) {
GAME.cameraPos._x = 1400;
} else if (GAME.cameraPos._x < -1400) {
GAME.cameraPos._x = -1400;
}
GAME._x = GAME._x - (((GAME.cameraPos._x + GAME._x) - 200) / 5);
GAME._y = GAME._y - (((GAME.cameraPos._y + GAME._y) - 150) / 5);
BG_1._x = GAME._x / 4;
BG_1._y = GAME._y / 4;
BG_2._x = GAME._x / 6;
BG_2._y = GAME._y / 6;
BG_3._x = GAME._x / 8;
BG_3._y = GAME._y / 8;
}
function selectKey() {
var _local1 = 0;
while (_local1 < 10) {
if (Key.isDown(_local1 + 49)) {
setActiveScoregamite(_local1);
}
_local1++;
}
if ((Key.isDown(39 || (Key.isDown(68))) && (Key.isDown(16))) && (selectSwitch == false)) {
selectDir = 1;
selectSwitch = true;
setActiveScoregamite(activeScoregamite.ID + 1);
if (activeScoregamite == undefined) {
setActiveScoregamite(0);
}
} else if (((Key.isDown(37) || (Key.isDown(65))) && (Key.isDown(16))) && (selectSwitch == false)) {
selectDir = -1;
selectSwitch = true;
setActiveScoregamite(activeScoregamite.ID - 1);
if (activeScoregamite == undefined) {
setActiveScoregamite(S_Counter - 1);
}
} else if (((!Key.isDown(39)) && (!Key.isDown(68))) && ((!Key.isDown(37)) && (!Key.isDown(65)))) {
selectSwitch = false;
}
}
function checkHitTest(object) {
var _local2 = 0;
var _local1 = 0;
while (_local1 < S_Array.length) {
if (object.hitTest(S_Array[_local1])) {
_local2++;
}
_local1++;
}
return(_local2);
}
function indicatorControl() {
var _local1 = 0;
while (_local1 < HI_Array.length) {
if (((pythag(S_Array[_local1]._x, S_Array[_local1]._y, GAME.cameraPos._x, GAME.cameraPos._y) > 250) && (S_Array[_local1].EOL == false)) && (GAME._xscale == 100)) {
HI_Array[_local1]._alpha = 50;
HI_Array[_local1]._rotation = angle(S_Array[_local1]._x, S_Array[_local1]._y, GAME.cameraPos._x, GAME.cameraPos._y) + 90;
HI_Array[_local1].faceSprite._rotation = -HI_Array[_local1]._rotation;
} else {
HI_Array[_local1]._alpha = HI_Array[_local1]._alpha / 1.2;
}
_local1++;
}
}
function newCameraPoint(xPos, yPos, timer) {
cameraFreeze = true;
cameraFreezeTimer = timer;
GAME.cameraPos._x = xPos;
GAME.cameraPos._y = yPos;
}
levelTime = 0;
newMusic("GAME");
saveAll();
stop();
GAME.GROUND.gotoAndStop(levelArray[levelNo]);
GAME.ILayer.gotoAndStop(levelArray[levelNo]);
BG_3.gotoAndStop(BGArray[levelNo]);
BG_1.gotoAndStop(BGArray[levelNo]);
var S_Array = new Array();
var HI_Array = new Array();
var S_Counter = 0;
var selectNo = 0;
var activeScoregamite;
var switchJumpTimer = 0;
var jumpKeySwitch = false;
GAME.createEmptyMovieClip("SCORGAMITELAYER", 0);
GAME.createEmptyMovieClip("EFFECTS", 1);
var effectCount = 0;
var currentTime = 0;
var timer = new Date();
var fpsStore = 10;
gamePaused = false;
pauseSwitch = false;
var cameraXSpeed = 0;
var cameraYSpeed = 0;
var EOLCount = levelNo;
var EOLTimer = 100;
var indicatorCounter = 0;
var clickBuffer = 0;
var nameArray = new Array("Joel", "Dawn", "Alex B", "Daniel", "Alex G", "PHIL", "CHRIS");
var selectSwitch = false;
var selectDir = 1;
var cameraFreeze = false;
var cameraFreezeTimer = 0;
Frame 13
levelNo++;
gotoFrame("STORY");
Frame 18
function onEnterFrame() {
timer++;
if (timer < (10 * endSpeed)) {
} else if (timer < (20 * endSpeed)) {
EOLBox.text = (String1 + _root.levelTime) + "\n\n";
} else if (timer < (30 * endSpeed)) {
EOLBox.text = ((((String1 + _root.levelTime) + "\n\n") + String2) + score) + "\n\n";
} else if (timer < (40 * endSpeed)) {
EOLBox.text = (((((((String1 + _root.levelTime) + "\n\n") + String2) + score) + "\n\n") + String3) + _root.scoreStore) + newline;
} else if (score > 0) {
score = score - (1 * levelNo);
scoreStore = scoreStore + (1 * levelNo);
EOLBox.text = (((((((String1 + _root.levelTime) + "\n\n") + String2) + score) + "\n\n") + String3) + _root.scoreStore) + newline;
}
}
BG_1.gotoAndStop(BGArray[levelNo]);
BG_3.gotoAndStop(BGArray[levelNo]);
String1 = "TIME TAKEN: ";
String2 = "SCORE: ";
String3 = "TOTAL SCORE: ";
var timer = 0;
var endSpeed = 3;
var score = (Math.round(200000 / _root.levelTime) * levelNo);
newMusic("EOL");
Frame 19
function onEnterFrame() {
if (storyCounter < this["story" + _root.levelNo].length) {
storyText = storyText + this["story" + _root.levelNo].charAt(storyCounter);
storyCounter++;
}
}
trace(levelNo);
var story1 = "DEAR JOEL, I HAVE STOLEN ALL OF YOUR FRIENDS AND PUT THEM IN CAGES. NOW YOU WILL NEVER BE HAPPY AGAIN! SIGNED, THE ROYAL TYRANT.";
var story2 = "YOU THINK YOU STAND A BETTER CHANCE OF FINDING YOUR FRIENDS WITH TWO OF YOU? FAT CHANCE! SIGNED THE ROYAL TYRANT.";
var story3 = "DARN YOU AND YOUR TEAMWORK SKILLS! TIME TO TURN UP THE HEAT AND MAKE THESE PUZZLES TRICKIER! - THE ROYAL TYRANT.";
var story4 = "THERE'S FOUR OF YOU NOW!? NO WORRIES, I'VE HIDDEN THE REST OF YOUR FRIENDS AWAY WELL! TEE HEE HEE! - THE ROYAL TYRANT.";
var story5 = "DO YOU THINK YOU GUYS ARE FUNNY OR SOMETHING? I DON'T CARE IF YOU'RE ALL JUST OUT TO GET ME, YOU'LL NEVER FIND THE REST OF YOUR PALS!";
var story6 = "EEP! YOU TROUBLESOME SCOREGAMITES NEED TO BE TAUGHT A THING OR TWO ABOUT MANNERS! YOU BEST TURN AROUND AND GO HOME RIGHT NOW! - THE R.T.";
var story7 = "WELL WELL WELL, I HOPE YOU ARE ALL VERY PLEASED. I ONLY WANTED TO PROTECT YOU FROM YOURSELVES! DON'T YOU WORRY! i'LL BE BACK! -THE R TO THE T.";
var storyCounter = 0;
var storyText = "";
newMusic("LETTER");
Frame 20
function onEnterFrame() {
if (random(10) == 0) {
this["guy" + (random(7) + 1)]._xscale = this["guy" + (random(7) + 1)]._xscale * -1;
}
}
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
var i = 1;
while (i < 8) {
this["guy" + i].sprite.gotoAndStop("dance");
this["guy" + i].headSprite = i;
if (random(2) == 0) {
this["guy" + i]._xscale = this["guy" + i]._xscale * -1;
}
i++;
}
newMusic("victory");
Instance of Symbol 305 MovieClip in Frame 20
onClipEvent (load) {
var rotSwitch = false;
var scalSwith = false;
var spin = 0;
var scal = 100;
}
onClipEvent (enterFrame) {
if (rotSwitch == false) {
if (_rotation < 5) {
spin = spin + 0.2;
} else {
rotSwitch = true;
}
} else if (_rotation > -5) {
spin = spin - 0.2;
} else {
rotSwitch = false;
}
_rotation = (_rotation + spin);
spin = spin / 1.1;
if (scalSwitch == false) {
if (_xscale < 105) {
scal = scal + 0.2;
} else {
scalSwitch = true;
}
} else if (_xscale > 95) {
scal = scal - 0.2;
} else {
scalSwitch = false;
}
_xscale = scal;
_yscale = scal;
}
Frame 22
gotoAndStop ("GAME");
Instance of Symbol 92 MovieClip in Frame 23
onClipEvent (load) {
var rotSwitch = false;
var scalSwith = false;
var spin = 0;
var scal = 100;
}
onClipEvent (enterFrame) {
if (rotSwitch == false) {
if (_rotation < 5) {
spin = spin + 0.2;
} else {
rotSwitch = true;
}
} else if (_rotation > -5) {
spin = spin - 0.2;
} else {
rotSwitch = false;
}
_rotation = (_rotation + spin);
spin = spin / 1.1;
if (scalSwitch == false) {
if (_xscale < 105) {
scal = scal + 0.2;
} else {
scalSwitch = true;
}
} else if (_xscale > 95) {
scal = scal - 0.2;
} else {
scalSwitch = false;
}
_xscale = scal;
_yscale = scal;
}
Symbol 7 MovieClip [Puff] Frame 16
this.removeMovieClip();
Symbol 23 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.headSprite);
Symbol 24 MovieClip [HUD_Indicator] Frame 1
function onPress() {
if (_alpha > 0) {
_parent._parent.clickScoregamite(faceSprite._currentframe - 1);
}
}
Symbol 29 MovieClip [Bubble] Frame 1
function onEnterFrame() {
_x = target._x;
_y = target._y;
if (_xscale < 100) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if (_alpha > 0) {
_alpha = (_alpha - 3);
} else {
this.removeMovieClip();
}
}
_alpha = 300;
_xscale = 0;
_yscale = 0;
Symbol 31 MovieClip Frame 1
_alpha = 0;
Symbol 43 MovieClip [SCORGAMITE] Frame 1
function onPress() {
_parent._parent._parent.clickScoregamite(ID);
}
Symbol 62 Button
on (release) {
_root.play();
}
Symbol 73 MovieClip Frame 126
_root.nextFrame();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 93 Button
on (release) {
gotoFrame("LOADGAME");
}
Symbol 94 Button
on (release) {
gotoFrame("CREDITS");
}
Symbol 97 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 99 Button
on (release) {
gotoFrame("SCORES");
}
Symbol 103 MovieClip Frame 1
function onEnterFrame() {
if (_alpha > 0) {
_alpha = (_alpha - 2);
}
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 111 Button
on (release) {
gotoFrame("TITLE");
}
Symbol 147 Button
on (release) {
levelNo = 0;
scoreStore = 0;
saveAll();
gotoFrame("INTRO");
}
Symbol 150 Button
on (release) {
if (savefile.data.levelNo > 0) {
levelNo = savefile.data.levelNo;
scoreStore = savefile.data.scoreStore;
saveAll();
gotoFrame("SETUP");
} else {
levelNo = 0;
scoreStore = 0;
saveAll();
gotoFrame("INTRO");
}
}
Symbol 156 Button
on (release) {
gotoFrame("SETUP");
}
Symbol 160 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 5);
}
Symbol 162 MovieClip Frame 1
function onEnterFrame() {
sc.sprite.sprite.head.gotoAndStop(_root.levelNo + 1);
if (Switch == false) {
if (_parent._parent._parent.checkHitTest(this.hit) > 0) {
Switch = true;
_parent._parent._parent.newCameraPoint(camPosX, camPosY, camTimer);
gotoAndStop (2);
}
} else {
setAction();
}
}
stop();
sc.sprite.stop();
var Switch = false;
Symbol 165 MovieClip Frame 1
function onEnterFrame() {
if (Switch == false) {
if (_parent._parent._parent.checkHitTest(this.hit) > 0) {
Switch = true;
_parent._parent._parent.newCameraPoint(camPosX, camPosY, camTimer);
gotoAndStop (2);
}
} else if (_root.gamePaused == false) {
setAction();
}
}
stop();
var Switch = false;
Symbol 180 MovieClip Frame 1
stop();
Instance of Symbol 162 MovieClip in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
function setAction() {
if (tempSwitch == false) {
tempSwitch = true;
_parent._parent._parent.newScoregamite(this._x, this._y, 6);
}
}
var camPosX = this._x;
var camPosY = this._y;
var camTimer = 5;
var tempSwitch = false;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
function setAction() {
_parent._parent.GROUND.lift1._y = _parent._parent.GROUND.lift1._y + 2;
}
var camPosX = _parent._parent.GROUND.lift1._x;
var camPosY = _parent._parent.GROUND.lift1._y;
var camTimer = 80;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
function setAction() {
_parent._parent.GROUND.lift2._y = _parent._parent.GROUND.lift2._y + 2;
_parent._parent.GROUND.lift3._y = _parent._parent.GROUND.lift3._y + 2;
}
var camPosX = _parent._parent.GROUND.lift2._x;
var camPosY = _parent._parent.GROUND.lift2._y;
var camTimer = 100;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.lift1._y < 243) {
_parent._parent.GROUND.lift1._y = _parent._parent.GROUND.lift1._y + 2;
}
}
var camPosX = (_parent._parent.GROUND.lift1._x + 50);
var camPosY = (_parent._parent.GROUND.lift1._y + 100);
var camTimer = 100;
}
Instance of Symbol 162 MovieClip in Symbol 180 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (tempSwitch == false) {
tempSwitch = true;
_parent._parent._parent.newScoregamite(this._x, this._y, 5);
}
}
var camPosX = this._x;
var camPosY = this._y;
var camTimer = 5;
var tempSwitch = false;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate5._x > 1040) {
_parent._parent.GROUND.gate5._x--;
_parent._parent.GROUND.gate6._x--;
_parent._parent.GROUND.gate7._x--;
}
}
var camPosX = _parent._parent.GROUND.gate6._x;
var camPosY = _parent._parent.GROUND.gate6._y;
var camTimer = 100;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.lift2._y < 243) {
_parent._parent.GROUND.lift2._y = _parent._parent.GROUND.lift2._y + 2;
}
}
var camPosX = _parent._parent.GROUND.lift2._x;
var camPosY = _parent._parent.GROUND.lift2._y;
var camTimer = 50;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 3
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.lift._y > 72) {
_parent._parent.GROUND.gate1._y = _parent._parent.GROUND.gate1._y - 1;
_parent._parent.GROUND.lift._y = _parent._parent.GROUND.lift._y - 2;
}
}
var camPosX = _parent._parent.GROUND.lift._x;
var camPosY = _parent._parent.GROUND.lift._y;
var camTimer = 100;
}
Instance of Symbol 162 MovieClip in Symbol 180 MovieClip Frame 3
onClipEvent (load) {
function setAction() {
if (tempSwitch == false) {
tempSwitch = true;
_parent._parent._parent.newScoregamite(this._x, this._y, 4);
}
}
var camPosX = this._x;
var camPosY = this._y;
var camTimer = 5;
var tempSwitch = false;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 3
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate1._y < 100) {
_parent._parent.GROUND.gate1._y = _parent._parent.GROUND.gate1._y + 1;
}
}
var camPosX = _parent._parent.GROUND.gate1._x;
var camPosY = _parent._parent.GROUND.gate1._y;
var camTimer = 100;
}
Instance of Symbol 162 MovieClip in Symbol 180 MovieClip Frame 4
onClipEvent (load) {
function setAction() {
if (tempSwitch == false) {
tempSwitch = true;
_parent._parent._parent.newScoregamite(this._x, this._y, 3);
}
}
var camPosX = this._x;
var camPosY = this._y;
var camTimer = 5;
var tempSwitch = false;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 4
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.lift4._y < 250) {
_parent._parent.GROUND.lift4._y = _parent._parent.GROUND.lift4._y + 1;
}
}
var camPosX = _parent._parent.GROUND.lift4._x;
var camPosY = _parent._parent.GROUND.lift4._y;
var camTimer = 100;
}
Symbol 180 MovieClip Frame 5
stop();
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 5
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate2._y < 120) {
_parent._parent.GROUND.gate2._y = _parent._parent.GROUND.gate2._y + 1;
} else {
this.swapDepths(666);
this.removeMovieClip();
}
}
var camPosX = _parent._parent.GROUND.gate2._x;
var camPosY = _parent._parent.GROUND.gate2._y;
var camTimer = 100;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 5
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate2._y > 20) {
_parent._parent.GROUND.gate2._y = _parent._parent.GROUND.gate2._y - 1;
_parent._parent.GROUND.gate4._y = _parent._parent.GROUND.gate4._y + 1;
}
}
var camPosX = _parent._parent.GROUND.gate4._x;
var camPosY = _parent._parent.GROUND.gate4._y;
var camTimer = 100;
}
Instance of Symbol 162 MovieClip in Symbol 180 MovieClip Frame 5
onClipEvent (load) {
function setAction() {
if (tempSwitch == false) {
tempSwitch = true;
_parent._parent._parent.newScoregamite(this._x, this._y, 2);
}
}
var camPosX = this._x;
var camPosY = this._y;
var camTimer = 5;
var tempSwitch = false;
}
Symbol 180 MovieClip Frame 6
stop();
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 6
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate1._y > 115) {
_parent._parent.GROUND.gate1._y = _parent._parent.GROUND.gate1._y - 1;
}
}
var camPosX = _parent._parent.GROUND.gate1._x;
var camPosY = _parent._parent.GROUND.gate1._y;
var camTimer = 100;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 6
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate2._y < 300) {
_parent._parent.GROUND.gate2._y = _parent._parent.GROUND.gate2._y + 1;
_parent._parent.GROUND.gate3._y = _parent._parent.GROUND.gate3._y + 1;
}
}
var camPosX = _parent._parent.GROUND.gate2._x;
var camPosY = _parent._parent.GROUND.gate2._y;
var camTimer = 50;
}
Instance of Symbol 162 MovieClip in Symbol 180 MovieClip Frame 6
onClipEvent (load) {
function setAction() {
if (tempSwitch == false) {
tempSwitch = true;
_parent._parent._parent.newScoregamite(this._x, this._y, 1);
}
}
var camPosX = this._x;
var camPosY = this._y;
var camTimer = 5;
var tempSwitch = false;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 7
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.gate1._y < 100) {
_parent._parent.GROUND.gate1._y = _parent._parent.GROUND.gate1._y + 1;
}
}
var camPosX = _parent._parent.GROUND.gate1._x;
var camPosY = _parent._parent.GROUND.gate1._y;
var camTimer = 100;
}
Instance of Symbol 165 MovieClip in Symbol 180 MovieClip Frame 7
onClipEvent (load) {
function setAction() {
if (_parent._parent.GROUND.lift._y > 72) {
_parent._parent.GROUND.gate1._y = _parent._parent.GROUND.gate1._y - 2;
_parent._parent.GROUND.lift._y = _parent._parent.GROUND.lift._y - 2;
}
}
var camPosX = _parent._parent.GROUND.gate1._x;
var camPosY = _parent._parent.GROUND.gate1._y;
var camTimer = 100;
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
_alpha = 0;
Symbol 197 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent._parent.checkHitTest(topSensor) == true) {
buffer++;
} else {
buffer = 0;
val = 0;
topLight.gotoAndStop(1);
}
if (buffer > 5) {
topSensor._yscale = 1800;
topLight.gotoAndStop(2);
val = _parent._parent._parent.checkHitTest(topSensor);
topSensor._yscale = sensorScale;
}
if (val >= valStore) {
topLight.gotoAndStop(3);
if (_root.gamePaused == false) {
setAction();
}
} else if (_root.gamePaused == false) {
unsetAction();
}
valText.text = (val + "/") + valStore;
}
var val = 0;
var Switch = false;
var buffer = 0;
var sensorScale = topSensor._yscale;
Symbol 202 MovieClip Frame 1
function onEnterFrame() {
if ((LTouchBuffer == 0) && (RTouchBuffer == 0)) {
if (_currentframe < 27) {
nextFrame();
} else if (_currentframe > 27) {
prevFrame();
}
}
if (_parent._parent._parent.checkHitTest(platL.sensor) || (_parent._parent._parent.checkHitTest(platR.sensor))) {
platL.sensor._yscale = 700;
platR.sensor._yscale = 700;
leftHit = _parent._parent._parent.checkHitTest(platL.sensor);
rightHit = _parent._parent._parent.checkHitTest(platR.sensor);
if (leftHit > rightHit) {
LTouchBuffer++;
RTouchBuffer--;
} else if (rightHit > leftHit) {
RTouchBuffer++;
LTouchBuffer--;
} else {
LTouchBuffer--;
RTouchBuffer--;
}
} else {
LTouchBuffer--;
RTouchBuffer--;
}
if (LTouchBuffer > 25) {
prevFrame();
} else if (RTouchBuffer > 25) {
nextFrame();
}
platL.sensor._yscale = 10;
platR.sensor._yscale = 10;
if (LTouchBuffer < 0) {
LTouchBuffer = 0;
} else if (LTouchBuffer > 30) {
LTouchBuffer = 30;
}
if (RTouchBuffer < 0) {
RTouchBuffer = 0;
} else if (RTouchBuffer > 30) {
RTouchBuffer = 30;
}
}
var LTouchBuffer = 0;
var RTouchBuffer = 0;
var leftHit = 0;
var rightHit = 0;
Symbol 247 MovieClip Frame 1
stop();
Instance of Symbol 197 MovieClip "autoLift_B1" in Symbol 247 MovieClip Frame 1
onClipEvent (load) {
function setAction() {
if (_parent.autoLift1._y > -421) {
_parent.autoLift1._y = _parent.autoLift1._y - 2;
_parent.autoLift_B1._y = _parent.autoLift_B1._y - 2;
}
}
function unsetAction() {
if (_parent.autoLift1._y < -85) {
_parent.autoLift1._y = _parent.autoLift1._y + 2;
_parent.autoLift_B1._y = _parent.autoLift_B1._y + 2;
}
}
valStore = 1;
}
Instance of Symbol 197 MovieClip "autoLift_B2" in Symbol 247 MovieClip Frame 1
onClipEvent (load) {
function setAction() {
if (_parent.autoLift2._y > -243) {
_parent.autoLift2._y = _parent.autoLift2._y - 2;
_parent.autoLift_B2._y = _parent.autoLift_B2._y - 2;
}
}
function unsetAction() {
if (_parent.autoLift2._y < -85) {
_parent.autoLift2._y = _parent.autoLift2._y + 2;
_parent.autoLift_B2._y = _parent.autoLift_B2._y + 2;
}
}
valStore = 1;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (_parent.lift3._y > -157) {
_parent.lift3._y = _parent.lift3._y - 4;
_parent.lift4._y = _parent.lift4._y + 1.14;
}
}
function unsetAction() {
if (_parent.lift3._y < 249) {
_parent.lift3._y = _parent.lift3._y + 4;
_parent.lift4._y = _parent.lift4._y - 1.14;
}
}
valStore = 3;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (_parent.lift5._y < 85) {
_parent.lift5._y = _parent.lift5._y + 4;
}
}
function unsetAction() {
if (_parent.lift5._y > -157) {
_parent.lift5._y = _parent.lift5._y - 4;
}
}
valStore = 3;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 2
onClipEvent (load) {
function setAction() {
if (_parent.lift7._y < -223) {
_parent.lift7._y = _parent.lift7._y + 2;
_parent.lift6._y = _parent.lift6._y - 2;
}
}
function unsetAction() {
}
valStore = 6;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 3
onClipEvent (load) {
function setAction() {
if (_parent.bridge1._x > 410) {
_parent.bridge1._x = _parent.bridge1._x - 2;
_parent.bridge2._x = _parent.bridge2._x - 2;
}
}
function unsetAction() {
if (_parent.bridge1._x < 510) {
_parent.bridge1._x = _parent.bridge1._x + 2;
_parent.bridge2._x = _parent.bridge2._x + 2;
}
}
valStore = 2;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 3
onClipEvent (load) {
function setAction() {
if (_parent.gate2._y < -45) {
_parent.gate4._y = _parent.gate4._y + 2;
_parent.gate2._y = _parent.gate2._y + 2;
if (_parent.gate3._y > 98) {
_parent.gate3._y = _parent.gate3._y - 4;
}
}
}
function unsetAction() {
if (_parent.gate2._y > -110) {
_parent.gate4._y = _parent.gate4._y - 2;
_parent.gate2._y = _parent.gate2._y - 2;
}
}
valStore = 4;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 4
onClipEvent (load) {
function setAction() {
if (_parent.lift1._y > 35) {
_parent.lift1._y = _parent.lift1._y - 2;
}
}
function unsetAction() {
if (_parent.lift1._y < 215) {
_parent.lift1._y = _parent.lift1._y + 2;
}
}
valStore = 1;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 4
onClipEvent (load) {
function setAction() {
if (_parent.lift2._y > 35) {
_parent.lift2._y = _parent.lift2._y - 2;
}
}
function unsetAction() {
if (_parent.lift2._y < 215) {
_parent.lift2._y = _parent.lift2._y + 2;
}
}
valStore = 1;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 4
onClipEvent (load) {
function setAction() {
if (_parent.lift6._y < 214) {
_parent.lift6._y = _parent.lift6._y + 4;
}
}
function unsetAction() {
if (_parent.lift6._y > 114) {
_parent.lift6._y = _parent.lift6._y - 4;
}
}
valStore = 2;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 4
onClipEvent (load) {
function setAction() {
if (_parent.lift5._y > -160) {
_parent.lift5._y = _parent.lift5._y - 2;
}
}
function unsetAction() {
}
valStore = 3;
}
Symbol 247 MovieClip Frame 5
stop();
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 5
onClipEvent (load) {
function setAction() {
if (_parent.gate1._y > 170) {
_parent.gate1._y = _parent.gate1._y - 2;
}
}
function unsetAction() {
if (_parent.gate1._y < 240) {
_parent.gate1._y = _parent.gate1._y + 2;
}
}
valStore = 1;
}
Instance of Symbol 197 MovieClip in Symbol 247 MovieClip Frame 5
onClipEvent (load) {
function setAction() {
if (_parent.gate3._x < 50) {
_parent.gate3._x = _parent.gate3._x + 2;
}
}
function unsetAction() {
if (_parent.gate3._x > -35) {
_parent.gate3._x = _parent.gate3._x - 2;
}
}
var valStore = 1;
}
Symbol 247 MovieClip Frame 6
stop();
Symbol 252 MovieClip Frame 1
function onPress() {
var _local3 = Number(_name.charAt(2));
if ((_alpha == 0) || (_local3 == 9)) {
_parent._parent.clickScoregamite(_local3);
if (_local3 == 9) {
_parent.H_Select._x = this._x;
}
}
}
Symbol 267 Button
on (release) {
quitSure._visible = true;
quitBut._alpha = 50;
}
Symbol 269 Button
on (release) {
_root._quality = "low";
}
Symbol 271 Button
on (release) {
_root._quality = "medium";
}
Symbol 273 Button
on (release) {
_root._quality = "high";
}
Symbol 276 Button
on (release) {
_root.soundActive = true;
_root.newMusic("GAME");
}
Symbol 278 Button
on (release) {
stopAllSounds();
_root.soundActive = false;
}
Symbol 280 Button
on (release) {
_root.gotoAndStop("RESET");
}
Symbol 283 Button
on (release) {
_visible = false;
}
Symbol 285 Button
on (release) {
stopAllSounds();
_root.gotoFrame("TITLE");
}
Symbol 288 MovieClip Frame 1
_visible = false;
Symbol 291 MovieClip Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
this.gotoAndStop("OFF");
} else {
this.gotoAndStop("ON");
}
}
Symbol 291 MovieClip Frame 2
stop();
Symbol 291 MovieClip Frame 3
stop();
Symbol 294 Button
on (release) {
levelNo++;
saveAll();
scoreStore = scoreStore + score;
gotoFrame("STORY");
}
Symbol 299 Button
on (release) {
if (levelNo == 7) {
gotoFrame("VICTORY");
} else {
gotoFrame("GAME");
}
}
Symbol 301 Button
on (release) {
gotoFrame("TITLE");
}
Symbol 308 Button
on (release) {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = scoreStore;
__rankz_send__("MjQyNWolZSVhJW4lcw==", "emhsbFp4Z2w=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
levelNo = undefined;
scoreStore = 0;
saveAll();
gotoFrame("TITLE");
}