STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

A
Very
Merry Christmas!


<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/11437470?noj=FRM11437470-23DC" width="1" height="1"></div>

Gravity Grid.swf

This is the info page for
Flash #47375

(Click the ID number above for more basic data on this flash file.)


Text
100%

LEVEL 1

DEVELOPED BY
MINDLESS-GAMES

ActionScript [AS1/AS2]

Frame 1
function onEnterFrame() { PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = Math.round(PercentLoaded); playBttn.percent.text = bar._xscale + "%"; } else { bar._xscale = 100; playBttn.percent.text = "100%"; playBttn._visible = true; playBttn.play(); delete onEnterFrame; } } stop(); Stage.showMenu = false; playBttn._visible = false; var backSound = false; var gameSound = false; bgSound = new Sound(); saved = SharedObject.getLocal("gravitysgrid"); var i = 2; while (i <= 30) { if (saved.data["lvl" + i] == undefined) { saved.data["lvl" + i] = 2; } i++; } if (saved.data.currLevel == undefined) { saved.data.currLevel = 1; } if (saved.data.currLevel == 1) { saved.data.sc = "START"; } else { saved.data.sc = "CONTINUE"; } var level1_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0;1:end>"; var level2_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,1,2,1,1,0,0,0;1:end>"; var level3_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,2,0,0,0,0,0,0,1,2,1,0,0,0,0;1:end>"; var level4_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,1,1,0,0;2:end>"; var level5_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,2,0,0,0,0,0,0,0,3,3,0,0,0,3,0,0,1,2,2,0,0,0;2:end>"; var level6_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,0,2,0,0,0,1,3,0,0,0,2,0,0,0,3,1,2,0,0;2:end>"; var level7_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,2,0,3,2,0,0,0,0,0,1,3,1,2,0,0,1,0;3:end>"; var level8_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,3,0,1,0,0,0,0,1,3,2,3,1,0,0;3:end>"; var level9_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,4,0,3,1,4,2,0,0,0,2,0,4,2,1,1,0,0,0;2:end>"; var level10_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,3,2,0,0,0,0,0,0,1,5,2,0,0,0,0,0,0,5,4,3,0,0,0,0,2,4,5,4,3,0,0,0;2:end>"; var level11_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,1,2,1,1,2,0,0;4:end>"; var level12_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,3,1,2,2,0,3,0;6:end>"; var level13_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,3,0,0,3,7,0,1,0,0,7,0,0,1,7,0,7,0,0,7,3,0;2:end>"; var level14_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,3,2,3,0,0,0,0,7,3,1,1,2,2,0,0;3:end>"; var level15_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,1,0,2,7,2,0,0,0,1,7,0,7,1,7,0,0,0;2:end>"; var level16_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,4,0,3,0,0,0,0,0,0,4,0,7,0,0,0,0,0,0,7,0,4,0,0,0,0,0,0,7,0,2,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,1,1,3,2,0,0,0;5:end>"; var level17_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,1,0,0,0,0,2,7,0,2,1,0,0,0;5:end>"; var level18_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,0,2,4,2,0,7,0,1,0,0,3,2,7,0,3,0,3,0,0,1,7,1,0,7;7:end>"; var level19_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,0,0,0,0,0,3,2,7,0,0,0,0,0,0,2,7,3,3,1,1,0;7:end>"; var level20_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,7,7,0,0,0,0,7,1,1,7,1,7,0,0;3:end>"; var level21_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,1,0,7,0,0,0,4,3,2,4,0,7,0,0,0,3,1,2,1,4,7,0,0;4:end>"; var level22_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,1,1,7,7,0,0,0,0,0,2,7,1,7,0,0,0,0,0,2,7,7,7,0,7;3:end>"; var level23_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,6,2,0,0,0,0,0,0,0,5,3,0,0,0,0,0,0,5,2,4,0,4,0,6,5,0,1,2,1,0,4,6,3,3;5:end>"; var level24_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,4,6,0,0,0,0,0,0,0,1,5,0,0,0,0,0,0,3,4,2,5,0,0,4,0,3,1,2,1,2,3,0,5,0;8:end>"; var level25_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,3,3,2,1,4,3,4,7,2,2,7;4:end>"; var level26_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,7,1,0,0,0,0,0,7,4,2,4,7,0,0,0,7,5,6,3,6,2,7,0,7,5,3,4,5,6,3,2,7;8:end>"; var level27_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,1,5,0,4,0,5,1,2,0,3,2,5,4,0,4,1;7:end>"; var level28_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,7,7,1,0,0,0,0,2,0,7,7,7,1,2,2,0;4:end>"; var level29_code = "<rotect:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,1,0,0,0,0,0,0,0,4,7,2,0,0,0,3,2,2,1,4,1,0,3,3;6:end>"; var level30_code = "<rotect:0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,7,0,0,0,0,0,7,7,0,7,7,0,0,0,7,1,7,7,7,1,7,0;6:end>";
Instance of Symbol 115 MovieClip in Frame 1
onClipEvent (load) { this.swapDepths(999); } onClipEvent (keyDown) { if (Key.isDown(77)) { play(); } }
Frame 30
_root.gotoAndPlay("agintro");
Frame 33
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("8346fb05", this, 10301, true); if (gameSound) { gameSound = false; stopAllSounds(); } if (!backSound) { backSound = true; bgSound.attachSound("menutrack.mp3"); bgSound.start(0, 9999); } if (saved.data.currLevel == 1) { saved.data.sc = "START"; } else { saved.data.sc = "CONTINUE"; }
Frame 119
menu_web.enabled = false;
Frame 132
menu_web.enabled = true; delete onEnterFrame; stop();
Instance of Symbol 189 MovieClip in Frame 132
on (rollOver) { this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (press) { this.gotoAndStop(3); } on (release) { _root.level_code = _root[("level" + _root.saved.data.currLevel) + "_code"]; _root.level = _root.saved.data.currLevel; _root.gotoAndStop("levels"); }
Frame 137
menu_web.enabled = false;
Frame 153
stop();
Frame 154
if (gameSound) { gameSound = false; stopAllSounds(); } if (!backSound) { backSound = true; bgSound.attachSound("menutrack.mp3"); bgSound.start(0, 9999); } if (saved.data.currLevel == 1) { saved.data.sc = "START"; } else { saved.data.sc = "CONTINUE"; }
Frame 176
menu_web.enabled = false;
Frame 189
menu_web.enabled = true; delete onEnterFrame; stop();
Instance of Symbol 189 MovieClip in Frame 189
on (rollOver) { this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (press) { this.gotoAndStop(3); } on (release) { _root.level_code = _root[("level" + _root.saved.data.currLevel) + "_code"]; _root.level = _root.saved.data.currLevel; _root.gotoAndStop("levels"); }
Frame 194
menu_web.enabled = false;
Frame 210
stop();
Frame 211
delete builtLine; var builtLine = new Array(); builtLine[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[7] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; builtLine[8] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; var nogrey = false; var colour = "green"; var colourRed = false; var colourGreen = true; var colourBlue = false; var colourOrange = false; var colourPurple = false; var colourYellow = false; var colourGrey = false; var numbRed = 0; var numbGreen = 0; var numbBlue = 0; var numbOrange = 0; var numbPurple = 0; var numbYellow = 0; var placeX = 0; var placeY = 0; var arrayId = 3; var gridPlace = true; var hitBlock = false; var changeBack = false;
Frame 212
function onMouseDown() { var _local1 = 1; while (_local1 <= id) { if (grid["block" + _local1].hitTest(_xmouse, _ymouse, true)) { switch (Number(grid["block" + _local1].nid)) { case 1 : numbGreen--; if (numbBlue < 3) { colourBlue = true; } else if (numbRed < 3) { colourRed = true; } else if (numbOrange < 3) { colourOrange = true; } else if (numbPurple < 3) { colourPurple = true; } else if (numbYellow < 3) { colourYellow = true; } else { colourGrey = true; } grid["block" + _local1].removeMovieClip(); break; case 2 : numbBlue--; if (numbRed < 3) { colourRed = true; } else if (numbOrange < 3) { colourOrange = true; } else if (numbPurple < 3) { colourPurple = true; } else if (numbYellow < 3) { colourYellow = true; } else { colourGrey = true; } grid["block" + _local1].removeMovieClip(); break; case 3 : numbRed--; if (numbOrange < 3) { colourOrange = true; } else if (numbPurple < 3) { colourPurple = true; } else if (numbYellow < 3) { colourYellow = true; } else { colourGrey = true; } grid["block" + _local1].removeMovieClip(); break; case 4 : numbOrange--; if (numbPurple < 3) { colourPurple = true; } else if (numbYellow < 3) { colourYellow = true; } else { colourGrey = true; } grid["block" + _local1].removeMovieClip(); break; case 5 : numbPurple--; if (numbYellow < 3) { colourYellow = true; } else { colourGrey = true; } grid["block" + _local1].removeMovieClip(); break; case 6 : numbYellow--; colourGrey = true; grid["block" + _local1].removeMovieClip(); break; case 7 : builtLine[grid["block" + _local1].arrayY][grid["block" + _local1].arrayX] = 0; gridPlace = false; nogrey = true; grid["block" + _local1].removeMovieClip(); } hitBlock = true; break; } _local1++; } if (!hitBlock) { if (numbGreen < 3) { colourGreen = true; } else if (numbBlue < 3) { colourBlue = true; } else if (numbRed < 3) { colourRed = true; } else if (numbOrange < 3) { colourOrange = true; } else if (numbPurple < 3) { colourPurple = true; } else if (numbYellow < 3) { colourYellow = true; } else if (!nogrey) { colourGrey = true; } } nogrey = false; hitBlock = false; if (gridHit.hitTest(_xmouse, _ymouse, true)) { if (colourRed) { if (numbRed < 3) { numbRed++; colour = "red"; arrayId = 3; } else { gridPlace = false; } } else if (colourGreen) { if (numbGreen < 3) { numbGreen++; colour = "green"; arrayId = 1; } else { gridPlace = false; } } else if (colourBlue) { if (numbBlue < 3) { numbBlue++; colour = "blue"; arrayId = 2; } else { gridPlace = false; } } else if (colourOrange) { if (numbOrange < 3) { numbOrange++; colour = "orange"; arrayId = 4; } else { gridPlace = false; } } else if (colourPurple) { if (numbPurple < 3) { numbPurple++; colour = "purple"; arrayId = 5; } else { gridPlace = false; } } else if (colourYellow) { if (numbYellow < 3) { numbYellow++; colour = "yellow"; arrayId = 6; } else { gridPlace = false; } } else if (colourGrey) { colour = "grey"; arrayId = 7; } if (gridPlace) { id++; placeX = Math.round(grid._xmouse / 30); placeY = Math.round(grid._ymouse / 30); var _local2 = grid.attachMovie(colour, "block" + id, id); _local2._x = placeX * 30; _local2._y = placeY * 30; _local2.nid = arrayId; _local2.arrayX = placeX + 4; _local2.arrayY = placeY + 4; builtLine[placeY + 4][placeX + 4] = arrayId; } else { gridPlace = true; } } colourRed = false; colourBlue = false; colourGreen = false; colourOrange = false; colourPurple = false; colourYellow = false; colourGrey = false; } function onMouseMove() { if (gridHit.hitTest(_xmouse, _ymouse, true)) { grid.cursor._visible = true; grid.cursor._x = (Math.round(grid._xmouse / 30) * 30) - 15; grid.cursor._y = (Math.round(grid._ymouse / 30) * 30) - 15; } else { grid.cursor._visible = false; } } stop(); var id = 1; grid.cursor.swapDepths(9999999); grid.cursor._visible = false; if (changeBack) { var x = 0; while (x <= 8) { var y = 0; while (y <= 8) { if (builtLine[y][x] == 1) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("green", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 1; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } else if (builtLine[y][x] == 2) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("blue", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 2; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } else if (builtLine[y][x] == 3) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("red", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 3; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } else if (builtLine[y][x] == 4) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("orange", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 4; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } else if (builtLine[y][x] == 5) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("purple", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 5; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } else if (builtLine[y][x] == 6) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("yellow", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 6; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } else if (builtLine[y][x] == 7) { id++; placeX = x - 4; placeY = y - 4; var nest = grid.attachMovie("grey", "block" + id, id); nest._x = placeX * 30; nest._y = placeY * 30; nest.nid = 7; nest.arrayX = placeX + 4; nest.arrayY = placeY + 4; } y++; } x++; } }
Frame 213
function goClockFunc() { movesLeft++; goClock = true; goRot = grid._rotation + 90; if (goRot > 180) { goRot = -180 + (goRot - 180); grid._rotation = grid._rotation + 5; } if (gridDir == "down") { gridDir = "left"; } else if (gridDir == "left") { gridDir = "up"; } else if (gridDir == "up") { gridDir = "right"; } else if (gridDir == "right") { gridDir = "down"; } } function goAntiFunc() { movesLeft++; goAntiClock = true; goRot = grid._rotation - 90; if (goRot < -180) { goRot = 180 - ((-goRot) - 180); grid._rotation = grid._rotation - 5; } if (gridDir == "down") { gridDir = "right"; } else if (gridDir == "right") { gridDir = "up"; } else if (gridDir == "up") { gridDir = "left"; } else if (gridDir == "left") { gridDir = "down"; } } function onMouseDown() { if (grid.drag.hitTest(_xmouse, _ymouse, true)) { dragGrid = true; } } function onMouseUp() { dragGrid = false; } function onMouseMove() { if ((((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) && (dragGrid)) { if (_xmouse < 275) { if (_ymouse < 230) { if (_ymouse < (prevY - 5)) { goClockFunc(); } else if (_ymouse > (prevY + 5)) { goAntiFunc(); } if (_xmouse < (prevX - 5)) { goAntiFunc(); } else if (_xmouse > (prevX + 5)) { goClockFunc(); } } else { if (_ymouse < (prevY - 5)) { goClockFunc(); } else if (_ymouse > (prevY + 5)) { goAntiFunc(); } if (_xmouse < (prevX - 5)) { goClockFunc(); } else if (_xmouse > (prevX + 5)) { goAntiFunc(); } } } else if (_ymouse < 230) { if (_ymouse < (prevY - 5)) { goAntiFunc(); } else if (_ymouse > (prevY + 5)) { goClockFunc(); } if (_xmouse < (prevX - 5)) { goAntiFunc(); } else if (_xmouse > (prevX + 5)) { goClockFunc(); } } else { if (_ymouse < (prevY - 5)) { goAntiFunc(); } else if (_ymouse > (prevY + 5)) { goClockFunc(); } if (_xmouse < (prevX - 5)) { goClockFunc(); } else if (_xmouse > (prevX + 5)) { goAntiFunc(); } } } prevX = _xmouse; prevY = _ymouse; } function onEnterFrame() { if (movesLeft > 23) { moves_mc.gotoAndStop(25); moves_mc.brackets.text = ("(" + (movesLeft - 23)) + ")"; } else { moves_mc.gotoAndStop(movesLeft + 1); } if (goClock) { if (grid._rotation < goRot) { grid._rotation = grid._rotation + 5; } else { moveBlocks = true; goClock = false; } } else if (goAntiClock) { if (grid._rotation > goRot) { grid._rotation = grid._rotation - 5; } else { moveBlocks = true; goAntiClock = false; } } else if (goFlip) { if (changeScaleX) { if (grid._xscale <= goScale) { if (grid._xscale == goScale) { moveBlocks = true; changeScaleX = false; goFlip = false; } else { grid._xscale = grid._xscale + 5; } } else if (grid._xscale == goScale) { moveBlocks = true; changeScaleX = false; goFlip = false; } else { grid._xscale = grid._xscale - 5; } } else if (grid._yscale <= goScale) { if (grid._yscale == goScale) { moveBlocks = true; changeScaleY = false; goFlip = false; } else { grid._yscale = grid._yscale + 5; } } else if (grid._yscale == goScale) { moveBlocks = true; changeScaleY = false; goFlip = false; } else { grid._yscale = grid._yscale - 5; } } else if (moveBlocks) { if ((gridScaledX || (gridScaledY)) && (!(gridScaledX && (gridScaledY)))) { if (gridDir == "right") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._x = grid["block" + _local3]._x + 5; while (grid.edge.hitTest(grid["block" + _local3]._y + gridX, (grid["block" + _local3]._x + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._x--; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest(grid["block" + _local3]._y + gridX, (grid["block" + _local3]._x + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._x--; } _local1++; } _local3++; } } else if (gridDir == "up") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._y = grid["block" + _local3]._y - 5; while (grid.edge.hitTest(grid["block" + _local3]._x + gridX, ((-grid["block" + _local3]._y) + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._y++; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest(grid["block" + _local3]._x + gridX, ((-grid["block" + _local3]._y) + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._y++; } _local1++; } _local3++; } } else if (gridDir == "left") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._x = grid["block" + _local3]._x - 5; while (grid.edge.hitTest((-grid["block" + _local3]._y) + gridX, ((-grid["block" + _local3]._x) + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._x++; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest((-grid["block" + _local3]._y) + gridX, ((-grid["block" + _local3]._x) + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._x++; } _local1++; } _local3++; } } else if (gridDir == "down") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._y = grid["block" + _local3]._y + 5; while (grid.edge.hitTest((-grid["block" + _local3]._x) + gridX, (grid["block" + _local3]._y + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._y--; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest((-grid["block" + _local3]._x) + gridX, (grid["block" + _local3]._y + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._y--; } _local1++; } _local3++; } } } else if (gridDir == "left") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._x = grid["block" + _local3]._x + 5; while (grid.edge.hitTest((-grid["block" + _local3]._y) + gridX, (grid["block" + _local3]._x + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._x--; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest((-grid["block" + _local3]._y) + gridX, (grid["block" + _local3]._x + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._x--; } _local1++; } _local3++; } } else if (gridDir == "up") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._y = grid["block" + _local3]._y - 5; while (grid.edge.hitTest((-grid["block" + _local3]._x) + gridX, ((-grid["block" + _local3]._y) + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._y++; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest((-grid["block" + _local3]._x) + gridX, ((-grid["block" + _local3]._y) + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._y++; } _local1++; } _local3++; } } else if (gridDir == "right") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._x = grid["block" + _local3]._x - 5; while (grid.edge.hitTest(grid["block" + _local3]._y + gridX, ((-grid["block" + _local3]._x) + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._x++; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest(grid["block" + _local3]._y + gridX, ((-grid["block" + _local3]._x) + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._x++; } _local1++; } _local3++; } } else if (gridDir == "down") { var _local3 = 1; while (_local3 <= id) { grid["block" + _local3]._y = grid["block" + _local3]._y + 5; while (grid.edge.hitTest(grid["block" + _local3]._x + gridX, (grid["block" + _local3]._y + gridY) + 14, true)) { grid["block" + _local3].hit = true; grid["block" + _local3]._y--; } var _local1 = 1; while (_local1 <= id) { while (grid["block" + _local1].hitTest(grid["block" + _local3]._x + gridX, (grid["block" + _local3]._y + gridY) + 14, true) && (grid["block" + _local3] != grid["block" + _local1])) { grid["block" + _local3].hit = true; grid["block" + _local3]._y--; } _local1++; } _local3++; } } var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].hit) { blocksHit++; } _local3++; } if (blocksHit == totalNumb) { moveBlocks = false; checkHit = true; } blocksHit = 0; _local3 = 1; while (_local3 <= id) { grid["block" + _local3].hit = false; _local3++; } } else if (checkHit) { if ((gridScaledX || (gridScaledY)) && (!(gridScaledX && (gridScaledY)))) { if (gridDir == "left") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._y) + gridX, ((-grid["block" + _local3]._x) + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._y) + gridX, ((-grid["block" + _local3]._x) + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._y) + gridX) + 17, (-grid["block" + _local3]._x) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._y) + gridX) - 17, (-grid["block" + _local3]._x) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } else if (gridDir == "right") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest(grid["block" + _local3]._y + gridX, (grid["block" + _local3]._x + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(grid["block" + _local3]._y + gridX, (grid["block" + _local3]._x + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._y + gridX) + 17, grid["block" + _local3]._x + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._y + gridX) - 17, grid["block" + _local3]._x + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } else if (gridDir == "up") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest(grid["block" + _local3]._x + gridX, ((-grid["block" + _local3]._y) + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(grid["block" + _local3]._x + gridX, ((-grid["block" + _local3]._y) + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._x + gridX) + 17, (-grid["block" + _local3]._y) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._x + gridX) - 17, (-grid["block" + _local3]._y) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } else if (gridDir == "down") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._x) + gridX, (grid["block" + _local3]._y + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._x) + gridX, (grid["block" + _local3]._y + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._x) + gridX) + 17, grid["block" + _local3]._y + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._x) + gridX) - 17, grid["block" + _local3]._y + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } } else if (gridDir == "left") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._y) + gridX, (grid["block" + _local3]._x + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._y) + gridX, (grid["block" + _local3]._x + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._y) + gridX) + 17, grid["block" + _local3]._x + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._y) + gridX) - 17, grid["block" + _local3]._x + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } else if (gridDir == "right") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest(grid["block" + _local3]._y + gridX, ((-grid["block" + _local3]._x) + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(grid["block" + _local3]._y + gridX, ((-grid["block" + _local3]._x) + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._y + gridX) + 17, (-grid["block" + _local3]._x) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._y + gridX) - 17, (-grid["block" + _local3]._x) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } else if (gridDir == "up") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._x) + gridX, ((-grid["block" + _local3]._y) + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((-grid["block" + _local3]._x) + gridX, ((-grid["block" + _local3]._y) + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._x) + gridX) + 17, (-grid["block" + _local3]._y) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(((-grid["block" + _local3]._x) + gridX) - 17, (-grid["block" + _local3]._y) + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } else if (gridDir == "down") { var _local3 = 1; while (_local3 <= id) { var _local2 = 0; var _local1 = 1; while (_local1 <= id) { if ((grid["block" + _local1].hitTest(grid["block" + _local3]._x + gridX, (grid["block" + _local3]._y + gridY) + 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest(grid["block" + _local3]._x + gridX, (grid["block" + _local3]._y + gridY) - 17, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._x + gridX) + 17, grid["block" + _local3]._y + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } if ((grid["block" + _local1].hitTest((grid["block" + _local3]._x + gridX) - 17, grid["block" + _local3]._y + gridY, true) && (grid["block" + _local3] != grid["block" + _local1])) && (grid["block" + _local3].colour == grid["block" + _local1].colour)) { _local2++; } _local1++; } if (_local2 > 1) { switch (grid["block" + _local3].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local2 = 0; _local3++; } } if (takeOutGreen) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutGreen = false; var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].colour == "green") { totalNumb--; grid["block" + _local3].onEnterFrame = die; } _local3++; } } if (takeOutBlue) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutBlue = false; var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].colour == "blue") { totalNumb--; grid["block" + _local3].onEnterFrame = die; } _local3++; } } if (takeOutRed) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutRed = false; var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].colour == "red") { totalNumb--; grid["block" + _local3].onEnterFrame = die; } _local3++; } } if (takeOutOrange) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutOrange = false; var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].colour == "orange") { totalNumb--; grid["block" + _local3].onEnterFrame = die; } _local3++; } } if (takeOutPurple) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutPurple = false; var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].colour == "purple") { totalNumb--; grid["block" + _local3].onEnterFrame = die; } _local3++; } } if (takeOutYellow) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutYellow = false; var _local3 = 1; while (_local3 <= id) { if (grid["block" + _local3].colour == "yellow") { totalNumb--; grid["block" + _local3].onEnterFrame = die; } _local3++; } } checkHit = false; } if (totalNumb == numbGrey) { finishFunc(); } } function die() { this._alpha = this._alpha - 5; if (this._alpha < 1) { this.removeMovieClip(); } } function finishFunc() { finish = true; nextbttn._visible = true; } changeBack = true; nextbttn._visible = false; var goClock = false; var goAntiClock = false; var goFlip = false; var gridDir = "down"; var goRot = 0; var goScale = 0; var changeScaleX = false; var changeScaleY = false; var gridScaledX = false; var gridScaledY = false; var moveBlocks = true; var blocksHit = 0; var id = 0; var checkHit = false; var takeOutGreen = false; var takeOutBlue = false; var takeOutRed = false; var takeOutOrange = false; var takeOutPurple = false; var takeOutYellow = false; var finish = false; var movesLeft = 0; var numbGrey = 0; var gridX = grid._x; var gridY = grid._y; grid._xscale = 100; grid._yscale = 100; grid.edge._visible = false; var x = 0; while (x <= 8) { var y = 0; while (y <= 8) { if (builtLine[y][x] == 1) { id++; var nest = grid.attachMovie("green", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "green"; } else if (builtLine[y][x] == 2) { id++; var nest = grid.attachMovie("blue", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "blue"; } else if (builtLine[y][x] == 3) { id++; var nest = grid.attachMovie("red", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "red"; } else if (builtLine[y][x] == 4) { id++; var nest = grid.attachMovie("orange", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "orange"; } else if (builtLine[y][x] == 5) { id++; var nest = grid.attachMovie("purple", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "purple"; } else if (builtLine[y][x] == 6) { id++; var nest = grid.attachMovie("yellow", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "yellow"; } else if (builtLine[y][x] == 7) { numbGrey++; id++; var nest = grid.attachMovie("grey", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "grey"; } y++; } x++; } var totalNumb = id; clock.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { goClockFunc(); } }; anticlock.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { goAntiFunc(); } }; flip.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { movesLeft++; goFlip = true; if ((gridDir == "left") || (gridDir == "right")) { changeScaleX = true; goScale = -grid._xscale; if (gridScaledY && (gridScaledX)) { gridScaledX = false; } else if ((!gridScaledY) && (gridScaledX)) { gridScaledX = false; } else { gridScaledX = true; } } else if (gridDir == "up") { changeScaleY = true; goScale = -grid._yscale; if (gridScaledY && (gridScaledX)) { gridDir = "down"; gridScaledY = false; } else if (gridScaledY && (!gridScaledX)) { gridDir = "down"; gridScaledY = false; } else { gridDir = "down"; gridScaledY = true; } } else if (gridDir == "down") { changeScaleY = true; goScale = -grid._yscale; if (gridScaledY && (gridScaledX)) { gridDir = "up"; gridScaledY = false; } else if (gridScaledY && (!gridScaledX)) { gridDir = "up"; gridScaledY = false; } else { gridDir = "up"; gridScaledY = true; } } } }; var dragGrid = false; var prevX = 0; var prevY = 0;
Frame 214
var paste = ((("code:" + builtLine) + ";") + movesLeft);
Frame 215
inputField = ""; if (gameSound) { gameSound = false; stopAllSounds(); } if (!backSound) { backSound = true; bgSound.attachSound("menutrack.mp3"); bgSound.start(0, 9999); }
Frame 216
var line = new Array(); var temp = new Array(); if (inputField.substr(0, 5) != "code:") { debug.text = "Error reading code"; errorSound = new Sound(); errorSound.attachSound("errorcode.mp3"); errorSound.start(0, 1); prevFrame(); } else { debug.text = ""; trace(inputField); inputField = inputField.substring(5, inputField.length); trace(inputField); temp = inputField.split(";"); var numbMoves = temp[1]; var splitter = temp[0]; var i = 17; while (i < splitter.length) { splitter = (splitter.substr(0, i) + "#") + splitter.substr(i + 1, splitter.length); i = i + 18; } line = splitter.split("#"); var i = 0; while (i <= 8) { line[i] = line[i].split(","); i++; } stopAllSounds(); nextFrame(); }
Frame 217
function goClockFunc() { moves++; movesLeft--; goClock = true; goRot = grid._rotation + 90; if (goRot > 180) { goRot = -180 + (goRot - 180); grid._rotation = grid._rotation + 5; } if (gridDir == "down") { gridDir = "left"; } else if (gridDir == "left") { gridDir = "up"; } else if (gridDir == "up") { gridDir = "right"; } else if (gridDir == "right") { gridDir = "down"; } } function goAntiFunc() { moves++; movesLeft--; goAntiClock = true; goRot = grid._rotation - 90; if (goRot < -180) { goRot = 180 - ((-goRot) - 180); grid._rotation = grid._rotation - 5; } if (gridDir == "down") { gridDir = "right"; } else if (gridDir == "right") { gridDir = "up"; } else if (gridDir == "up") { gridDir = "left"; } else if (gridDir == "left") { gridDir = "down"; } } function onMouseDown() { if (grid.drag.hitTest(_xmouse, _ymouse, true)) { dragGrid = true; } } function onMouseUp() { dragGrid = false; } function onMouseMove() { if ((((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) && (dragGrid)) { if (_xmouse < 275) { if (_ymouse < 230) { if (_ymouse < (prevY - 5)) { goClockFunc(); } else if (_ymouse > (prevY + 5)) { goAntiFunc(); } if (_xmouse < (prevX - 5)) { goAntiFunc(); } else if (_xmouse > (prevX + 5)) { goClockFunc(); } } else { if (_ymouse < (prevY - 5)) { goClockFunc(); } else if (_ymouse > (prevY + 5)) { goAntiFunc(); } if (_xmouse < (prevX - 5)) { goClockFunc(); } else if (_xmouse > (prevX + 5)) { goAntiFunc(); } } } else if (_ymouse < 230) { if (_ymouse < (prevY - 5)) { goAntiFunc(); } else if (_ymouse > (prevY + 5)) { goClockFunc(); } if (_xmouse < (prevX - 5)) { goAntiFunc(); } else if (_xmouse > (prevX + 5)) { goClockFunc(); } } else { if (_ymouse < (prevY - 5)) { goAntiFunc(); } else if (_ymouse > (prevY + 5)) { goClockFunc(); } if (_xmouse < (prevX - 5)) { goClockFunc(); } else if (_xmouse > (prevX + 5)) { goAntiFunc(); } } } prevX = _xmouse; prevY = _ymouse; } function onEnterFrame() { if (movesLeft > 23) { moves_mc.gotoAndStop(25); moves_mc.brackets.text = ("(" + (movesLeft - 23)) + ")"; } else { moves_mc.gotoAndStop(Number(movesLeft) + 1); } if (blockAnimation) { moves_fake.play(); if (Number(movesLeft) < 23) { if (moves_fake._currentframe == ((3 * (Number(movesLeft) + 1)) + 18)) { moves_mc._visible = true; moves_fake.stop(); moves_fake._visible = false; blockAnimation = false; } } else if (moves_fake._currentframe == 92) { moves_fake.stop(); if (tempCount < (Number(movesLeft) - 23)) { tempCount++; moves_fake.brackets.text = ("(" + tempCount) + ")"; } else { moves_mc._visible = true; moves_fake._visible = false; blockAnimation = false; } } } else if (goClock) { if (grid._rotation < goRot) { grid._rotation = grid._rotation + 5; } else { moveBlocks = true; goClock = false; } } else if (goAntiClock) { if (grid._rotation > goRot) { grid._rotation = grid._rotation - 5; } else { moveBlocks = true; goAntiClock = false; } } else if (goFlip) { if (changeScaleX) { if (grid._xscale <= goScale) { if (grid._xscale == goScale) { moveBlocks = true; changeScaleX = false; goFlip = false; } else { grid._xscale = grid._xscale + 5; } } else if (grid._xscale == goScale) { moveBlocks = true; changeScaleX = false; goFlip = false; } else { grid._xscale = grid._xscale - 5; } } else if (grid._yscale <= goScale) { if (grid._yscale == goScale) { moveBlocks = true; changeScaleY = false; goFlip = false; } else { grid._yscale = grid._yscale + 5; } } else if (grid._yscale == goScale) { moveBlocks = true; changeScaleY = false; goFlip = false; } else { grid._yscale = grid._yscale - 5; } } else if (moveBlocks) { if ((gridScaledX || (gridScaledY)) && (!(gridScaledX && (gridScaledY)))) { if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x + 5; while (grid.edge.hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } _local2++; } _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y - 5; while (grid.edge.hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } _local2++; } _local6++; } } else if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x - 5; while (grid.edge.hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } _local2++; } _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y + 5; while (grid.edge.hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } _local2++; } _local6++; } } } else if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x + 5; while (grid.edge.hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } _local2++; } _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y - 5; while (grid.edge.hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } _local2++; } _local6++; } } else if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x - 5; while (grid.edge.hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } _local2++; } _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y + 5; while (grid.edge.hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } _local2++; } _local6++; } } var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].hit) { blocksHit++; } _local6++; } if (blocksHit == totalNumb) { moveBlocks = false; checkHit = true; } blocksHit = 0; _local6 = 1; while (_local6 <= id) { grid["block" + _local6].hit = false; _local6++; } } else if (checkHit) { if ((gridScaledX || (gridScaledY)) && (!(gridScaledX && (gridScaledY)))) { if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) + 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) - 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) + 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) - 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) + 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) - 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) + 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) - 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } } else if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) + 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) - 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) + 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) - 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) + 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) - 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) + 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) - 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } if (takeOutGreen) { moveBlocks = true; takeOutGreen = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "green") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutBlue) { moveBlocks = true; takeOutBlue = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "blue") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutRed) { moveBlocks = true; takeOutRed = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "red") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutOrange) { moveBlocks = true; takeOutOrange = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "orange") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutPurple) { moveBlocks = true; takeOutPurple = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "purple") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutYellow) { moveBlocks = true; takeOutYellow = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "yellow") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } checkHit = false; } else if ((movesLeft == 0) && (totalNumb != numbGrey)) { cross.play(); crossPlaying = true; if (cross._currentframe == cross._totalframes) { crossPlaying = false; attempts++; movesLeft = numbMoves; grid._rotation = 0; grid._xscale = 100; grid._yscale = 100; goClock = false; goAntiClock = false; goFlip = false; gridDir = "down"; changeScaleX = false; changeScaleY = false; gridScaledX = false; gridScaledY = false; moveBlocks = true; blocksHit = 0; id = 0; checkHit = false; takeOutGreen = false; takeOutBlue = false; takeOutRed = false; takeOutOrange = false; takeOutPurple = false; takeOutYellow = false; finish = false; moves = 0; var _local3 = 0; while (_local3 <= 8) { var _local1 = 0; while (_local1 <= 8) { if (line[_local1][_local3] == 1) { id++; var _local5 = grid.attachMovie("green", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "green"; } else if (line[_local1][_local3] == 2) { id++; var _local5 = grid.attachMovie("blue", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "blue"; } else if (line[_local1][_local3] == 3) { id++; var _local5 = grid.attachMovie("red", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "red"; } else if (line[_local1][_local3] == 4) { id++; var _local5 = grid.attachMovie("orange", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "orange"; } else if (line[_local1][_local3] == 5) { id++; var _local5 = grid.attachMovie("purple", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "purple"; } else if (line[_local1][_local3] == 6) { id++; var _local5 = grid.attachMovie("yellow", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "yellow"; } else if (line[_local1][_local3] == 7) { id++; var _local5 = grid.attachMovie("grey", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "grey"; } _local1++; } _local3++; } totalNumb = id; } } if ((totalNumb == numbGrey) && (!finish)) { finishFunc(); } } function die() { this._alpha = this._alpha - 5; if (this._alpha < 1) { this.removeMovieClip(); } } function finishFunc() { finish = true; clearInterval(timerInt); level_complete.play(); } function timerUp() { timer++; } if (backSound) { backSound = false; stopAllSounds(); } if (!gameSound) { gameSound = true; bgSound.attachSound("gametrack.mp3"); bgSound.start(0, 9999); } var crossPlaying = false; var timer = 0; var attempts = 1; var movesLeft = numbMoves; var numbGrey = 0; var goClock = false; var goAntiClock = false; var goFlip = false; var gridDir = "down"; var goRot = 0; var goScale = 0; var changeScaleX = false; var changeScaleY = false; var gridScaledX = false; var gridScaledY = false; var moveBlocks = true; var blocksHit = 0; var id = 0; var checkHit = false; var takeOutGreen = false; var takeOutBlue = false; var takeOutRed = false; var takeOutOrange = false; var takeOutPurple = false; var takeOutYellow = false; var finish = false; var moves = 0; var gridX = grid._x; var gridY = grid._y; var blockAnimation = true; var tempCount = 0; moves_mc._visible = false; grid.edge._visible = false; grid._xscale = 100; grid._yscale = 100; var x = 0; while (x <= 8) { var y = 0; while (y <= 8) { if (line[y][x] == 1) { id++; var nest = grid.attachMovie("green", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "green"; } else if (line[y][x] == 2) { id++; var nest = grid.attachMovie("blue", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "blue"; } else if (line[y][x] == 3) { id++; var nest = grid.attachMovie("red", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "red"; } else if (line[y][x] == 4) { id++; var nest = grid.attachMovie("orange", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "orange"; } else if (line[y][x] == 5) { id++; var nest = grid.attachMovie("purple", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "purple"; } else if (line[y][x] == 6) { id++; var nest = grid.attachMovie("yellow", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "yellow"; } else if (line[y][x] == 7) { numbGrey++; id++; var nest = grid.attachMovie("grey", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "grey"; } y++; } x++; } var totalNumb = id; clock.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { goClockFunc(); } }; anticlock.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { goAntiFunc(); } }; flip.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { moves++; movesLeft--; goFlip = true; if ((gridDir == "left") || (gridDir == "right")) { changeScaleX = true; goScale = -grid._xscale; if (gridScaledY && (gridScaledX)) { gridScaledX = false; } else if ((!gridScaledY) && (gridScaledX)) { gridScaledX = false; } else { gridScaledX = true; } } else if (gridDir == "up") { changeScaleY = true; goScale = -grid._yscale; if (gridScaledY && (gridScaledX)) { gridDir = "down"; gridScaledY = false; } else if (gridScaledY && (!gridScaledX)) { gridDir = "down"; gridScaledY = false; } else { gridDir = "down"; gridScaledY = true; } } else if (gridDir == "down") { changeScaleY = true; goScale = -grid._yscale; if (gridScaledY && (gridScaledX)) { gridDir = "up"; gridScaledY = false; } else if (gridScaledY && (!gridScaledX)) { gridDir = "up"; gridScaledY = false; } else { gridDir = "up"; gridScaledY = true; } } } }; var dragGrid = false; var prevX = 0; var prevY = 0; timerInt = setInterval(timerUp, 1000);
Frame 218
function goClockFunc() { moves++; movesLeft--; goClock = true; goRot = grid._rotation + 90; if (goRot > 180) { goRot = -180 + (goRot - 180); grid._rotation = grid._rotation + 5; } if (gridDir == "down") { gridDir = "left"; } else if (gridDir == "left") { gridDir = "up"; } else if (gridDir == "up") { gridDir = "right"; } else if (gridDir == "right") { gridDir = "down"; } } function goAntiFunc() { moves++; movesLeft--; goAntiClock = true; goRot = grid._rotation - 90; if (goRot < -180) { goRot = 180 - ((-goRot) - 180); grid._rotation = grid._rotation - 5; } if (gridDir == "down") { gridDir = "right"; } else if (gridDir == "right") { gridDir = "up"; } else if (gridDir == "up") { gridDir = "left"; } else if (gridDir == "left") { gridDir = "down"; } } function onMouseDown() { if (grid.drag.hitTest(_xmouse, _ymouse, true)) { dragGrid = true; } } function onMouseUp() { dragGrid = false; } function onMouseMove() { if ((((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) && (dragGrid)) { if (_xmouse < 275) { if (_ymouse < 230) { if (_ymouse < (prevY - 5)) { goClockFunc(); } else if (_ymouse > (prevY + 5)) { goAntiFunc(); } else if (_xmouse < (prevX - 5)) { goAntiFunc(); } else if (_xmouse > (prevX + 5)) { goClockFunc(); } } else if (_ymouse < (prevY - 5)) { goClockFunc(); } else if (_ymouse > (prevY + 5)) { goAntiFunc(); } else if (_xmouse < (prevX - 5)) { goClockFunc(); } else if (_xmouse > (prevX + 5)) { goAntiFunc(); } } else if (_ymouse < 230) { if (_ymouse < (prevY - 5)) { goAntiFunc(); } else if (_ymouse > (prevY + 5)) { goClockFunc(); } else if (_xmouse < (prevX - 5)) { goAntiFunc(); } else if (_xmouse > (prevX + 5)) { goClockFunc(); } } else if (_ymouse < (prevY - 5)) { goAntiFunc(); } else if (_ymouse > (prevY + 5)) { goClockFunc(); } else if (_xmouse < (prevX - 5)) { goClockFunc(); } else if (_xmouse > (prevX + 5)) { goAntiFunc(); } } prevX = _xmouse; prevY = _ymouse; } function onEnterFrame() { if (movesLeft > 23) { moves_mc.gotoAndStop(25); moves_mc.brackets.text = ("(" + (movesLeft - 23)) + ")"; } else { moves_mc.gotoAndStop(Number(movesLeft) + 1); } if (blockAnimation) { moves_fake.play(); if (Number(movesLeft) < 23) { if (moves_fake._currentframe == ((3 * (Number(movesLeft) + 1)) + 18)) { moves_mc._visible = true; moves_fake.stop(); moves_fake._visible = false; blockAnimation = false; } } else if (moves_fake._currentframe == 92) { moves_fake.stop(); if (tempCount < (Number(movesLeft) - 23)) { tempCount++; moves_fake.brackets.text = ("(" + tempCount) + ")"; } else { moves_mc._visible = true; moves_fake._visible = false; blockAnimation = false; } } } else if (goClock) { if (grid._rotation < goRot) { grid._rotation = grid._rotation + 5; } else { moveBlocks = true; goClock = false; } } else if (goAntiClock) { if (grid._rotation > goRot) { grid._rotation = grid._rotation - 5; } else { moveBlocks = true; goAntiClock = false; } } else if (goFlip) { if (changeScaleX) { if (grid._xscale <= goScale) { if (grid._xscale == goScale) { moveBlocks = true; changeScaleX = false; goFlip = false; } else { grid._xscale = grid._xscale + 5; } } else if (grid._xscale == goScale) { moveBlocks = true; changeScaleX = false; goFlip = false; } else { grid._xscale = grid._xscale - 5; } } else if (grid._yscale <= goScale) { if (grid._yscale == goScale) { moveBlocks = true; changeScaleY = false; goFlip = false; } else { grid._yscale = grid._yscale + 5; } } else if (grid._yscale == goScale) { moveBlocks = true; changeScaleY = false; goFlip = false; } else { grid._yscale = grid._yscale - 5; } } else if (moveBlocks) { if ((gridScaledX || (gridScaledY)) && (!(gridScaledX && (gridScaledY)))) { if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x + 5; while (grid.edge.hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } _local2++; } _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y - 5; while (grid.edge.hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } _local2++; } _local6++; } } else if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x - 5; while (grid.edge.hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } _local2++; } _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y + 5; while (grid.edge.hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } _local2++; } _local6++; } } } else if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x + 5; while (grid.edge.hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x--; } _local2++; } _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y - 5; while (grid.edge.hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y++; } _local2++; } _local6++; } } else if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._x = grid["block" + _local6]._x - 5; while (grid.edge.hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._x++; } _local2++; } _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { grid["block" + _local6]._y = grid["block" + _local6]._y + 5; while (grid.edge.hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) + 14, true)) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } var _local2 = 1; while (_local2 <= id) { while (grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) + 14, true) && (grid["block" + _local6] != grid["block" + _local2])) { grid["block" + _local6].hit = true; grid["block" + _local6]._y--; } _local2++; } _local6++; } } var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].hit) { blocksHit++; } _local6++; } if (blocksHit == totalNumb) { moveBlocks = false; checkHit = true; } blocksHit = 0; _local6 = 1; while (_local6 <= id) { grid["block" + _local6].hit = false; _local6++; } } else if (checkHit) { if ((gridScaledX || (gridScaledY)) && (!(gridScaledX && (gridScaledY)))) { if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, ((-grid["block" + _local6]._x) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) + 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) - 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, (grid["block" + _local6]._x + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) + 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) - 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, ((-grid["block" + _local6]._y) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) + 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) - 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, (grid["block" + _local6]._y + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) + 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) - 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } } else if (gridDir == "left") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._y) + gridX, (grid["block" + _local6]._x + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) + 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._y) + gridX) - 17, grid["block" + _local6]._x + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "right") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._y + gridX, ((-grid["block" + _local6]._x) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) + 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._y + gridX) - 17, (-grid["block" + _local6]._x) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "up") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((-grid["block" + _local6]._x) + gridX, ((-grid["block" + _local6]._y) + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) + 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(((-grid["block" + _local6]._x) + gridX) - 17, (-grid["block" + _local6]._y) + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } else if (gridDir == "down") { var _local6 = 1; while (_local6 <= id) { var _local4 = 0; var _local2 = 1; while (_local2 <= id) { if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) + 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest(grid["block" + _local6]._x + gridX, (grid["block" + _local6]._y + gridY) - 17, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) + 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } if ((grid["block" + _local2].hitTest((grid["block" + _local6]._x + gridX) - 17, grid["block" + _local6]._y + gridY, true) && (grid["block" + _local6] != grid["block" + _local2])) && (grid["block" + _local6].colour == grid["block" + _local2].colour)) { _local4++; } _local2++; } if (_local4 > 1) { switch (grid["block" + _local6].colour) { case "green" : takeOutGreen = true; break; case "blue" : takeOutBlue = true; break; case "red" : takeOutRed = true; break; case "orange" : takeOutOrange = true; break; case "purple" : takeOutPurple = true; break; case "yellow" : takeOutYellow = true; } } _local4 = 0; _local6++; } } if (takeOutGreen) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutGreen = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "green") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutBlue) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutBlue = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "blue") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutRed) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutRed = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "red") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutOrange) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutOrange = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "orange") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutPurple) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutPurple = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "purple") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } if (takeOutYellow) { blockSound = new Sound(); blockSound.attachSound("blockfade.mp3"); blockSound.start(0, 1); moveBlocks = true; takeOutYellow = false; var _local6 = 1; while (_local6 <= id) { if (grid["block" + _local6].colour == "yellow") { totalNumb--; grid["block" + _local6].onEnterFrame = die; } _local6++; } } checkHit = false; } else if ((movesLeft == 0) && (totalNumb != numbGrey)) { crossPlaying = true; cross.play(); if (cross._currentframe == cross._totalframes) { crossPlaying = false; attempts++; movesLeft = numbMoves; grid._rotation = 0; grid._xscale = 100; grid._yscale = 100; goClock = false; goAntiClock = false; goFlip = false; gridDir = "down"; changeScaleX = false; changeScaleY = false; gridScaledX = false; gridScaledY = false; moveBlocks = true; blocksHit = 0; id = 0; checkHit = false; takeOutGreen = false; takeOutBlue = false; takeOutRed = false; takeOutOrange = false; takeOutPurple = false; takeOutYellow = false; finish = false; moves = 0; var _local3 = 0; while (_local3 <= 8) { var _local1 = 0; while (_local1 <= 8) { if (line[_local1][_local3] == 1) { id++; var _local5 = grid.attachMovie("green", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "green"; } else if (line[_local1][_local3] == 2) { id++; var _local5 = grid.attachMovie("blue", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "blue"; } else if (line[_local1][_local3] == 3) { id++; var _local5 = grid.attachMovie("red", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "red"; } else if (line[_local1][_local3] == 4) { id++; var _local5 = grid.attachMovie("orange", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "orange"; } else if (line[_local1][_local3] == 5) { id++; var _local5 = grid.attachMovie("purple", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "purple"; } else if (line[_local1][_local3] == 6) { id++; var _local5 = grid.attachMovie("yellow", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "yellow"; } else if (line[_local1][_local3] == 7) { id++; var _local5 = grid.attachMovie("grey", "block" + id, id); _local5._x = (30 * _local3) - 120; _local5._y = (30 * _local1) - 120; _local5.colour = "grey"; } _local1++; } _local3++; } totalNumb = id; } } if ((totalNumb == numbGrey) && (!finish)) { finishFunc(); } } function die() { this._alpha = this._alpha - 5; if (this._alpha < 1) { this.removeMovieClip(); } } function finishFunc() { finish = true; clearInterval(timerInt); level_complete.play(); } function timerUp() { timer++; } var line = new Array(); var temp = new Array(); level_code = level_code.substring(8, level_code.length - 5); temp = level_code.split(";"); var numbMoves = temp[1]; var splitter = temp[0]; var i = 17; while (i < splitter.length) { splitter = (splitter.substr(0, i) + "#") + splitter.substr(i + 1, splitter.length); i = i + 18; } line = splitter.split("#"); var i = 0; while (i <= 8) { line[i] = line[i].split(","); i++; } if (backSound) { backSound = false; stopAllSounds(); } if (!gameSound) { gameSound = true; bgSound.attachSound("gametrack.mp3"); bgSound.start(0, 9999); } levelView.levelText.text = "LEVEL: " + level; var crossPlaying = false; var timer = 0; var attempts = 1; var movesLeft = numbMoves; var numbGrey = 0; var goClock = false; var goAntiClock = false; var goFlip = false; var gridDir = "down"; var goRot = 0; var goScale = 0; var changeScaleX = false; var changeScaleY = false; var gridScaledX = false; var gridScaledY = false; var moveBlocks = true; var blocksHit = 0; var id = 0; var checkHit = false; var takeOutGreen = false; var takeOutBlue = false; var takeOutRed = false; var takeOutOrange = false; var takeOutPurple = false; var takeOutYellow = false; var finish = false; var moves = 0; var gridX = grid._x; var gridY = grid._y; var blockAnimation = true; var tempCount = 0; moves_mc._visible = false; grid.edge._visible = false; grid._xscale = 100; grid._yscale = 100; var x = 0; while (x <= 8) { var y = 0; while (y <= 8) { if (line[y][x] == 1) { id++; var nest = grid.attachMovie("green", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "green"; } else if (line[y][x] == 2) { id++; var nest = grid.attachMovie("blue", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "blue"; } else if (line[y][x] == 3) { id++; var nest = grid.attachMovie("red", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "red"; } else if (line[y][x] == 4) { id++; var nest = grid.attachMovie("orange", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "orange"; } else if (line[y][x] == 5) { id++; var nest = grid.attachMovie("purple", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "purple"; } else if (line[y][x] == 6) { id++; var nest = grid.attachMovie("yellow", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "yellow"; } else if (line[y][x] == 7) { numbGrey++; id++; var nest = grid.attachMovie("grey", "block" + id, id); nest._x = (30 * x) - 120; nest._y = (30 * y) - 120; nest.colour = "grey"; } y++; } x++; } var totalNumb = id; clock.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { goClockFunc(); } }; anticlock.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { goAntiFunc(); } }; flip.onRelease = function () { if (((((((!goClock) && (!goAntiClock)) && (!goFlip)) && (!moveBlocks)) && (!checkHit)) && (!finish)) && (!crossPlaying)) { moves++; movesLeft--; goFlip = true; if ((gridDir == "left") || (gridDir == "right")) { changeScaleX = true; goScale = -grid._xscale; if (gridScaledY && (gridScaledX)) { gridScaledX = false; } else if ((!gridScaledY) && (gridScaledX)) { gridScaledX = false; } else { gridScaledX = true; } } else if (gridDir == "up") { changeScaleY = true; goScale = -grid._yscale; if (gridScaledY && (gridScaledX)) { gridDir = "down"; gridScaledY = false; } else if (gridScaledY && (!gridScaledX)) { gridDir = "down"; gridScaledY = false; } else { gridDir = "down"; gridScaledY = true; } } else if (gridDir == "down") { changeScaleY = true; goScale = -grid._yscale; if (gridScaledY && (gridScaledX)) { gridDir = "up"; gridScaledY = false; } else if (gridScaledY && (!gridScaledX)) { gridDir = "up"; gridScaledY = false; } else { gridDir = "up"; gridScaledY = true; } } } }; var dragGrid = false; var prevX = 0; var prevY = 0; timerInt = setInterval(timerUp, 1000);
Frame 219
level++; if (level > 30) { delete onEnterFrame; clearInterval(timerInt); _root.gotoAndPlay("credits"); } else { if (level > saved.data.currLevel) { saved.data.currLevel = level; } level_code = _root[("level" + level) + "_code"]; saved.data["lvl" + level] = 1; prevFrame(); }
Frame 489
_root.gotoAndPlay("firstmenu");
Symbol 34 Button
on (release) { _root.play(); }
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 10
stop();
Symbol 52 Button
on (release) { _root.nextFrame(); }
Symbol 58 MovieClip Frame 1
if (_root.timer >= 36000) { hours = 9; minutes = 99; seconds = 99; } else { meet = 0; seconds = 0; hours = 0; minutes = 0; while (meet < _root.timer) { meet++; seconds++; if (seconds == 60) { minutes++; seconds = 0; } if (minutes == 60) { hours++; minutes = 0; } } if (seconds < 10) { seconds = "0" + seconds; } if (minutes < 10) { minutes = "0" + minutes; } } var timer = ((((hours + ":") + minutes) + ":") + seconds); var attempts = _root.attempts; var moves = _root.moves;
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 20
stop();
Symbol 72 Button
on (release) { play(); }
Symbol 96 Button
on (release) { gotoAndPlay (2); }
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 432
stop();
Symbol 104 Button
on (release) { getURL ("http://www.mindless-games.com/", "_blank"); }
Symbol 108 Button
on (release) { getURL ("http://armorgames.com/", "_blank"); }
Symbol 112 Button
on (release) { getURL ("http://armorblog.com/", "_blank"); }
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
_root.bgSound.setVolume(0);
Symbol 115 MovieClip Frame 21
stop();
Symbol 115 MovieClip Frame 22
_root.bgSound.setVolume(100);
Symbol 133 Button
on (press) { getURL ("http://www.armorgames.com", "_blank"); }
Symbol 136 MovieClip Frame 1
_root.stop(); gotoAndPlay (2);
Symbol 136 MovieClip Frame 159
_root.play();
Symbol 152 MovieClip Frame 1
startT.text = _root.saved.data.sc; stop();
Symbol 161 Button
on (release) { this.enabled = false; getURL ("http://armorgames.com/free-website-games", "_blank"); }
Symbol 162 Button
on (release) { getURL ("http://www.maxgames.com", "_blank"); }
Symbol 168 Button
on (release) { _root.gotoAndStop("loader"); }
Symbol 172 Button
on (release) { _root.gotoAndPlay("creator"); }
Symbol 177 Button
on (release) { getURL ("http://www.mindless-games.com/posts/submit-your-gravity-grid-levels", "_blank"); }
Symbol 181 Button
on (release) { getURL ("http://armorgames.com/", "_blank"); }
Symbol 185 Button
on (release) { play(); }
Symbol 189 MovieClip Frame 1
startT.text = _root.saved.data.sc; stop();
Symbol 189 MovieClip Frame 2
startT.text = _root.saved.data.sc;
Symbol 189 MovieClip Frame 3
startT.text = _root.saved.data.sc;
Symbol 194 Button
on (release) { _root.level_code = _root.level1_code; _root.level = 1; _root.gotoAndStop("levels"); }
Symbol 198 Button
on (release) { _root.level_code = _root.level2_code; _root.level = 2; _root.gotoAndStop("levels"); }
Symbol 203 Button
on (release) { _root.level_code = _root.level3_code; _root.level = 3; _root.gotoAndStop("levels"); }
Symbol 207 Button
on (release) { _root.level_code = _root.level4_code; _root.level = 4; _root.gotoAndStop("levels"); }
Symbol 211 Button
on (release) { _root.level_code = _root.level5_code; _root.level = 5; _root.gotoAndStop("levels"); }
Symbol 215 Button
on (release) { _root.level_code = _root.level6_code; _root.level = 6; _root.gotoAndStop("levels"); }
Symbol 219 Button
on (release) { _root.level_code = _root.level7_code; _root.level = 7; _root.gotoAndStop("levels"); }
Symbol 223 Button
on (release) { _root.level_code = _root.level8_code; _root.level = 8; _root.gotoAndStop("levels"); }
Symbol 227 Button
on (release) { _root.level_code = _root.level9_code; _root.level = 9; _root.gotoAndStop("levels"); }
Symbol 231 Button
on (release) { _root.level_code = _root.level10_code; _root.level = 10; _root.gotoAndStop("levels"); }
Symbol 235 Button
on (release) { _root.level_code = _root.level11_code; _root.level = 11; _root.gotoAndStop("levels"); }
Symbol 239 Button
on (release) { _root.level_code = _root.level12_code; _root.level = 12; _root.gotoAndStop("levels"); }
Symbol 243 Button
on (release) { _root.level_code = _root.level13_code; _root.level = 13; _root.gotoAndStop("levels"); }
Symbol 247 Button
on (release) { _root.level_code = _root.level14_code; _root.level = 14; _root.gotoAndStop("levels"); }
Symbol 251 Button
on (release) { _root.level_code = _root.level15_code; _root.level = 15; _root.gotoAndStop("levels"); }
Symbol 255 Button
on (release) { _root.level_code = _root.level16_code; _root.level = 16; _root.gotoAndStop("levels"); }
Symbol 259 Button
on (release) { _root.level_code = _root.level17_code; _root.level = 17; _root.gotoAndStop("levels"); }
Symbol 263 Button
on (release) { _root.level_code = _root.level18_code; _root.level = 18; _root.gotoAndStop("levels"); }
Symbol 267 Button
on (release) { _root.level_code = _root.level19_code; _root.level = 19; _root.gotoAndStop("levels"); }
Symbol 271 Button
on (release) { _root.level_code = _root.level20_code; _root.level = 20; _root.gotoAndStop("levels"); }
Symbol 275 Button
on (release) { _root.level_code = _root.level21_code; _root.level = 21; _root.gotoAndStop("levels"); }
Symbol 279 Button
on (release) { _root.level_code = _root.level22_code; _root.level = 22; _root.gotoAndStop("levels"); }
Symbol 283 Button
on (release) { _root.level_code = _root.level23_code; _root.level = 23; _root.gotoAndStop("levels"); }
Symbol 287 Button
on (release) { _root.level_code = _root.level24_code; _root.level = 24; _root.gotoAndStop("levels"); }
Symbol 291 Button
on (release) { _root.level_code = _root.level25_code; _root.level = 25; _root.gotoAndStop("levels"); }
Symbol 295 Button
on (release) { _root.level_code = _root.level26_code; _root.level = 26; _root.gotoAndStop("levels"); }
Symbol 300 Button
on (release) { _root.level_code = _root.level27_code; _root.level = 27; _root.gotoAndStop("levels"); }
Symbol 304 Button
on (release) { _root.level_code = _root.level28_code; _root.level = 28; _root.gotoAndStop("levels"); }
Symbol 309 Button
on (release) { _root.level_code = _root.level29_code; _root.level = 29; _root.gotoAndStop("levels"); }
Symbol 313 Button
on (release) { _root.level_code = _root.level30_code; _root.level = 30; _root.gotoAndStop("levels"); }
Symbol 319 Button
on (release) { _root.onEnterFrame = function () { _root.prevFrame(); }; }
Instance of Symbol 200 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl2); }
Instance of Symbol 204 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl3); }
Instance of Symbol 208 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl4); }
Instance of Symbol 212 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl5); }
Instance of Symbol 216 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl6); }
Instance of Symbol 220 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl7); }
Instance of Symbol 224 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl8); }
Instance of Symbol 228 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl9); }
Instance of Symbol 232 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl10); }
Instance of Symbol 236 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl11); }
Instance of Symbol 240 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl12); }
Instance of Symbol 244 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl13); }
Instance of Symbol 248 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl14); }
Instance of Symbol 252 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl15); }
Instance of Symbol 256 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl16); }
Instance of Symbol 260 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl17); }
Instance of Symbol 264 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl18); }
Instance of Symbol 268 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl19); }
Instance of Symbol 272 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl20); }
Instance of Symbol 276 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl21); }
Instance of Symbol 280 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl22); }
Instance of Symbol 284 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl23); }
Instance of Symbol 288 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl24); }
Instance of Symbol 292 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl25); }
Instance of Symbol 296 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl26); }
Instance of Symbol 301 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl27); }
Instance of Symbol 305 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl28); }
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl29); }
Instance of Symbol 314 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl30); }
Instance of Symbol 200 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl2); }
Instance of Symbol 204 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl3); }
Instance of Symbol 208 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl4); }
Instance of Symbol 212 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl5); }
Instance of Symbol 216 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl6); }
Instance of Symbol 220 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl7); }
Instance of Symbol 224 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl8); }
Instance of Symbol 228 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl9); }
Instance of Symbol 232 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl10); }
Instance of Symbol 236 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl11); }
Instance of Symbol 240 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl12); }
Instance of Symbol 244 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl13); }
Instance of Symbol 248 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl14); }
Instance of Symbol 252 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl15); }
Instance of Symbol 256 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl16); }
Instance of Symbol 260 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl17); }
Instance of Symbol 264 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl18); }
Instance of Symbol 268 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl19); }
Instance of Symbol 272 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl20); }
Instance of Symbol 276 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl21); }
Instance of Symbol 280 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl22); }
Instance of Symbol 284 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl23); }
Instance of Symbol 288 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl24); }
Instance of Symbol 292 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl25); }
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl26); }
Instance of Symbol 301 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl27); }
Instance of Symbol 305 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl28); }
Instance of Symbol 310 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl29); }
Instance of Symbol 314 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(_root.saved.data.lvl30); }
Symbol 334 Button
on (release) { delete onMouseDown; delete onMouseMove; nextFrame(); }
Symbol 337 Button
on (release) { delete onMouseDown; delete onMouseMove; _root.gotoAndPlay("menu"); }
Symbol 353 Button
on (release) { if (finish) { delete onEnterFrame; nextFrame(); } }
Symbol 357 Button
on (release) { delete onEnterFrame; prevFrame(); }
Symbol 358 Button
on (release) { delete onEnterFrame; _root.gotoAndPlay("menu"); }
Symbol 367 Button
on (release) { _root.gotoAndPlay("menu"); }
Symbol 371 Button
on (release) { System.setClipboard(paste); }
Symbol 378 Button
on (release) { nextFrame(); }
Symbol 380 Button
on (release) { clearInterval(timerInt); _root.gotoAndPlay("menu"); }
Symbol 389 Button
on (release) { delete _root.onEnterFrame; _root.gotoAndStop("loader"); }
Symbol 393 MovieClip Frame 1
if (_root.timer >= 36000) { hours = 9; minutes = 99; seconds = 99; } else { meet = 0; seconds = 0; hours = 0; minutes = 0; while (meet < _root.timer) { meet++; seconds++; if (seconds == 60) { minutes++; seconds = 0; } if (minutes == 60) { hours++; minutes = 0; } } if (seconds < 10) { seconds = "0" + seconds; } if (minutes < 10) { minutes = "0" + minutes; } } var timer = ((((hours + ":") + minutes) + ":") + seconds); var attempts = _root.attempts; var moves = _root.moves;
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 20
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 398 Button
on (release) { delete onEnterFrame; clearInterval(timerInt); _root.gotoAndPlay("menu"); }

