Frame 1
MochiAd.showPreloaderAd({id:"00ad792e38362b84", res:"550x400"});
Frame 3
function ToggleMusic() {
if (MusicPlaying) {
Music.stop();
MusicPlaying = false;
} else {
Music.start(0, 999);
MusicPlaying = true;
}
}
function SetQuality() {
if (Qual == "HIGH") {
Qual = "MEDIUM";
} else if (Qual == "MEDIUM") {
Qual = "LOW";
} else if (Qual == "LOW") {
Qual = "HIGH";
}
_quality = Qual;
}
var DoubleCheck = "none";
var Moves = -1;
var NextMoves = -1;
var TilesLeft = -1;
var TileArray = new Array();
var LevelsCompleted = new Array(50);
var RetryArray = new Array();
var MaxLevel = 1;
var CurrentLevel = 0;
var Shape = "None";
var Temp = 0;
var a = 0;
var b = 0;
var c = 0;
var Ready = false;
var DarkColor = {ra:50, ga:50, ba:50, aa:100};
var LightColor = {ra:100, ga:100, ba:100, aa:100};
var Fading = false;
var Mode = "Game";
var MoveArray = new Array();
var TileSound = new Sound();
TileSound.attachSound("TileSound");
var Music = new Sound();
Music.attachSound("CoolGlider");
var MusicPlaying = false;
var Qual = "HIGH";
a = 1;
while (a <= 50) {
LevelsCompleted[a] = false;
a++;
}
BlueSave = SharedObject.getLocal("BlueSave");
if (BlueSave.data.MLev != undefined) {
MaxLevel = BlueSave.data.MLev;
}
if (BlueSave.data.LevComp != undefined) {
LevelsCompleted = BlueSave.data.LevComp;
}
if (BlueSave.data.Retry != undefined) {
RetryArray = BlueSave.data.Retry;
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("Toggle Music", ToggleMusic));
newMenu.customItems.push(new ContextMenuItem("Toggle Quality", SetQuality));
this.menu = newMenu;
ToggleMusic();
Instance of Symbol 68 MovieClip "TextDisplayer" in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if (_root.LevelsCompleted[50] == false) {
_root.Tooltip._x = (_root._xmouse + (_root.Tooltip._width / 2)) + 5;
_root.Tooltip._y = (_root._ymouse + (_root.Tooltip._height / 2)) + 5;
}
} else {
_root.Tooltip._x = -200;
_root.Tooltip._y = -200;
}
}
Instance of Symbol 74 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.LevelsCompleted[50] == false) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 4
if (LevelsCompleted[50] == true) {
GenButt.enabled = true;
} else {
GenButt.enabled = false;
}
Frame 5
if (Fading == false) {
gotoAndPlay ("MainMain");
} else {
stop();
}
Frame 6
function NewLevel(Level) {
Orb._x = Stage.width / 2;
Orb._y = Stage.height / 2;
a = 11;
while (a <= 55) {
TileArray[a].Triggered = false;
TileArray[a].Light = 1;
TileArray[a].Col = 1;
TileArray[a].TranObj.setTransform(LightColor);
a++;
}
TileArray[33].Triggered = true;
MenuFader.gotoAndPlay("FadeOut");
CurrentLevel = Level;
TilesLeft = 0;
if (Level == 1) {
Tutorial.gotoAndPlay("Begin");
Shape = "Plus";
Moves = 1;
a = 11;
while (a <= 55) {
if ((((a == 22) || (a == 31)) || (a == 33)) || (a == 42)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 2) {
Shape = "Plus";
Moves = 4;
a = 11;
while (a <= 55) {
if ((((((a == 13) || (a == 22)) || (a == 24)) || (a == 42)) || (a == 53)) || (a == 44)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 3) {
Shape = "Plus";
Moves = 4;
a = 11;
while (a <= 55) {
if ((((((((a == 12) || (a == 13)) || (a == 24)) || (a == 34)) || (a == 43)) || (a == 42)) || (a == 31)) || (a == 21)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 4) {
Shape = "Plus";
Moves = 4;
a = 11;
while (a <= 55) {
if (((((a == 11) || (a == 23)) || (a == 33)) || (a == 32)) || (a == 42)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 5) {
Shape = "Plus";
Moves = 4;
a = 11;
while (a <= 55) {
if ((((((((a == 25) || (a == 35)) || (a == 55)) || (a == 54)) || (a == 53)) || (a == 43)) || (a == 33)) || (a == 42)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 6) {
Shape = "X";
Moves = 4;
a = 11;
while (a <= 55) {
if (((((((a >= 22) && (a <= 25)) || (a == 32)) || (a == 35)) || (a == 42)) || (a == 45)) || ((a >= 52) && (a <= 55))) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 7) {
Shape = "X";
Moves = 8;
a = 11;
while (a <= 55) {
if (((((a != 15) && (a != 24)) && (a != 33)) && (a != 42)) && (a != 51)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 8) {
Shape = "X";
Moves = 5;
a = 11;
while (a <= 55) {
if (((((((((((a == 13) || (a == 15)) || (a == 23)) || (a == 24)) || (a == 25)) || (a == 34)) || (a == 43)) || (a == 44)) || (a == 45)) || (a == 53)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 9) {
Shape = "X";
Moves = 6;
a = 11;
while (a <= 55) {
if ((((((((((((((a == 11) || (a == 12)) || (a == 14)) || (a == 15)) || (a == 21)) || (a == 23)) || (a == 25)) || (a == 31)) || (a == 33)) || (a == 35)) || (a == 41)) || (a == 42)) || (a == 44)) || (a == 45)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 10) {
Shape = "Plus";
Moves = 7;
a = 11;
while (a <= 55) {
if ((((((((((a == 15) || (a == 22)) || (a == 23)) || (a == 31)) || (a == 32)) || (a == 34)) || (a == 35)) || (a == 42)) || (a == 43)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 11) {
Shape = "Plus";
Moves = 12;
a = 11;
while (a <= 55) {
if (((((((((((((a == 12) || (a == 15)) || (a == 21)) || (a == 22)) || (a == 25)) || (a == 31)) || (a == 32)) || (a == 35)) || (a == 41)) || (a == 42)) || (a == 45)) || (a == 52)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 12) {
Shape = "Plus";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((a == 13) || (a == 31)) || (a == 35)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 13) {
Shape = "Plus";
Moves = 8;
a = 11;
while (a <= 55) {
if (((((((a == 13) || (a == 22)) || (a == 24)) || (a == 33)) || (a == 44)) || (a == 53)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 14) {
Shape = "X";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((((a == 11) || (a == 13)) || (a == 33)) || (a == 35)) || (a == 51)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 15) {
Shape = "X";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((((((((a == 11) || (a == 13)) || (a == 22)) || (a == 24)) || (a == 31)) || (a == 33)) || (a == 42)) || (a == 44)) || (a == 51)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 16) {
Shape = "SwitchA";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((((((((a == 22) || (a == 23)) || (a == 24)) || (a == 31)) || (a == 32)) || (a == 34)) || (a == 35)) || (a == 42)) || (a == 43)) || (a == 44)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 17) {
Shape = "SwitchA";
Moves = 7;
a = 11;
while (a <= 55) {
if (((((((a == 11) || (a == 13)) || (a == 15)) || (a == 21)) || (a == 22)) || (a == 32)) || (a == 34)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 18) {
Shape = "SwitchB";
Moves = 7;
a = 11;
while (a <= 55) {
if ((((((a == 21) || (a == 24)) || (a == 32)) || (a == 33)) || (a == 42)) || (a == 44)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 19) {
Shape = "Plus";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((((a == 24) || (a == 25)) || (a == 42)) || (a == 45)) || (a == 52)) || (a == 54)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 20) {
Shape = "Plus";
Moves = 10;
a = 11;
while (a <= 55) {
if (((((((((((((a == 12) || (a == 13)) || (a == 14)) || (a == 22)) || (a == 25)) || (a == 32)) || (a == 33)) || (a == 35)) || (a == 42)) || (a == 45)) || (a == 52)) || (a == 53)) || (a == 54)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 21) {
Shape = "Plus";
Moves = 7;
a = 11;
while (a <= 55) {
if (((((((((((((a == 11) || (a == 12)) || (a == 21)) || (a == 22)) || (a == 24)) || (a == 31)) || (a == 32)) || (a == 33)) || (a == 34)) || (a == 41)) || (a == 44)) || (a == 52)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 22) {
Shape = "SwitchB";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((a == 13) || (a == 15)) || (a == 24)) || (a == 31)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 23) {
Shape = "SwitchB";
Moves = 8;
a = 11;
while (a <= 55) {
if (((((((((((a == 13) || (a == 22)) || (a == 23)) || (a == 24)) || (a == 31)) || (a == 32)) || (a == 33)) || (a == 42)) || (a == 43)) || (a == 44)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 24) {
Shape = "X";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((((a == 11) || (a == 15)) || (a == 31)) || (a == 42)) || (a == 53)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 25) {
Shape = "X";
Moves = 5;
a = 11;
while (a <= 55) {
if ((((((a == 12) || (a == 13)) || (a == 14)) || (a == 31)) || (a == 33)) || (a == 34)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 26) {
Shape = "SwitchA";
Moves = 6;
a = 11;
while (a <= 55) {
if ((((a == 21) || (a == 33)) || (a == 41)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 27) {
Shape = "O";
Moves = 9;
a = 11;
while (a <= 55) {
if (((((((((a == 11) || (a == 13)) || (a == 15)) || (a == 21)) || (a == 25)) || (a == 33)) || (a == 42)) || (a == 43)) || (a == 44)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 28) {
Shape = "O";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((((((a == 11) || (a == 13)) || (a == 15)) || (a == 31)) || (a == 35)) || (a == 51)) || (a == 53)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 29) {
Shape = "SwitchA";
Moves = 8;
a = 11;
while (a <= 55) {
if ((((a == 12) || (a == 24)) || (a == 41)) || (a == 42)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 30) {
Shape = "Plus";
Moves = 12;
a = 11;
while (a <= 55) {
if (((((((a == 13) || (a == 22)) || (a == 25)) || (a == 32)) || (a == 44)) || (a == 45)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 31) {
Shape = "O";
Moves = 8;
a = 11;
while (a <= 55) {
if (((((((((a == 12) || (a == 13)) || (a == 14)) || (a == 22)) || (a == 24)) || (a == 33)) || (a == 35)) || (a == 44)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 32) {
Shape = "SwitchB";
Moves = 12;
a = 11;
while (a <= 55) {
if (((((((((((a == 12) || (a == 13)) || (a == 15)) || (a == 21)) || (a == 23)) || (a == 24)) || (a == 25)) || (a == 32)) || (a == 41)) || (a == 42)) || (a == 51)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 33) {
Shape = "X";
Moves = 8;
a = 11;
while (a <= 55) {
if (((((a == 22) || (a == 24)) || (a == 31)) || (a == 32)) || (a == 43)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 34) {
Shape = "X";
Moves = 8;
a = 11;
while (a <= 55) {
if (((((a == 11) || (a == 14)) || (a == 21)) || (a == 24)) || ((a >= 32) && (a <= 35))) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 35) {
Shape = "X";
Moves = 14;
a = 11;
while (a <= 55) {
if ((((((((((((a == 11) || (a == 22)) || (a == 23)) || (a == 25)) || (a == 31)) || (a == 33)) || (a == 34)) || (a == 35)) || (a == 42)) || (a == 43)) || (a == 45)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 36) {
Shape = "X";
Moves = 9;
a = 11;
while (a <= 55) {
if ((((((a == 12) || (a == 24)) || (a == 32)) || (a == 35)) || (a == 45)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 37) {
Shape = "O";
Moves = 9;
a = 11;
while (a <= 55) {
if (((((((((((((a == 11) || (a == 12)) || (a == 21)) || (a == 22)) || (a == 25)) || (a == 33)) || (a == 34)) || (a == 35)) || (a == 41)) || (a == 42)) || (a == 45)) || (a == 51)) || (a == 52)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 38) {
Shape = "Plus";
Moves = 12;
a = 11;
while (a <= 55) {
if (((((((((a == 21) || (a == 22)) || (a == 25)) || (a == 34)) || (a == 35)) || (a == 41)) || (a == 44)) || (a == 52)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 39) {
Shape = "Plus";
Moves = 9;
a = 11;
while (a <= 55) {
if ((((((((((((((a == 13) || (a == 14)) || (a == 15)) || (a == 22)) || (a == 23)) || (a == 25)) || (a == 33)) || (a == 35)) || (a == 43)) || (a == 44)) || (a == 45)) || (a == 53)) || (a == 54)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 40) {
Shape = "SwitchA";
Moves = 16;
a = 11;
while (a <= 55) {
if (((((((((a == 12) || (a == 15)) || (a == 21)) || (a == 22)) || (a == 23)) || (a == 31)) || (a == 34)) || ((a >= 41) && (a <= 44))) || (a == 52)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 41) {
Shape = "SwitchA";
Moves = 12;
a = 11;
while (a <= 55) {
if (((((((a == 11) || (a == 14)) || ((a >= 22) && (a <= 25))) || (a == 32)) || (a == 33)) || ((a >= 43) && (a <= 45))) || (a == 54)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 42) {
Shape = "SwitchA";
Moves = 9;
a = 11;
while (a <= 55) {
if (((((((((a == 12) || (a == 23)) || (a == 24)) || (a == 33)) || (a == 34)) || (a == 35)) || (a == 43)) || (a == 44)) || (a == 52)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 43) {
Shape = "O";
Moves = 9;
a = 11;
while (a <= 55) {
if ((((((((((((a >= 12) && (a <= 14)) || (a == 21)) || (a == 22)) || (a == 24)) || (a == 25)) || ((a >= 33) && (a <= 35))) || (a == 41)) || (a == 42)) || (a == 44)) || (a == 45)) || ((a >= 52) && (a <= 54))) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 44) {
Shape = "SwitchB";
Moves = 6;
a = 11;
while (a <= 55) {
if (((((a == 33) || (a == 42)) || (a == 45)) || (a == 51)) || (a == 52)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 45) {
Shape = "Plus";
Moves = 12;
a = 11;
while (a <= 55) {
if ((((((((a == 12) || (a == 22)) || (a == 24)) || (a == 32)) || (a == 34)) || (a == 42)) || (a == 44)) || (a == 45)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 46) {
Shape = "Plus";
Moves = 14;
a = 11;
while (a <= 55) {
if ((((((a >= 22) && (a <= 24)) || ((a >= 32) && (a <= 34))) || (a == 41)) || (a == 45)) || (a == 53)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 47) {
Shape = "X";
Moves = 10;
a = 11;
while (a <= 55) {
if (((((((((((a >= 11) && (a <= 15)) || (a == 22)) || (a == 24)) || (a == 31)) || (a == 33)) || (a == 35)) || (a == 41)) || (a == 43)) || (a == 45)) || ((a >= 52) && (a <= 54))) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 48) {
Shape = "O";
Moves = 12;
a = 11;
while (a <= 55) {
if (((((((((((a == 21) || (a == 23)) || (a == 25)) || (a == 31)) || (a == 32)) || (a == 34)) || (a == 35)) || (a == 51)) || (a == 52)) || (a == 54)) || (a == 55)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 49) {
Shape = "Plus";
Moves = 13;
a = 11;
while (a <= 55) {
if (((((((a == 13) || ((a >= 22) && (a <= 24))) || (a == 31)) || (a == 33)) || (a == 35)) || (a == 52)) || (a == 54)) {
TileArray[a].Light = -1;
}
a++;
}
}
if (Level == 50) {
Shape = "SwitchA";
Moves = 20;
a = 11;
while (a <= 55) {
if (((((((a == 13) || ((a >= 21) && (a <= 25))) || ((a >= 32) && (a <= 34))) || (a == 41)) || (a == 45)) || (a == 52)) || (a == 54)) {
TileArray[a].Light = -1;
}
a++;
}
}
NextMoves = Moves;
ShapeMove.ShapeGraphic.gotoAndStop(Shape);
Ready = true;
}
function Complete(Level) {
MenuFader.gotoAndPlay("FadeIn");
LevelsCompleted[Level] = true;
if (MaxLevel < (CurrentLevel + 2)) {
MaxLevel = CurrentLevel + 2;
}
Ready = false;
CurrentLevel = 0;
BlueSave.data.MLev = MaxLevel;
BlueSave.data.LevComp = LevelsCompleted;
BlueSave.flush();
}
function Fail(Level) {
MenuFader.gotoAndPlay("FadeIn");
Ready = false;
CurrentLevel = 0;
}
function Trigger(Tile) {
TileSound.start();
Temp = Number(Tile._name);
if (isNaN(Temp)) {
Temp = Tile;
}
if (Shape == "Plus") {
TileArray[Temp - 1].Light = TileArray[Temp - 1].Light * -1;
TileArray[Temp + 1].Light = TileArray[Temp + 1].Light * -1;
TileArray[Temp - 10].Light = TileArray[Temp - 10].Light * -1;
TileArray[Temp + 10].Light = TileArray[Temp + 10].Light * -1;
}
if (Shape == "X") {
TileArray[Temp - 11].Light = TileArray[Temp - 11].Light * -1;
TileArray[Temp + 11].Light = TileArray[Temp + 11].Light * -1;
TileArray[Temp - 9].Light = TileArray[Temp - 9].Light * -1;
TileArray[Temp + 9].Light = TileArray[Temp + 9].Light * -1;
TileArray[Temp].Light = TileArray[Temp].Light * -1;
}
if (Shape == "SwitchA") {
TileArray[Temp - 1].Light = TileArray[Temp - 1].Light * -1;
TileArray[Temp + 1].Light = TileArray[Temp + 1].Light * -1;
TileArray[Temp].Light = TileArray[Temp].Light * -1;
Shape = "SwitchB";
} else if (Shape == "SwitchB") {
TileArray[Temp - 10].Light = TileArray[Temp - 10].Light * -1;
TileArray[Temp + 10].Light = TileArray[Temp + 10].Light * -1;
TileArray[Temp].Light = TileArray[Temp].Light * -1;
Shape = "SwitchA";
}
if (Shape == "O") {
TileArray[Temp - 11].Light = TileArray[Temp - 11].Light * -1;
TileArray[Temp + 11].Light = TileArray[Temp + 11].Light * -1;
TileArray[Temp - 9].Light = TileArray[Temp - 9].Light * -1;
TileArray[Temp + 9].Light = TileArray[Temp + 9].Light * -1;
TileArray[Temp - 1].Light = TileArray[Temp - 1].Light * -1;
TileArray[Temp + 1].Light = TileArray[Temp + 1].Light * -1;
TileArray[Temp - 10].Light = TileArray[Temp - 10].Light * -1;
TileArray[Temp + 10].Light = TileArray[Temp + 10].Light * -1;
}
ShapeMove.ShapeGraphic.gotoAndStop(Shape);
}
function GenLevel(Diff) {
Orb._x = Stage.width / 2;
Orb._y = Stage.height / 2;
a = 11;
while (a <= 55) {
TileArray[a].Triggered = false;
TileArray[a].Light = 1;
TileArray[a].Col = 1;
TileArray[a].TranObj.setTransform(LightColor);
a++;
}
TileArray[33].Triggered = true;
TilesLeft = 0;
a = Math.ceil(Math.random() * 4);
RetryArray[1] = a;
switch (a) {
case 1 :
Shape = "Plus";
break;
case 2 :
Shape = "X";
break;
case 3 :
Shape = "SwitchA";
break;
case 4 :
Shape = "O";
}
switch (Diff) {
case "Easy" :
Moves = 3 + Math.round(Math.random() * 3);
break;
case "Medium" :
Moves = 7 + Math.round(Math.random() * 3);
break;
case "Hard" :
Moves = 11 + Math.round(Math.random() * 3);
break;
case "Master" :
Moves = 15 + Math.round(Math.random() * 3);
}
RetryArray[2] = Moves;
c = 33;
a = 1;
while (a <= Moves) {
b = Math.ceil(Math.random() * 4);
RetryArray[a + 2] = b;
if (MoveArray[2] != b) {
switch (b) {
case 1 :
if (c > 20) {
c = c - 10;
} else {
c = c + 10;
}
break;
case 2 :
if (c < 50) {
c = c + 10;
} else {
c = c - 10;
}
break;
case 3 :
if (((((c != 11) && (c != 21)) && (c != 31)) && (c != 41)) && (c != 51)) {
c = c - 1;
} else {
c = c + 1;
}
break;
case 4 :
if (((((c != 15) && (c != 25)) && (c != 35)) && (c != 45)) && (c != 55)) {
c = c + 1;
} else {
c = c - 1;
}
}
MoveArray[2] = MoveArray[1];
MoveArray[1] = b;
Trigger(c);
} else {
a--;
}
a++;
}
if (Shape == "SwitchB") {
Shape = "SwitchA";
}
BlueSave.data.Retry = RetryArray;
BlueSave.flush();
NextMoves = Moves;
ShapeMove.ShapeGraphic.gotoAndStop(Shape);
Ready = true;
MenuFader.gotoAndPlay("FadeOut");
}
function Retry() {
Orb._x = Stage.width / 2;
Orb._y = Stage.height / 2;
a = 11;
while (a <= 55) {
TileArray[a].Triggered = false;
TileArray[a].Light = 1;
TileArray[a].Col = 1;
TileArray[a].TranObj.setTransform(LightColor);
a++;
}
TileArray[33].Triggered = true;
TilesLeft = 0;
a = RetryArray[1];
switch (a) {
case 1 :
Shape = "Plus";
break;
case 2 :
Shape = "X";
break;
case 3 :
Shape = "SwitchA";
break;
case 4 :
Shape = "O";
}
Moves = RetryArray[2];
c = 33;
a = 1;
while (a <= Moves) {
b = RetryArray[a + 2];
switch (b) {
case 1 :
if (c > 20) {
c = c - 10;
} else {
c = c + 10;
}
break;
case 2 :
if (c < 50) {
c = c + 10;
} else {
c = c - 10;
}
break;
case 3 :
if (((((c != 11) && (c != 21)) && (c != 31)) && (c != 41)) && (c != 51)) {
c = c - 1;
} else {
c = c + 1;
}
break;
case 4 :
if (((((c != 15) && (c != 25)) && (c != 35)) && (c != 45)) && (c != 55)) {
c = c + 1;
} else {
c = c - 1;
}
}
Trigger(c);
a++;
}
if (Shape == "SwitchB") {
Shape = "SwitchA";
}
NextMoves = Moves;
ShapeMove.ShapeGraphic.gotoAndStop(Shape);
Ready = true;
MenuFader.gotoAndPlay("FadeOut");
}
if (Mode == "Game") {
MenuFader.GameMenu.gotoAndStop("Menu");
}
if (Mode == "Gen") {
MenuFader.GameMenu.gotoAndStop("Generator");
}
Frame 7
if (Moves < 0) {
MovesText.text = "0";
} else {
MovesText.text = Moves;
}
if (Ready == true) {
if (TilesLeft == 0) {
if (DoubleCheck == "Complete") {
Complete(CurrentLevel);
TilesLeft = -1;
Moves = -1;
} else {
DoubleCheck = "Complete";
}
} else if (Moves == 0) {
if (DoubleCheck == "Fail") {
Fail(CurrentLevel);
TilesLeft = -1;
Moves = -1;
} else {
DoubleCheck = "Fail";
}
}
}
Moves = NextMoves;
if (Key.isDown(83)) {
Tutorial.gotoAndStop("Stop");
Orb.Disabled = false;
}
Frame 8
if (Fading == false) {
gotoAndPlay ("GameMain");
} else {
stop();
}
Symbol 5 MovieClip [LogoParticle] Frame 81
this.swapDepths(0);
this.removeMovieClip();
Symbol 8 MovieClip [Glowz] Frame 13
this.swapDepths();
this.removeMovieClip();
Symbol 137 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 10 Button
on (release) {
getURL ("http://www.Particlasm.com/", "_blank");
}
Symbol 16 MovieClip Frame 10
stop();
Symbol 21 MovieClip Frame 10
stop();
Symbol 26 MovieClip Frame 10
stop();
Symbol 31 MovieClip Frame 10
stop();
Symbol 36 MovieClip Frame 10
stop();
Symbol 41 MovieClip Frame 10
stop();
Symbol 46 MovieClip Frame 10
stop();
Symbol 51 MovieClip Frame 10
stop();
Symbol 56 MovieClip Frame 10
stop();
Symbol 59 MovieClip Frame 20
stop();
Symbol 60 MovieClip Frame 1
_root.stop();
var PTC;
var a;
var CurrentItem;
var Rand;
var Rand2;
var LogoSound = new Sound();
LogoSound.attachSound("LogoSound");
Symbol 60 MovieClip Frame 5
CurrentItem = LogoP;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 9
CurrentItem = LogoC;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 13
CurrentItem = LogoR;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 17
CurrentItem = LogoT;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 21
CurrentItem = LogoI;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 25
CurrentItem = LogoA;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 29
CurrentItem = LogoM;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 33
CurrentItem = LogoA2;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 37
CurrentItem = LogoS;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 41
CurrentItem = LogoL;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 60 MovieClip Frame 131
stop();
_root.play();
Symbol 71 Button
on (release) {
_root.Mode = "Game";
_root.Fading = true;
_root.MainFader.Frm = "GameLoad";
_root.MainFader.gotoAndPlay("FadeIn");
}
Symbol 75 Button
on (release) {
_root.Mode = "Gen";
_root.Fading = true;
_root.MainFader.Frm = "GameLoad";
_root.MainFader.gotoAndPlay("FadeIn");
}
Symbol 79 MovieClip Frame 1
var Frm = "none";
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 47
_root.gotoAndPlay(Frm);
_root.Fading = false;
Symbol 79 MovieClip Frame 93
gotoAndStop ("Blank");
Symbol 80 Button
on (release) {
this.gotoAndPlay("Begin");
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
if (_root.CurrentLevel == 1) {
_root.Orb.Disabled = true;
}
Symbol 89 MovieClip Frame 360
if (_root.CurrentLevel == 1) {
_root.ShapeMove.gotoAndPlay("Tutorial");
}
Symbol 89 MovieClip Frame 575
if (_root.CurrentLevel == 1) {
_root.Orb.Disabled = false;
_root.ArrowKeys.gotoAndPlay("Fade");
}
Symbol 89 MovieClip Frame 845
if (_root.CurrentLevel != 1) {
gotoAndStop ("Stop");
}
Symbol 96 MovieClip Frame 1
function Glowzorz() {
PTC = _root.Particles.attachMovie("Glowz", _root.Particles.getNextHighestDepth(), _root.Particles.getNextHighestDepth());
PTC._x = this._x;
PTC._y = this._y;
}
var Triggered = false;
var Col = 1;
var Light = 1;
var TranObj = new Color(this.Tilez);
this._parent.TileArray[this._name] = this;
var PTC;
Symbol 96 MovieClip Frame 2
if (_root.Ready == true) {
if (this.hitTest(_root.Orb.HitCircle) && (Triggered == false)) {
Triggered = true;
this._parent.Trigger(this);
_root.NextMoves = _root.Moves - 1;
}
if (!this.hitTest(_root.Orb.HitCircle)) {
Triggered = false;
}
}
if ((Light == -1) && (Col == 1)) {
TranObj.setTransform(_root.DarkColor);
Col = -1;
_root.TilesLeft++;
Glowzorz();
}
if ((Light == 1) && (Col == -1)) {
TranObj.setTransform(_root.LightColor);
Col = 1;
_root.TilesLeft--;
Glowzorz();
}
Symbol 96 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 102 MovieClip Frame 1
var X = 0;
var Y = 0;
var Disabled = false;
Symbol 102 MovieClip Frame 2
if ((_root.Ready == true) && (Disabled == false)) {
if (Key.isDown(38) && (Y > -4)) {
Y = Y - 0.5;
}
if (Key.isDown(40) && (Y < 4)) {
Y = Y + 0.5;
}
if (Key.isDown(37) && (X > -4)) {
X = X - 0.5;
}
if (Key.isDown(39) && (X < 4)) {
X = X + 0.5;
}
}
if ((!(Key.isDown(38) || (Key.isDown(40)))) || (_root.Ready == false)) {
if ((Y < 0) || (Y > 0)) {
Y = Y - ((Math.abs(Y) / Y) / 2);
}
}
if ((!(Key.isDown(37) || (Key.isDown(39)))) || (_root.Ready == false)) {
if ((X < 0) || (X > 0)) {
X = X - ((Math.abs(X) / X) / 2);
}
}
if ((this._x < (((Stage.width / 2) - (this._parent.Grout._width / 2)) + 26)) && (X < 0)) {
X = 0;
}
if ((this._x > (((Stage.width / 2) + (this._parent.Grout._width / 2)) - 26)) && (X > 0)) {
X = 0;
}
if ((this._y < (((Stage.height / 2) - (this._parent.Grout._height / 2)) + 23)) && (Y < 0)) {
Y = 0;
}
if ((this._y > (((Stage.height / 2) + (this._parent.Grout._height / 2)) - 22)) && (Y > 0)) {
Y = 0;
}
this._x = this._x + X;
this._y = this._y + Y;
Symbol 102 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 110 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) {
_root.NewLevel(this.ID);
}
Symbol 118 MovieClip Frame 2
LevelText.text = ID;
if (_root.MaxLevel >= ID) {
LevelText._visible = true;
this._alpha = 100;
Butt.enabled = true;
Glow._visible = false;
} else {
LevelText._visible = false;
this._alpha = 25;
Butt.enabled = false;
Glow._visible = false;
}
if (_root.LevelsCompleted[ID] == true) {
Glow._visible = true;
}
Symbol 118 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 119 Button
on (release) {
_root.Fading = true;
_root.MainFader.Frm = "MainMain";
_root.MainFader.gotoAndPlay("FadeIn");
}
Symbol 123 Button
on (release) {
if (_root.RetryArray[1] != undefined) {
_root.Retry();
}
}
Symbol 125 Button
on (release) {
_root.GenLevel("Medium");
}
Symbol 127 Button
on (release) {
_root.GenLevel("Easy");
}
Symbol 129 Button
on (release) {
_root.GenLevel("Master");
}
Symbol 131 Button
on (release) {
_root.GenLevel("Hard");
}
Symbol 133 MovieClip Frame 1
stop();
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 50;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 40;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 30;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 20;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 10;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 49;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 39;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 29;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 19;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 9;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 48;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 38;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 28;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 18;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 8;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 47;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 37;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 27;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 17;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 7;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 46;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 36;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 26;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 16;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 6;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 45;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 35;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 25;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 15;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 5;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 44;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 34;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 24;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 14;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 4;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 43;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 33;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 23;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 13;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 3;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 42;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 32;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 22;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 12;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 2;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 41;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 31;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 21;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 11;
}
Instance of Symbol 118 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
var ID = 1;
}
Symbol 133 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
Symbol 134 MovieClip Frame 53
stop();
Symbol 134 MovieClip Frame 104
gotoAndPlay ("Menu");
Symbol 135 Button
on (release) {
if (Ready == true) {
Fail(CurrentLevel);
TilesLeft = -1;
Moves = -1;
}
}