Library Items

Symbol 1 Sound [errorcode.mp3]
Symbol 2 Sound [blockfade.mp3]
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:5
Symbol 5 MovieClip [orange]Uses:4
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClip [purple]Uses:7
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:11
Symbol 11 MovieClip [yellow]Uses:10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClip [red]Uses:13
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:17
Symbol 17 MovieClip [blue]Uses:16Used by:79 87 97
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:20
Symbol 20 MovieClip [grey]Uses:19Used by:79 87 97
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:23
Symbol 23 MovieClip [green]Uses:22Used by:79 97
Symbol 24 GraphicUsed by:Timeline
Symbol 25 FontUsed by:26 151 186 187 188 366 373 379 408
Symbol 26 EditableTextUses:25Used by:35
Symbol 27 GraphicUsed by:35 59 338 394  Timeline
Symbol 28 ShapeTweeningUsed by:35
Symbol 29 GraphicUsed by:32 34
Symbol 30 GraphicUsed by:32 34
Symbol 31 GraphicUsed by:32 34
Symbol 32 ButtonUses:29 30 31Used by:35
Symbol 33 GraphicUsed by:35
Symbol 34 ButtonUses:29 30 31Used by:35
Symbol 35 MovieClipUses:26 27 28 32 33 34Used by:Timeline
Symbol 36 GraphicUsed by:Timeline
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:Timeline
Symbol 39 GraphicUsed by:98
Symbol 40 GraphicUsed by:41 337 358 367 380 398
Symbol 41 MovieClipUses:40Used by:98
Symbol 42 GraphicUsed by:45 400
Symbol 43 FontUsed by:44 53 54 55 390 391 392 399
Symbol 44 EditableTextUses:43Used by:45
Symbol 45 MovieClipUses:42 44Used by:98
Symbol 46 GraphicUsed by:59 394
Symbol 47 SoundUsed by:59
Symbol 48 GraphicUsed by:58
Symbol 49 GraphicUsed by:52
Symbol 50 GraphicUsed by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:49 50 51Used by:58
Symbol 53 EditableTextUses:43Used by:58
Symbol 54 EditableTextUses:43Used by:58
Symbol 55 EditableTextUses:43Used by:58
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:58 393
Symbol 58 MovieClipUses:48 52 53 54 55 57Used by:59
Symbol 59 MovieClipUses:27 46 47 58Used by:98  Timeline
Symbol 60 GraphicUsed by:98
Symbol 61 GraphicUsed by:97
Symbol 62 GraphicUsed by:97
Symbol 63 GraphicUsed by:97
Symbol 64 GraphicUsed by:97
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:97
Symbol 67 GraphicUsed by:97
Symbol 68 GraphicUsed by:72
Symbol 69 GraphicUsed by:72
Symbol 70 GraphicUsed by:72
Symbol 71 GraphicUsed by:72
Symbol 72 ButtonUses:68 69 70 71Used by:97
Symbol 73 GraphicUsed by:97
Symbol 74 GraphicUsed by:97
Symbol 75 GraphicUsed by:97
Symbol 76 GraphicUsed by:97
Symbol 77 GraphicUsed by:97
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78 23 20 17Used by:97
Symbol 80 GraphicUsed by:97
Symbol 81 GraphicUsed by:97
Symbol 82 GraphicUsed by:97
Symbol 83 GraphicUsed by:97
Symbol 84 GraphicUsed by:97
Symbol 85 GraphicUsed by:97
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86 17 20Used by:97
Symbol 88 GraphicUsed by:97
Symbol 89 GraphicUsed by:97
Symbol 90 GraphicUsed by:97
Symbol 91 GraphicUsed by:97
Symbol 92 GraphicUsed by:96
Symbol 93 GraphicUsed by:96
Symbol 94 GraphicUsed by:96
Symbol 95 GraphicUsed by:96
Symbol 96 ButtonUses:92 93 94 95Used by:97
Symbol 97 MovieClipUses:61 23 20 17 62 63 64 66 67 72 73 74 75 76 77 79 80 81 82 83 84 85 87 88 89 90 91 96Used by:98
Symbol 98 MovieClipUses:39 41 45 59 60 97Used by:Timeline
Symbol 99 GraphicUsed by:104
Symbol 100 GraphicUsed by:104
Symbol 101 GraphicUsed by:104
Symbol 102 GraphicUsed by:104
Symbol 103 SoundUsed by:104 108 112 161 162 163 168 172 177 181 185 189 321 334 337 353 357 358 367 371 378 380 384 398
Symbol 104 ButtonUses:99 100 101 102 103Used by:Timeline
Symbol 105 BitmapUsed by:106 117
Symbol 106 GraphicUses:105Used by:108 162
Symbol 107 GraphicUsed by:108 162
Symbol 108 ButtonUses:106 107 103Used by:Timeline
Symbol 109 BitmapUsed by:110 117
Symbol 110 GraphicUses:109Used by:112 163
Symbol 111 GraphicUsed by:112 163
Symbol 112 ButtonUses:110 111 103Used by:Timeline
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:113 114Used by:Timeline
Symbol 116 GraphicUsed by:Timeline
Symbol 117 GraphicUses:109 105Used by:Timeline
Symbol 118 ShapeTweeningUsed by:Timeline
Symbol 119 Sound [menutrack.mp3]Used by:Timeline
Symbol 120 Sound [gametrack.mp3]Used by:Timeline
Symbol 121 GraphicUsed by:136
Symbol 122 GraphicUsed by:136
Symbol 123 GraphicUsed by:136
Symbol 124 SoundUsed by:136
Symbol 125 SoundUsed by:136
Symbol 126 GraphicUsed by:136
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:127Used by:136
Symbol 129 SoundUsed by:136
Symbol 130 SoundUsed by:136
Symbol 131 SoundUsed by:136
Symbol 132 GraphicUsed by:133
Symbol 133 ButtonUses:132Used by:136
Symbol 134 SoundUsed by:136
Symbol 135 SoundUsed by:136
Symbol 136 MovieClipUses:121 122 123 124 125 126 128 129 130 131 133 134 135Used by:Timeline
Symbol 137 GraphicUsed by:Timeline
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:138Used by:Timeline
Symbol 140 ShapeTweeningUsed by:Timeline
Symbol 141 GraphicUsed by:Timeline
Symbol 142 GraphicUsed by:Timeline
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:143Used by:149
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:145Used by:149
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:147Used by:149
Symbol 149 MovieClipUses:144 146 148Used by:Timeline
Symbol 150 GraphicUsed by:152 189
Symbol 151 EditableTextUses:25Used by:152
Symbol 152 MovieClipUses:150 151Used by:Timeline
Symbol 153 GraphicUsed by:154 185
Symbol 154 MovieClipUses:153Used by:Timeline
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:Timeline
Symbol 157 GraphicUsed by:161
Symbol 158 GraphicUsed by:161 181 321
Symbol 159 GraphicUsed by:161
Symbol 160 GraphicUsed by:161
Symbol 161 ButtonUses:157 158 159 160 103Used by:Timeline
Symbol 162 ButtonUses:106 107 103Used by:Timeline
Symbol 163 ButtonUses:110 111 103Used by:Timeline
Symbol 164 GraphicUsed by:168 172
Symbol 165 GraphicUsed by:168
Symbol 166 GraphicUsed by:168
Symbol 167 GraphicUsed by:168
Symbol 168 ButtonUses:164 165 166 167 103Used by:Timeline
Symbol 169 GraphicUsed by:172
Symbol 170 GraphicUsed by:172
Symbol 171 GraphicUsed by:172
Symbol 172 ButtonUses:164 169 170 171 103Used by:Timeline
Symbol 173 GraphicUsed by:177
Symbol 174 GraphicUsed by:177
Symbol 175 GraphicUsed by:177
Symbol 176 GraphicUsed by:177
Symbol 177 ButtonUses:173 174 175 176 103Used by:Timeline
Symbol 178 GraphicUsed by:181 321
Symbol 179 GraphicUsed by:181 321
Symbol 180 GraphicUsed by:181 321
Symbol 181 ButtonUses:178 158 179 180 103Used by:Timeline
Symbol 182 GraphicUsed by:185 189
Symbol 183 GraphicUsed by:185
Symbol 184 GraphicUsed by:185
Symbol 185 ButtonUses:153 182 183 184 103Used by:Timeline
Symbol 186 EditableTextUses:25Used by:189
Symbol 187 EditableTextUses:25Used by:189
Symbol 188 EditableTextUses:25Used by:189
Symbol 189 MovieClipUses:150 186 182 187 103 188Used by:Timeline
Symbol 190 GraphicUsed by:320
Symbol 191 GraphicUsed by:194
Symbol 192 GraphicUsed by:194
Symbol 193 GraphicUsed by:194 198 203 207 211 215 219 223 227 231 235 239 243 247 251 255 259 263 267 271 275 279 283 287 291 295 304 313
Symbol 194 ButtonUses:191 192 193Used by:195
Symbol 195 MovieClipUses:194Used by:320 323
Symbol 196 GraphicUsed by:198
Symbol 197 GraphicUsed by:198
Symbol 198 ButtonUses:196 197 193Used by:200
Symbol 199 GraphicUsed by:200 204 208 212 216 220 224 228 232 236 240 244 248 252 256 260 264 268 272 276 280 284 288 292 296 301 305 310 314
Symbol 200 MovieClipUses:198 199Used by:320 323
Symbol 201 GraphicUsed by:203
Symbol 202 GraphicUsed by:203
Symbol 203 ButtonUses:201 202 193Used by:204
Symbol 204 MovieClipUses:203 199Used by:320 323
Symbol 205 GraphicUsed by:207
Symbol 206 GraphicUsed by:207
Symbol 207 ButtonUses:205 206 193Used by:208
Symbol 208 MovieClipUses:207 199Used by:320 323
Symbol 209 GraphicUsed by:211
Symbol 210 GraphicUsed by:211
Symbol 211 ButtonUses:209 210 193Used by:212
Symbol 212 MovieClipUses:211 199Used by:320 323
Symbol 213 GraphicUsed by:215
Symbol 214 GraphicUsed by:215
Symbol 215 ButtonUses:213 214 193Used by:216
Symbol 216 MovieClipUses:215 199Used by:320 323
Symbol 217 GraphicUsed by:219
Symbol 218 GraphicUsed by:219
Symbol 219 ButtonUses:217 218 193Used by:220
Symbol 220 MovieClipUses:219 199Used by:320 323
Symbol 221 GraphicUsed by:223
Symbol 222 GraphicUsed by:223
Symbol 223 ButtonUses:221 222 193Used by:224
Symbol 224 MovieClipUses:223 199Used by:320 323
Symbol 225 GraphicUsed by:227
Symbol 226 GraphicUsed by:227
Symbol 227 ButtonUses:225 226 193Used by:228
Symbol 228 MovieClipUses:227 199Used by:320 323
Symbol 229 GraphicUsed by:231
Symbol 230 GraphicUsed by:231
Symbol 231 ButtonUses:229 230 193Used by:232
Symbol 232 MovieClipUses:231 199Used by:320 323
Symbol 233 GraphicUsed by:235
Symbol 234 GraphicUsed by:235
Symbol 235 ButtonUses:233 234 193Used by:236
Symbol 236 MovieClipUses:235 199Used by:320 323
Symbol 237 GraphicUsed by:239
Symbol 238 GraphicUsed by:239
Symbol 239 ButtonUses:237 238 193Used by:240
Symbol 240 MovieClipUses:239 199Used by:320 323
Symbol 241 GraphicUsed by:243
Symbol 242 GraphicUsed by:243
Symbol 243 ButtonUses:241 242 193Used by:244
Symbol 244 MovieClipUses:243 199Used by:320 323
Symbol 245 GraphicUsed by:247
Symbol 246 GraphicUsed by:247
Symbol 247 ButtonUses:245 246 193Used by:248
Symbol 248 MovieClipUses:247 199Used by:320 323
Symbol 249 GraphicUsed by:251
Symbol 250 GraphicUsed by:251
Symbol 251 ButtonUses:249 250 193Used by:252
Symbol 252 MovieClipUses:251 199Used by:320 323
Symbol 253 GraphicUsed by:255
Symbol 254 GraphicUsed by:255
Symbol 255 ButtonUses:253 254 193Used by:256
Symbol 256 MovieClipUses:255 199Used by:320 323
Symbol 257 GraphicUsed by:259
Symbol 258 GraphicUsed by:259
Symbol 259 ButtonUses:257 258 193Used by:260
Symbol 260 MovieClipUses:259 199Used by:320 323
Symbol 261 GraphicUsed by:263
Symbol 262 GraphicUsed by:263
Symbol 263 ButtonUses:261 262 193Used by:264
Symbol 264 MovieClipUses:263 199Used by:320 323
Symbol 265 GraphicUsed by:267
Symbol 266 GraphicUsed by:267
Symbol 267 ButtonUses:265 266 193Used by:268
Symbol 268 MovieClipUses:267 199Used by:320 323
Symbol 269 GraphicUsed by:271
Symbol 270 GraphicUsed by:271
Symbol 271 ButtonUses:269 270 193Used by:272
Symbol 272 MovieClipUses:271 199Used by:320 323
Symbol 273 GraphicUsed by:275
Symbol 274 GraphicUsed by:275
Symbol 275 ButtonUses:273 274 193Used by:276
Symbol 276 MovieClipUses:275 199Used by:320 323
Symbol 277 GraphicUsed by:279
Symbol 278 GraphicUsed by:279
Symbol 279 ButtonUses:277 278 193Used by:280
Symbol 280 MovieClipUses:279 199Used by:320 323
Symbol 281 GraphicUsed by:283
Symbol 282 GraphicUsed by:283
Symbol 283 ButtonUses:281 282 193Used by:284
Symbol 284 MovieClipUses:283 199Used by:320 323
Symbol 285 GraphicUsed by:287
Symbol 286 GraphicUsed by:287
Symbol 287 ButtonUses:285 286 193Used by:288
Symbol 288 MovieClipUses:287 199Used by:320 323
Symbol 289 GraphicUsed by:291
Symbol 290 GraphicUsed by:291
Symbol 291 ButtonUses:289 290 193Used by:292
Symbol 292 MovieClipUses:291 199Used by:320 323
Symbol 293 GraphicUsed by:295
Symbol 294 GraphicUsed by:295
Symbol 295 ButtonUses:293 294 193Used by:296
Symbol 296 MovieClipUses:295 199Used by:320 323
Symbol 297 GraphicUsed by:300
Symbol 298 GraphicUsed by:300
Symbol 299 GraphicUsed by:300
Symbol 300 ButtonUses:297 298 299Used by:301
Symbol 301 MovieClipUses:300 199Used by:320 323
Symbol 302 GraphicUsed by:304
Symbol 303 GraphicUsed by:304
Symbol 304 ButtonUses:302 303 193Used by:305
Symbol 305 MovieClipUses:304 199Used by:320 323
Symbol 306 GraphicUsed by:309
Symbol 307 GraphicUsed by:309
Symbol 308 GraphicUsed by:309
Symbol 309 ButtonUses:306 307 308Used by:310
Symbol 310 MovieClipUses:309 199Used by:320 323
Symbol 311 GraphicUsed by:313
Symbol 312 GraphicUsed by:313
Symbol 313 ButtonUses:311 312 193Used by:314
Symbol 314 MovieClipUses:313 199Used by:320 323
Symbol 315 GraphicUsed by:319
Symbol 316 GraphicUsed by:319
Symbol 317 GraphicUsed by:319
Symbol 318 GraphicUsed by:319
Symbol 319 ButtonUses:315 316 317 318Used by:320 323
Symbol 320 MovieClipUses:190 195 200 204 208 212 216 220 224 228 232 236 240 244 248 252 256 260 264 268 272 276 280 284 288 292 296 301 305 310 314 319Used by:Timeline
Symbol 321 ButtonUses:178 158 179 180 103Used by:Timeline
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:322 195 200 204 208 212 216 220 224 228 232 236 240 244 248 252 256 260 264 268 272 276 280 284 288 292 296 301 305 310 314 319Used by:Timeline
Symbol 324 GraphicUsed by:Timeline
Symbol 325 GraphicUsed by:326
Symbol 326 MovieClipUses:325Used by:Timeline
Symbol 327 GraphicUsed by:330 341
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:328Used by:330
Symbol 330 MovieClipUses:327 329Used by:Timeline
Symbol 331 GraphicUsed by:334
Symbol 332 GraphicUsed by:334
Symbol 333 GraphicUsed by:334
Symbol 334 ButtonUses:331 332 333 103Used by:Timeline
Symbol 335 GraphicUsed by:337 358 367 380 398
Symbol 336 GraphicUsed by:337 358 367 380 398
Symbol 337 ButtonUses:40 335 336 103Used by:Timeline
Symbol 338 MovieClipUses:27Used by:341
Symbol 339 GraphicUsed by:340
Symbol 340 MovieClipUses:339Used by:341
Symbol 341 MovieClipUses:338 340 327Used by:Timeline
Symbol 342 GraphicUsed by:345
Symbol 343 GraphicUsed by:345
Symbol 344 GraphicUsed by:345
Symbol 345 ButtonUses:342 343 344Used by:Timeline
Symbol 346 GraphicUsed by:349
Symbol 347 GraphicUsed by:349
Symbol 348 GraphicUsed by:349
Symbol 349 ButtonUses:346 347 348Used by:Timeline
Symbol 350 GraphicUsed by:353
Symbol 351 GraphicUsed by:353
Symbol 352 GraphicUsed by:353
Symbol 353 ButtonUses:350 351 352 103Used by:Timeline
Symbol 354 GraphicUsed by:357
Symbol 355 GraphicUsed by:357
Symbol 356 GraphicUsed by:357
Symbol 357 ButtonUses:354 355 356 103Used by:Timeline
Symbol 358 ButtonUses:40 335 336 103Used by:Timeline
Symbol 359 GraphicUsed by:364
Symbol 360 GraphicUsed by:361
Symbol 361 MovieClipUses:360Used by:364 384
Symbol 362 FontUsed by:363 383
Symbol 363 EditableTextUses:362Used by:364
Symbol 364 MovieClipUses:359 361 363Used by:Timeline
Symbol 365 GraphicUsed by:Timeline
Symbol 366 EditableTextUses:25Used by:Timeline
Symbol 367 ButtonUses:40 335 336 103Used by:Timeline
Symbol 368 GraphicUsed by:371
Symbol 369 GraphicUsed by:371
Symbol 370 GraphicUsed by:371
Symbol 371 ButtonUses:368 369 370 103Used by:Timeline
Symbol 372 GraphicUsed by:Timeline
Symbol 373 EditableTextUses:25Used by:Timeline
Symbol 374 GraphicUsed by:Timeline
Symbol 375 GraphicUsed by:378
Symbol 376 GraphicUsed by:378
Symbol 377 GraphicUsed by:378
Symbol 378 ButtonUses:375 376 377 103Used by:Timeline
Symbol 379 EditableTextUses:25Used by:Timeline
Symbol 380 ButtonUses:40 335 336 103Used by:Timeline
Symbol 381 GraphicUsed by:382
Symbol 382 MovieClipUses:381Used by:384
Symbol 383 EditableTextUses:362Used by:384
Symbol 384 MovieClipUses:382 361 103 383 SS1Used by:Timeline
Symbol 385 GraphicUsed by:393
Symbol 386 GraphicUsed by:389
Symbol 387 GraphicUsed by:389
Symbol 388 GraphicUsed by:389
Symbol 389 ButtonUses:386 387 388Used by:393
Symbol 390 EditableTextUses:43Used by:393
Symbol 391 EditableTextUses:43Used by:393
Symbol 392 EditableTextUses:43Used by:393
Symbol 393 MovieClipUses:385 389 390 391 392 57Used by:394
Symbol 394 MovieClipUses:27 46 393Used by:Timeline
Symbol 395 ShapeTweeningUsed by:397
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:395 396Used by:Timeline
Symbol 398 ButtonUses:40 335 336 103Used by:Timeline
Symbol 399 EditableTextUses:43Used by:400
Symbol 400 MovieClipUses:42 399Used by:Timeline
Symbol 401 GraphicUsed by:Timeline
Symbol 402 GraphicUsed by:Timeline
Symbol 403 GraphicUsed by:404
Symbol 404 MovieClipUses:403Used by:Timeline
Symbol 405 GraphicUsed by:Timeline
Symbol 406 GraphicUsed by:Timeline
Symbol 407 ShapeTweeningUsed by:Timeline
Symbol 408 TextUses:25Used by:Timeline
Streaming Sound 1Used by:Symbol 384 MovieClip

Instance Names

"playBttn"Frame 1Symbol 35 MovieClip
"bar"Frame 1Symbol 38 MovieClip
"menu_web"Frame 119Symbol 161 Button
"menu_web"Frame 176Symbol 161 Button
"gridHit"Frame 212Symbol 326 MovieClip
"grid"Frame 212Symbol 330 MovieClip
"grid"Frame 213Symbol 341 MovieClip
"clock"Frame 213Symbol 345 Button
"flip"Frame 213Symbol 349 Button
"anticlock"Frame 213Symbol 345 Button
"nextbttn"Frame 213Symbol 353 Button
"moves_mc"Frame 213Symbol 364 MovieClip
"nextbttn"Frame 215Symbol 378 Button
"debug"Frame 215Symbol 379 EditableText
"grid"Frame 217Symbol 341 MovieClip
"clock"Frame 217Symbol 345 Button
"flip"Frame 217Symbol 349 Button
"anticlock"Frame 217Symbol 345 Button
"moves_mc"Frame 217Symbol 364 MovieClip
"moves_fake"Frame 217Symbol 384 MovieClip
"level_complete"Frame 217Symbol 394 MovieClip
"cross"Frame 217Symbol 397 MovieClip
"clock"Frame 218Symbol 345 Button
"flip"Frame 218Symbol 349 Button
"anticlock"Frame 218Symbol 345 Button
"moves_mc"Frame 218Symbol 364 MovieClip
"moves_fake"Frame 218Symbol 384 MovieClip
"levelView"Frame 218Symbol 400 MovieClip
"grid"Frame 218Symbol 341 MovieClip
"level_complete"Frame 218Symbol 59 MovieClip
"cross"Frame 218Symbol 397 MovieClip
"percent"Symbol 35 MovieClip Frame 1Symbol 26 EditableText
"levelText"Symbol 45 MovieClip Frame 1Symbol 44 EditableText
"level_complete"Symbol 98 MovieClip Frame 1Symbol 59 MovieClip
"startT"Symbol 152 MovieClip Frame 1Symbol 151 EditableText
"startT"Symbol 189 MovieClip Frame 1Symbol 186 EditableText
"startT"Symbol 189 MovieClip Frame 2Symbol 187 EditableText
"startT"Symbol 189 MovieClip Frame 3Symbol 188 EditableText
"cursor"Symbol 330 MovieClip Frame 1Symbol 329 MovieClip
"drag"Symbol 341 MovieClip Frame 1Symbol 338 MovieClip
"edge"Symbol 341 MovieClip Frame 1Symbol 340 MovieClip
"brackets"Symbol 364 MovieClip Frame 25Symbol 363 EditableText
"brackets"Symbol 384 MovieClip Frame 90Symbol 383 EditableText
"levelText"Symbol 400 MovieClip Frame 1Symbol 399 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "errorcode.mp3"
ExportAssets (56)Timeline Frame 1Symbol 2 as "blockfade.mp3"
ExportAssets (56)Timeline Frame 1Symbol 5 as "orange"
ExportAssets (56)Timeline Frame 1Symbol 8 as "purple"
ExportAssets (56)Timeline Frame 1Symbol 11 as "yellow"
ExportAssets (56)Timeline Frame 1Symbol 14 as "red"
ExportAssets (56)Timeline Frame 1Symbol 17 as "blue"
ExportAssets (56)Timeline Frame 1Symbol 20 as "grey"
ExportAssets (56)Timeline Frame 1Symbol 23 as "green"
ExportAssets (56)Timeline Frame 31Symbol 119 as "menutrack.mp3"
ExportAssets (56)Timeline Frame 31Symbol 120 as "gametrack.mp3"

Labels

"agintro"Frame 32
"firstmenu"Frame 33
"menu"Frame 154
"creator"Frame 211
"loader"Frame 215
"levels"Frame 218
"credits"Frame 220

Dynamic Text Variables

timerSymbol 53 EditableText""
attemptsSymbol 54 EditableText""
movesSymbol 55 EditableText""
pasteSymbol 366 EditableText""
inputFieldSymbol 373 EditableText""
timerSymbol 390 EditableText""
attemptsSymbol 391 EditableText""
movesSymbol 392 EditableText""




http://swfchan.com/10/47375/info.shtml
Created: 1/5 -2019 23:23:04 Last modified: 1/5 -2019 23:23:04 Server time: 23/12 -2024 01:29:36