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

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

enigma.swf

This is the info page for
Flash #46821

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


Text
play

Loading

Enigma

Play

Play

Play

Credits

Credits

Credits

Play More Games

Play More Games

Play More Games

Art, Animation and Coding,
Danny Yaroslavski (Coolio-Niato)
Music by
O'Neil Donald
Based on
Phit Flash Game
Sponsor and Distributer
Armorgames

Level Select

Square

A

Paperboy

Stairs

Bat

Turtle

Ghost

Heart

Bomb

Alien 1

Alien 2

UFO

OVERALL COMPLETE

Comet

Truck

Happy Face

Flag

RocketShip

Dinosaur

Jellyfish

Palace

YinYang

Fire Hydrant

Dinosaur 2

Battle Fleet

11 Space Invader 2

Clicks 1000

PAUSED

Press P to return
to game.

Arrow Keys to Move

Restart Level

Restart Level

Restart Level

11 Space Invader 2

11 Space Invader 2

Achievements

Menu

Menu

Menu

11 Space Invader 2

ActionScript [AS1/AS2]

Frame 1
var savefile = SharedObject.getLocal("enigma"); stop(); play.gotoAndStop(2); var CPMStarPoolID = 1052; var CPMStarSubPoolID = 25; System.security.allowDomain("server.cpmstar.com"); ads.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID); stop(); _root.menu = new ContextMenu(); _root.menu.hideBuiltInItems(); onEnterFrame = function () { _root.bytesLoaded = _root.getBytesLoaded(); _root.bytesTotal = _root.getBytesTotal(); _root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal)); _root.percentLoadedText = _root.percentLoaded + "%"; _root.bar._xscale = percentLoaded; if (bar._xscale == 100) { play.gotoAndStop(1); load._visible = false; } };
Instance of Symbol 21 MovieClip "play" in Frame 1
on (press) { if (_root.play._currentframe == 1) { _root.gotoAndStop(2); } }
Frame 2
function spawnCircles() { cwait++; if (cwait > 8) { cwait = 0; cnum++; if (cnum > 1000) { cnum = 1; } circleMc = attachMovie("circle", "c" + cnum, cnum); circleMc._x = Math.random() * Stage.width; circleMc._y = Stage.height + 20; circleMc.pop = false; circleMc.yspd = (Math.random() * 5) + 1; circleMc._xscale = (circleMc._yscale = (Math.random() * 50) + 50); circleMc._alpha = circleMc._xscale / 5; circleMc.onEnterFrame = function () { if ((!_root.pauseM) || (_root._currentframe != 6)) { if (!this.pop) { if (mouse) { if (this.hitTest(_xmouse, _ymouse, true)) { this.pop = true; } } } if (!this.pop) { this._y = this._y - this.yspd; this._x = this._x + ((Math.random() * 5) - 2.5); if (this._y < -20) { removeMovieClip(this); } } else { this._xscale = this._xscale + 40; this._yscale = this._xscale; if (this._xscale > 250) { _root.bubbles++; removeMovieClip(this); } } } }; } } level = 0; cnum = 0; cwait = 0; songPlaying = true; if (savefile.data.starArray != undefined) { _root.starArray = savefile.data.starArray; } else { starArray = new Array(); i = 0; while (i < 24) { starArray[i] = new Array(false, false, false); i++; } savefile.data.starArray = _root.starArray; } onEnterFrame = function () { _root.spawnCircles(); };
Instance of Symbol 41 MovieClip in Frame 2
onClipEvent (enterFrame) { this.onPress = function () { getURL ("http://www.armorgames.com", "_blank"); }; }
Frame 3
onEnterFrame = function () { _root.spawnCircles(); };
Instance of Symbol 58 MovieClip in Frame 3
on (release) { getURL ("http://coolio-niato.newgrounds.com/", _blank); }
Frame 4
stop(); creds._visible = false; onEnterFrame = function () { _root.spawnCircles(); };
Instance of Symbol 84 MovieClip in Frame 4
on (press) { if (_root.songPlaying) { _root.songPlaying = false; _root.song.stop(); } else { _root.songPlaying = true; _root.song.play(); } } onClipEvent (enterFrame) { if (_root.songPlaying) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } }
Frame 5
mouse = false; onMouseDown = function () { mouse = true; }; onMouseUp = function () { mouse = false; }; bg.gotoAndStop(1); onEnterFrame = function () { _root.spawnCircles(); i = 1; while (i <= 25) { if (_root["l" + i].hitTest(_xmouse, _ymouse, true)) { if (mouse && (i != 25)) { _root.level = i - 2; trace(level); _root.gotoAndStop("game"); break; } if (i < 4) { difficulty.gotoAndStop(1); } else if (i < 7) { difficulty.gotoAndStop(2); } else if (i < 10) { difficulty.gotoAndStop(3); } else if (i < 24) { difficulty.gotoAndStop(4); } else { difficulty.gotoAndStop(5); } _root.bg.gotoAndStop(i); _root["l" + i].gotoAndStop(2); } else { _root["l" + i].gotoAndStop(1); } i++; } i = 1; while (i < 13) { if (_root.starArray[i - 1][0]) { _root["s" + i].s1.gotoAndStop(1); } else { _root["s" + i].s1.gotoAndStop(2); } if (_root.starArray[i - 1][1]) { _root["s" + i].s2.gotoAndStop(1); } else { _root["s" + i].s2.gotoAndStop(2); } if (_root.starArray[i - 1][2]) { _root["s" + i].s3.gotoAndStop(1); } else { _root["s" + i].s3.gotoAndStop(2); } i++; } i = 13; while (i < 25) { if (_root.starArray[i - 1][2]) { _root["s" + i].gotoAndStop(1); } else { _root["s" + i].gotoAndStop(2); } i++; } star = true; i = 1; while (i < 13) { j = 0; while (j < 3) { if (!_root.starArray[i - 1][j]) { star = false; } j++; } i++; } i = 13; while (i < 24) { if (!_root.starArray[i - 1][2]) { star = false; } i++; } if (star) { _root.s25.gotoAndStop(1); } else { _root.s25.gotoAndStop(2); } }; stop();
Frame 6
function levels1() { if (level == 23) { levelName = "Battle Fleet"; correctArray[1][8] = new Array(1, 3); correctArray[1][12] = new Array(1, 8); correctArray[3][8] = new Array(1, 7); correctArray[3][12] = new Array(1, 10); correctArray[4][12] = new Array(1, 9); correctArray[5][8] = new Array(1, 10); correctArray[5][11] = new Array(1, 8); correctArray[5][12] = new Array(1, 10); correctArray[5][13] = new Array(1, 3); correctArray[6][11] = new Array(1, 8); correctArray[6][12] = new Array(1, 3); correctArray[6][13] = new Array(1, 3); correctArray[7][8] = new Array(1, 6); correctArray[7][11] = new Array(1, 8); correctArray[7][13] = new Array(1, 5); correctArray[8][8] = new Array(1, 5); correctArray[9][7] = new Array(1, 6); correctArray[9][8] = new Array(1, 5); correctArray[9][9] = new Array(1, 2); correctArray[9][12] = new Array(1, 7); correctArray[10][6] = new Array(1, 9); correctArray[10][7] = new Array(1, 6); correctArray[10][8] = new Array(1, 6); correctArray[10][9] = new Array(1, 2); correctArray[10][10] = new Array(1, 2); correctArray[11][6] = new Array(1, 9); correctArray[11][8] = new Array(1, 9); correctArray[11][10] = new Array(1, 9); correctArray[11][12] = new Array(1, 2); correctArray[12][12] = new Array(1, 6); blockArray[1][1] = new Array(1, 7); blockArray[1][4] = new Array(1, 10); blockArray[3][0] = new Array(1, 10); blockArray[3][1] = new Array(1, 6); blockArray[3][2] = new Array(1, 8); blockArray[3][4] = new Array(1, 10); blockArray[5][0] = new Array(1, 6); blockArray[6][0] = new Array(1, 6); blockArray[6][1] = new Array(1, 6); blockArray[7][1] = new Array(1, 8); blockArray[7][5] = new Array(1, 7); blockArray[7][6] = new Array(1, 9); blockArray[8][0] = new Array(1, 3); blockArray[8][1] = new Array(1, 8); blockArray[8][5] = new Array(1, 6); blockArray[9][0] = new Array(1, 2); blockArray[9][1] = new Array(1, 8); blockArray[10][0] = new Array(1, 2); blockArray[10][1] = new Array(1, 2); blockArray[10][5] = new Array(1, 5); blockArray[11][0] = new Array(1, 5); blockArray[11][3] = new Array(1, 2); blockArray[12][0] = new Array(1, 5); blockArray[12][5] = new Array(1, 3); blockArray[13][0] = new Array(1, 9); blockArray[13][4] = new Array(1, 3); blockArray[13][5] = new Array(1, 3); blockArray[14][0] = new Array(1, 9); blockArray[14][2] = new Array(1, 9); blockArray[14][4] = new Array(1, 9); // unexpected jump } if (level == 22) { levelName = "Dinosaur 2"; correctArray[2][9] = new Array(1, 6); correctArray[2][10] = new Array(1, 6); correctArray[2][11] = new Array(1, 6); correctArray[3][8] = new Array(1, 10); correctArray[3][9] = new Array(1, 6); correctArray[3][11] = new Array(1, 6); correctArray[3][14] = new Array(1, 5); correctArray[4][8] = new Array(1, 6); correctArray[4][11] = new Array(1, 8); correctArray[4][12] = new Array(1, 8); correctArray[4][13] = new Array(1, 5); correctArray[4][14] = new Array(1, 5); correctArray[5][8] = new Array(1, 10); correctArray[5][10] = new Array(1, 9); correctArray[5][11] = new Array(1, 3); correctArray[5][12] = new Array(1, 8); correctArray[6][6] = new Array(1, 9); correctArray[6][7] = new Array(1, 9); correctArray[6][8] = new Array(1, 9); correctArray[6][10] = new Array(1, 9); correctArray[6][11] = new Array(1, 3); correctArray[6][12] = new Array(1, 8); correctArray[7][6] = new Array(1, 9); correctArray[7][8] = new Array(1, 2); correctArray[7][10] = new Array(1, 9); correctArray[7][11] = new Array(1, 3); correctArray[7][12] = new Array(1, 5); correctArray[8][6] = new Array(1, 9); correctArray[8][7] = new Array(1, 9); correctArray[8][8] = new Array(1, 2); correctArray[8][10] = new Array(1, 3); correctArray[8][11] = new Array(1, 3); correctArray[8][12] = new Array(1, 5); correctArray[8][14] = new Array(1, 8); correctArray[9][8] = new Array(1, 2); correctArray[9][11] = new Array(1, 10); correctArray[9][12] = new Array(1, 5); correctArray[9][13] = new Array(1, 8); correctArray[9][14] = new Array(1, 8); correctArray[10][11] = new Array(1, 10); correctArray[11][11] = new Array(1, 2); correctArray[12][11] = new Array(1, 2); blockArray[0][2] = new Array(1, 8); blockArray[0][3] = new Array(1, 8); blockArray[1][0] = new Array(1, 10); blockArray[1][2] = new Array(1, 3); blockArray[1][3] = new Array(1, 8); blockArray[2][2] = new Array(1, 3); blockArray[2][3] = new Array(1, 8); blockArray[3][0] = new Array(1, 10); blockArray[3][2] = new Array(1, 3); blockArray[4][1] = new Array(1, 3); blockArray[4][2] = new Array(1, 3); blockArray[4][5] = new Array(1, 8); blockArray[5][1] = new Array(1, 6); blockArray[5][2] = new Array(1, 6); blockArray[5][3] = new Array(1, 6); blockArray[5][4] = new Array(1, 8); blockArray[5][5] = new Array(1, 8); blockArray[6][1] = new Array(1, 6); blockArray[6][3] = new Array(1, 6); blockArray[7][0] = new Array(1, 6); blockArray[7][3] = new Array(1, 10); blockArray[8][3] = new Array(1, 10); blockArray[8][4] = new Array(1, 5); blockArray[9][3] = new Array(1, 5); blockArray[9][4] = new Array(1, 5); blockArray[9][5] = new Array(1, 2); blockArray[10][5] = new Array(1, 2); blockArray[11][5] = new Array(1, 2); blockArray[11][9] = new Array(1, 9); blockArray[12][2] = new Array(1, 5); blockArray[12][5] = new Array(1, 9); blockArray[12][6] = new Array(1, 9); blockArray[12][7] = new Array(1, 9); blockArray[12][9] = new Array(1, 9); blockArray[13][2] = new Array(1, 5); blockArray[13][5] = new Array(1, 9); blockArray[13][8] = new Array(1, 2); blockArray[13][9] = new Array(1, 9); blockArray[14][2] = new Array(1, 5); blockArray[14][5] = new Array(1, 9); blockArray[14][6] = new Array(1, 9); blockArray[14][8] = new Array(1, 2); } else if (level == 21) { levelName = "Fire Hydrant"; correctArray[4][13] = new Array(1, 5); correctArray[5][7] = new Array(1, 6); correctArray[5][9] = new Array(1, 3); correctArray[5][10] = new Array(1, 3); correctArray[5][12] = new Array(1, 7); correctArray[5][13] = new Array(1, 5); correctArray[6][6] = new Array(1, 3); correctArray[6][7] = new Array(1, 6); correctArray[6][8] = new Array(1, 9); correctArray[6][9] = new Array(1, 9); correctArray[6][10] = new Array(1, 9); correctArray[6][11] = new Array(1, 9); correctArray[6][12] = new Array(1, 7); correctArray[6][13] = new Array(1, 5); correctArray[7][5] = new Array(1, 10); correctArray[7][6] = new Array(1, 3); correctArray[7][7] = new Array(1, 6); correctArray[7][8] = new Array(1, 10); correctArray[7][9] = new Array(1, 10); correctArray[7][10] = new Array(1, 10); correctArray[7][11] = new Array(1, 9); correctArray[7][12] = new Array(1, 7); correctArray[7][13] = new Array(1, 7); correctArray[8][6] = new Array(1, 3); correctArray[8][7] = new Array(1, 6); correctArray[8][8] = new Array(1, 6); correctArray[8][9] = new Array(1, 6); correctArray[8][10] = new Array(1, 10); correctArray[8][11] = new Array(1, 9); correctArray[8][12] = new Array(1, 9); correctArray[8][13] = new Array(1, 5); correctArray[9][7] = new Array(1, 3); correctArray[9][9] = new Array(1, 10); correctArray[9][10] = new Array(1, 10); correctArray[9][12] = new Array(1, 9); correctArray[9][13] = new Array(1, 5); correctArray[10][13] = new Array(1, 9); blockArray[0][3] = new Array(1, 3); blockArray[0][4] = new Array(1, 3); blockArray[1][0] = new Array(1, 10); blockArray[1][3] = new Array(1, 10); blockArray[1][4] = new Array(1, 10); blockArray[1][5] = new Array(1, 10); blockArray[2][5] = new Array(1, 10); blockArray[3][0] = new Array(1, 3); blockArray[3][2] = new Array(1, 7); blockArray[3][3] = new Array(1, 8); blockArray[3][4] = new Array(1, 10); blockArray[3][5] = new Array(1, 10); blockArray[4][0] = new Array(1, 5); blockArray[4][1] = new Array(1, 3); blockArray[4][2] = new Array(1, 7); blockArray[4][3] = new Array(1, 8); blockArray[5][0] = new Array(1, 5); blockArray[5][2] = new Array(1, 7); blockArray[5][3] = new Array(1, 7); blockArray[6][0] = new Array(1, 5); blockArray[8][0] = new Array(1, 5); blockArray[9][0] = new Array(1, 5); blockArray[10][0] = new Array(1, 9); blockArray[10][1] = new Array(1, 9); blockArray[10][2] = new Array(1, 9); blockArray[10][3] = new Array(1, 9); blockArray[11][2] = new Array(1, 6); blockArray[11][3] = new Array(1, 9); blockArray[12][2] = new Array(1, 6); blockArray[12][3] = new Array(1, 9); blockArray[12][4] = new Array(1, 9); blockArray[13][2] = new Array(1, 6); blockArray[13][4] = new Array(1, 9); blockArray[14][2] = new Array(1, 6); blockArray[14][3] = new Array(1, 6); blockArray[14][4] = new Array(1, 6); blockArray[14][5] = new Array(1, 9); } else if (level == 20) { levelName = "YinYang"; correctArray[2][8] = new Array(1, 3); correctArray[2][9] = new Array(1, 3); correctArray[2][10] = new Array(1, 6); correctArray[3][7] = new Array(1, 3); correctArray[3][8] = new Array(1, 3); correctArray[3][9] = new Array(1, 3); correctArray[3][10] = new Array(1, 6); correctArray[3][11] = new Array(1, 6); correctArray[4][6] = new Array(1, 5); correctArray[4][7] = new Array(1, 7); correctArray[4][8] = new Array(1, 7); correctArray[4][9] = new Array(1, 6); correctArray[4][10] = new Array(1, 6); correctArray[4][11] = new Array(1, 7); correctArray[4][12] = new Array(1, 7); correctArray[5][5] = new Array(1, 5); correctArray[5][6] = new Array(1, 5); correctArray[5][8] = new Array(1, 7); correctArray[5][9] = new Array(1, 6); correctArray[5][12] = new Array(1, 8); correctArray[5][13] = new Array(1, 8); correctArray[6][5] = new Array(1, 5); correctArray[6][7] = new Array(1, 3); correctArray[6][8] = new Array(1, 3); correctArray[6][13] = new Array(1, 4); correctArray[7][5] = new Array(1, 5); correctArray[7][10] = new Array(1, 7); correctArray[7][13] = new Array(1, 4); correctArray[8][6] = new Array(1, 9); correctArray[8][12] = new Array(1, 4); correctArray[9][7] = new Array(1, 9); correctArray[9][11] = new Array(1, 8); correctArray[10][8] = new Array(1, 5); correctArray[10][9] = new Array(1, 5); correctArray[10][10] = new Array(1, 8); blockArray[0][1] = new Array(1, 3); blockArray[0][2] = new Array(1, 3); blockArray[0][4] = new Array(1, 8); blockArray[0][5] = new Array(1, 8); blockArray[1][0] = new Array(1, 3); blockArray[1][1] = new Array(1, 3); blockArray[1][2] = new Array(1, 3); blockArray[3][2] = new Array(1, 4); blockArray[4][0] = new Array(1, 3); blockArray[4][1] = new Array(1, 3); blockArray[4][2] = new Array(1, 4); blockArray[4][3] = new Array(1, 8); blockArray[5][0] = new Array(1, 9); blockArray[5][1] = new Array(1, 4); blockArray[5][2] = new Array(1, 8); blockArray[6][1] = new Array(1, 9); blockArray[7][1] = new Array(1, 5); blockArray[8][0] = new Array(1, 5); blockArray[8][1] = new Array(1, 5); blockArray[9][0] = new Array(1, 5); blockArray[9][3] = new Array(1, 6); blockArray[10][0] = new Array(1, 5); blockArray[10][3] = new Array(1, 6); blockArray[10][4] = new Array(1, 6); blockArray[11][0] = new Array(1, 7); blockArray[11][1] = new Array(1, 7); blockArray[11][2] = new Array(1, 6); blockArray[11][3] = new Array(1, 6); blockArray[11][4] = new Array(1, 7); blockArray[11][5] = new Array(1, 7); blockArray[12][1] = new Array(1, 7); blockArray[12][2] = new Array(1, 6); blockArray[13][3] = new Array(1, 5); blockArray[13][4] = new Array(1, 5); blockArray[14][3] = new Array(1, 7); } else if (level == 19) { levelName = "Palace"; correctArray[2][13] = new Array(1, 7); correctArray[3][10] = new Array(1, 10); correctArray[3][11] = new Array(1, 10); correctArray[3][12] = new Array(1, 7); correctArray[3][13] = new Array(1, 7); correctArray[4][12] = new Array(1, 7); correctArray[4][13] = new Array(1, 5); correctArray[5][9] = new Array(1, 5); correctArray[5][10] = new Array(1, 5); correctArray[5][11] = new Array(1, 5); correctArray[5][12] = new Array(1, 5); correctArray[5][13] = new Array(1, 5); correctArray[6][7] = new Array(1, 4); correctArray[6][8] = new Array(1, 4); correctArray[6][11] = new Array(1, 8); correctArray[6][12] = new Array(1, 9); correctArray[6][13] = new Array(1, 9); correctArray[7][6] = new Array(1, 3); correctArray[7][7] = new Array(1, 3); correctArray[7][8] = new Array(1, 4); correctArray[7][9] = new Array(1, 6); correctArray[7][10] = new Array(1, 6); correctArray[7][11] = new Array(1, 8); correctArray[7][12] = new Array(1, 9); correctArray[8][6] = new Array(1, 3); correctArray[8][7] = new Array(1, 3); correctArray[8][8] = new Array(1, 4); correctArray[8][9] = new Array(1, 4); correctArray[8][10] = new Array(1, 4); correctArray[8][11] = new Array(1, 8); correctArray[8][12] = new Array(1, 9); correctArray[9][7] = new Array(1, 3); correctArray[9][8] = new Array(1, 3); correctArray[9][11] = new Array(1, 8); correctArray[9][12] = new Array(1, 9); correctArray[9][13] = new Array(1, 8); correctArray[10][9] = new Array(1, 9); correctArray[10][10] = new Array(1, 9); correctArray[10][11] = new Array(1, 8); correctArray[10][12] = new Array(1, 8); correctArray[10][13] = new Array(1, 8); correctArray[11][12] = new Array(1, 6); correctArray[11][13] = new Array(1, 6); correctArray[12][10] = new Array(1, 6); correctArray[12][11] = new Array(1, 6); correctArray[12][12] = new Array(1, 6); correctArray[12][13] = new Array(1, 2); correctArray[13][13] = new Array(1, 3); blockArray[0][0] = new Array(1, 6); blockArray[0][1] = new Array(1, 6); blockArray[0][3] = new Array(1, 10); blockArray[0][4] = new Array(1, 10); blockArray[0][5] = new Array(1, 8); blockArray[1][5] = new Array(1, 8); blockArray[2][5] = new Array(1, 8); blockArray[3][1] = new Array(1, 7); blockArray[3][5] = new Array(1, 8); blockArray[3][7] = new Array(1, 8); blockArray[4][0] = new Array(1, 7); blockArray[4][1] = new Array(1, 7); blockArray[4][3] = new Array(1, 6); blockArray[4][4] = new Array(1, 6); blockArray[4][5] = new Array(1, 8); blockArray[4][6] = new Array(1, 8); blockArray[4][7] = new Array(1, 8); blockArray[5][0] = new Array(1, 7); blockArray[5][1] = new Array(1, 6); blockArray[5][2] = new Array(1, 6); blockArray[5][3] = new Array(1, 6); blockArray[6][0] = new Array(1, 3); blockArray[6][1] = new Array(1, 3); blockArray[7][0] = new Array(1, 3); blockArray[7][1] = new Array(1, 3); blockArray[8][1] = new Array(1, 3); blockArray[8][2] = new Array(1, 3); blockArray[8][4] = new Array(1, 5); blockArray[9][0] = new Array(1, 5); blockArray[9][1] = new Array(1, 5); blockArray[9][2] = new Array(1, 5); blockArray[9][3] = new Array(1, 5); blockArray[9][4] = new Array(1, 5); blockArray[10][2] = new Array(1, 2); blockArray[10][3] = new Array(1, 9); blockArray[10][4] = new Array(1, 9); blockArray[11][3] = new Array(1, 9); blockArray[11][4] = new Array(1, 4); blockArray[11][5] = new Array(1, 4); blockArray[12][3] = new Array(1, 9); blockArray[12][5] = new Array(1, 4); blockArray[12][7] = new Array(1, 3); blockArray[13][3] = new Array(1, 9); blockArray[13][5] = new Array(1, 4); blockArray[13][6] = new Array(1, 4); blockArray[13][7] = new Array(1, 4); blockArray[14][0] = new Array(1, 9); blockArray[14][1] = new Array(1, 9); } else if (level == 18) { levelName = "Jellyfish"; correctArray[1][13] = new Array(1, 4); correctArray[2][12] = new Array(1, 4); correctArray[3][10] = new Array(1, 9); correctArray[3][11] = new Array(1, 9); correctArray[3][13] = new Array(1, 4); correctArray[3][14] = new Array(1, 3); correctArray[4][8] = new Array(1, 9); correctArray[4][9] = new Array(1, 9); correctArray[4][10] = new Array(1, 9); correctArray[4][11] = new Array(1, 4); correctArray[4][12] = new Array(1, 4); correctArray[5][7] = new Array(1, 6); correctArray[5][8] = new Array(1, 6); correctArray[5][11] = new Array(1, 4); correctArray[5][12] = new Array(1, 2); correctArray[6][7] = new Array(1, 7); correctArray[6][8] = new Array(1, 8); correctArray[6][9] = new Array(1, 8); correctArray[6][10] = new Array(1, 8); correctArray[6][11] = new Array(1, 4); correctArray[6][12] = new Array(1, 2); correctArray[6][13] = new Array(1, 2); correctArray[6][14] = new Array(1, 3); correctArray[7][7] = new Array(1, 7); correctArray[7][8] = new Array(1, 8); correctArray[7][9] = new Array(1, 6); correctArray[7][10] = new Array(1, 8); correctArray[7][11] = new Array(1, 6); correctArray[7][12] = new Array(1, 3); correctArray[8][7] = new Array(1, 7); correctArray[8][8] = new Array(1, 7); correctArray[8][11] = new Array(1, 6); correctArray[8][12] = new Array(1, 3); correctArray[8][13] = new Array(1, 5); correctArray[8][14] = new Array(1, 5); correctArray[9][8] = new Array(1, 7); correctArray[9][9] = new Array(1, 7); correctArray[9][10] = new Array(1, 7); correctArray[9][11] = new Array(1, 7); correctArray[9][12] = new Array(1, 3); correctArray[10][10] = new Array(1, 5); correctArray[10][11] = new Array(1, 5); correctArray[10][13] = new Array(1, 5); correctArray[10][14] = new Array(1, 5); correctArray[11][12] = new Array(1, 5); correctArray[12][13] = new Array(1, 7); blockArray[0][0] = new Array(1, 8); blockArray[0][1] = new Array(1, 8); blockArray[0][2] = new Array(1, 8); blockArray[0][5] = new Array(1, 9); blockArray[0][6] = new Array(1, 9); blockArray[0][7] = new Array(1, 3); blockArray[1][0] = new Array(1, 8); blockArray[1][1] = new Array(1, 2); blockArray[1][2] = new Array(1, 8); blockArray[1][3] = new Array(1, 9); blockArray[1][4] = new Array(1, 9); blockArray[1][5] = new Array(1, 9); blockArray[2][1] = new Array(1, 2); blockArray[2][2] = new Array(1, 2); blockArray[3][7] = new Array(1, 3); blockArray[4][5] = new Array(1, 3); blockArray[5][4] = new Array(1, 4); blockArray[5][5] = new Array(1, 3); blockArray[6][3] = new Array(1, 4); blockArray[6][5] = new Array(1, 3); blockArray[7][0] = new Array(1, 7); blockArray[7][1] = new Array(1, 7); blockArray[7][4] = new Array(1, 4); blockArray[8][0] = new Array(1, 7); blockArray[8][2] = new Array(1, 4); blockArray[8][3] = new Array(1, 4); blockArray[9][0] = new Array(1, 7); blockArray[9][1] = new Array(1, 6); blockArray[9][2] = new Array(1, 4); blockArray[9][3] = new Array(1, 6); blockArray[10][0] = new Array(1, 7); blockArray[10][1] = new Array(1, 7); blockArray[10][2] = new Array(1, 4); blockArray[10][3] = new Array(1, 6); blockArray[11][1] = new Array(1, 7); blockArray[11][2] = new Array(1, 7); blockArray[11][3] = new Array(1, 7); blockArray[11][4] = new Array(1, 7); blockArray[11][5] = new Array(1, 5); blockArray[11][6] = new Array(1, 5); blockArray[13][2] = new Array(1, 5); blockArray[13][3] = new Array(1, 5); blockArray[13][5] = new Array(1, 5); blockArray[13][6] = new Array(1, 5); blockArray[14][4] = new Array(1, 5); blockArray[14][6] = new Array(1, 7); } else if (level == 17) { levelName = "Dinosaur"; correctArray[1][9] = new Array(1, 6); correctArray[2][8] = new Array(1, 5); correctArray[2][9] = new Array(1, 6); correctArray[3][7] = new Array(1, 5); correctArray[3][9] = new Array(1, 6); correctArray[3][12] = new Array(1, 10); correctArray[3][13] = new Array(1, 10); correctArray[4][8] = new Array(1, 5); correctArray[4][9] = new Array(1, 6); correctArray[4][10] = new Array(1, 2); correctArray[4][12] = new Array(1, 10); correctArray[5][9] = new Array(1, 2); correctArray[5][10] = new Array(1, 2); correctArray[5][11] = new Array(1, 6); correctArray[5][12] = new Array(1, 6); correctArray[6][10] = new Array(1, 5); correctArray[6][11] = new Array(1, 6); correctArray[7][10] = new Array(1, 5); correctArray[7][11] = new Array(1, 10); correctArray[7][12] = new Array(1, 10); correctArray[7][15] = new Array(1, 8); correctArray[8][10] = new Array(1, 5); correctArray[8][11] = new Array(1, 9); correctArray[8][12] = new Array(1, 9); correctArray[8][13] = new Array(1, 9); correctArray[8][14] = new Array(1, 8); correctArray[8][15] = new Array(1, 8); correctArray[9][11] = new Array(1, 9); correctArray[10][11] = new Array(1, 8); correctArray[11][11] = new Array(1, 8); correctArray[12][11] = new Array(1, 8); correctArray[13][11] = new Array(1, 9); blockArray[0][0] = new Array(1, 6); blockArray[1][0] = new Array(1, 6); blockArray[1][1] = new Array(1, 9); blockArray[1][2] = new Array(1, 9); blockArray[1][3] = new Array(1, 9); blockArray[2][0] = new Array(1, 6); blockArray[2][1] = new Array(1, 9); blockArray[3][0] = new Array(1, 6); blockArray[4][2] = new Array(1, 6); blockArray[4][3] = new Array(1, 6); blockArray[5][2] = new Array(1, 6); blockArray[6][1] = new Array(1, 9); blockArray[7][1] = new Array(1, 5); blockArray[7][2] = new Array(1, 10); blockArray[7][3] = new Array(1, 10); blockArray[8][0] = new Array(1, 5); blockArray[8][2] = new Array(1, 10); blockArray[9][1] = new Array(1, 5); blockArray[9][6] = new Array(1, 8); blockArray[10][5] = new Array(1, 8); blockArray[10][6] = new Array(1, 8); blockArray[11][1] = new Array(1, 10); blockArray[11][2] = new Array(1, 10); blockArray[11][3] = new Array(1, 5); blockArray[12][1] = new Array(1, 2); blockArray[12][2] = new Array(1, 8); blockArray[12][3] = new Array(1, 5); blockArray[13][0] = new Array(1, 2); blockArray[13][1] = new Array(1, 2); blockArray[13][2] = new Array(1, 8); blockArray[13][3] = new Array(1, 5); blockArray[14][2] = new Array(1, 8); } else if (level == 16) { levelName = "RocketShip"; correctArray[4][11] = new Array(1, 7); correctArray[4][12] = new Array(1, 7); correctArray[5][9] = new Array(1, 7); correctArray[5][10] = new Array(1, 7); correctArray[5][11] = new Array(1, 8); correctArray[5][12] = new Array(1, 8); correctArray[5][13] = new Array(1, 9); correctArray[5][14] = new Array(1, 7); correctArray[6][5] = new Array(1, 2); correctArray[6][6] = new Array(1, 2); correctArray[6][7] = new Array(1, 2); correctArray[6][8] = new Array(1, 2); correctArray[6][9] = new Array(1, 2); correctArray[6][10] = new Array(1, 10); correctArray[6][11] = new Array(1, 10); correctArray[6][12] = new Array(1, 10); correctArray[6][13] = new Array(1, 7); correctArray[7][4] = new Array(1, 2); correctArray[7][5] = new Array(1, 6); correctArray[7][8] = new Array(1, 6); correctArray[7][9] = new Array(1, 2); correctArray[7][10] = new Array(1, 2); correctArray[7][11] = new Array(1, 10); correctArray[7][12] = new Array(1, 7); correctArray[8][5] = new Array(1, 6); correctArray[8][6] = new Array(1, 6); correctArray[8][7] = new Array(1, 6); correctArray[8][8] = new Array(1, 6); correctArray[8][9] = new Array(1, 3); correctArray[8][10] = new Array(1, 3); correctArray[8][11] = new Array(1, 3); correctArray[8][12] = new Array(1, 3); correctArray[8][13] = new Array(1, 3); correctArray[9][9] = new Array(1, 3); correctArray[9][10] = new Array(1, 3); correctArray[9][11] = new Array(1, 10); correctArray[9][12] = new Array(1, 5); correctArray[9][13] = new Array(1, 5); correctArray[9][14] = new Array(1, 5); correctArray[10][11] = new Array(1, 10); correctArray[10][12] = new Array(1, 10); blockArray[0][0] = new Array(1, 3); blockArray[0][1] = new Array(1, 3); blockArray[0][2] = new Array(1, 3); blockArray[0][3] = new Array(1, 3); blockArray[0][4] = new Array(1, 3); blockArray[0][5] = new Array(1, 7); blockArray[0][6] = new Array(1, 7); blockArray[0][12] = new Array(1, 2); blockArray[0][13] = new Array(1, 2); blockArray[0][14] = new Array(1, 2); blockArray[0][15] = new Array(1, 2); blockArray[0][16] = new Array(1, 2); blockArray[1][0] = new Array(1, 3); blockArray[1][1] = new Array(1, 3); blockArray[1][3] = new Array(1, 7); blockArray[1][4] = new Array(1, 7); blockArray[1][8] = new Array(1, 7); blockArray[1][11] = new Array(1, 2); blockArray[1][16] = new Array(1, 2); blockArray[1][17] = new Array(1, 2); blockArray[2][7] = new Array(1, 7); blockArray[3][6] = new Array(1, 7); blockArray[7][15] = new Array(1, 10); blockArray[7][16] = new Array(1, 10); blockArray[7][17] = new Array(1, 10); blockArray[8][16] = new Array(1, 10); blockArray[10][16] = new Array(1, 10); blockArray[11][16] = new Array(1, 10); blockArray[11][17] = new Array(1, 10); blockArray[13][5] = new Array(1, 6); blockArray[13][8] = new Array(1, 6); blockArray[14][2] = new Array(1, 9); blockArray[14][5] = new Array(1, 6); blockArray[14][6] = new Array(1, 6); blockArray[14][7] = new Array(1, 6); blockArray[14][8] = new Array(1, 6); blockArray[14][9] = new Array(1, 5); blockArray[14][10] = new Array(1, 5); blockArray[14][11] = new Array(1, 5); blockArray[14][16] = new Array(1, 8); blockArray[14][17] = new Array(1, 8); } else if (level == 15) { levelName = "Flag"; correctArray[4][4] = new Array(1, 10); correctArray[4][5] = new Array(1, 2); correctArray[4][6] = new Array(1, 4); correctArray[4][7] = new Array(1, 4); correctArray[4][8] = new Array(1, 4); correctArray[4][9] = new Array(1, 5); correctArray[4][10] = new Array(1, 5); correctArray[4][11] = new Array(1, 5); correctArray[4][12] = new Array(1, 5); correctArray[4][13] = new Array(1, 5); correctArray[4][14] = new Array(1, 5); correctArray[5][4] = new Array(1, 10); correctArray[5][7] = new Array(1, 3); correctArray[6][3] = new Array(1, 7); correctArray[6][4] = new Array(1, 7); correctArray[6][5] = new Array(1, 7); correctArray[6][6] = new Array(1, 3); correctArray[7][3] = new Array(1, 8); correctArray[7][4] = new Array(1, 8); correctArray[7][5] = new Array(1, 7); correctArray[7][6] = new Array(1, 3); correctArray[8][4] = new Array(1, 8); correctArray[8][5] = new Array(1, 7); correctArray[8][6] = new Array(1, 3); correctArray[8][7] = new Array(1, 5); correctArray[9][5] = new Array(1, 9); correctArray[9][6] = new Array(1, 4); correctArray[9][7] = new Array(1, 5); correctArray[10][4] = new Array(1, 8); correctArray[10][5] = new Array(1, 9); correctArray[10][6] = new Array(1, 4); correctArray[11][4] = new Array(1, 8); blockArray[0][15] = new Array(1, 7); blockArray[0][16] = new Array(1, 7); blockArray[0][17] = new Array(1, 7); blockArray[1][16] = new Array(1, 10); blockArray[1][17] = new Array(1, 7); blockArray[2][16] = new Array(1, 10); blockArray[2][17] = new Array(1, 7); blockArray[3][17] = new Array(1, 2); blockArray[4][17] = new Array(1, 3); blockArray[5][16] = new Array(1, 3); blockArray[6][16] = new Array(1, 3); blockArray[7][16] = new Array(1, 3); blockArray[8][15] = new Array(1, 4); blockArray[8][16] = new Array(1, 4); blockArray[8][17] = new Array(1, 4); blockArray[9][12] = new Array(1, 5); blockArray[9][13] = new Array(1, 5); blockArray[9][14] = new Array(1, 5); blockArray[9][15] = new Array(1, 5); blockArray[9][16] = new Array(1, 5); blockArray[9][17] = new Array(1, 5); blockArray[10][12] = new Array(1, 8); blockArray[10][13] = new Array(1, 8); blockArray[11][13] = new Array(1, 8); blockArray[13][10] = new Array(1, 5); blockArray[13][13] = new Array(1, 8); blockArray[13][14] = new Array(1, 9); blockArray[13][15] = new Array(1, 4); blockArray[14][10] = new Array(1, 5); blockArray[14][13] = new Array(1, 8); blockArray[14][14] = new Array(1, 9); blockArray[14][15] = new Array(1, 4); } else if (level == 13) { levelName = "Truck"; correctArray[1][10] = new Array(1, 4); correctArray[2][9] = new Array(1, 4); correctArray[2][12] = new Array(1, 3); correctArray[2][13] = new Array(1, 3); correctArray[3][9] = new Array(1, 4); correctArray[3][11] = new Array(1, 2); correctArray[3][14] = new Array(1, 3); correctArray[4][7] = new Array(1, 5); correctArray[4][8] = new Array(1, 5); correctArray[4][9] = new Array(1, 3); correctArray[4][11] = new Array(1, 2); correctArray[4][14] = new Array(1, 3); correctArray[5][7] = new Array(1, 5); correctArray[5][8] = new Array(1, 4); correctArray[5][9] = new Array(1, 3); correctArray[5][12] = new Array(1, 2); correctArray[5][13] = new Array(1, 2); correctArray[6][6] = new Array(1, 9); correctArray[6][7] = new Array(1, 5); correctArray[6][8] = new Array(1, 4); correctArray[6][9] = new Array(1, 3); correctArray[6][10] = new Array(1, 3); correctArray[6][11] = new Array(1, 3); correctArray[7][6] = new Array(1, 9); correctArray[7][7] = new Array(1, 5); correctArray[7][8] = new Array(1, 4); correctArray[7][9] = new Array(1, 4); correctArray[7][10] = new Array(1, 4); correctArray[7][11] = new Array(1, 4); correctArray[7][12] = new Array(1, 4); correctArray[8][6] = new Array(1, 6); correctArray[8][9] = new Array(1, 8); correctArray[8][10] = new Array(1, 5); correctArray[8][11] = new Array(1, 5); correctArray[9][6] = new Array(1, 6); correctArray[9][9] = new Array(1, 8); correctArray[9][12] = new Array(1, 2); correctArray[9][13] = new Array(1, 2); correctArray[10][6] = new Array(1, 6); correctArray[10][7] = new Array(1, 8); correctArray[10][8] = new Array(1, 8); correctArray[10][9] = new Array(1, 6); correctArray[10][11] = new Array(1, 9); correctArray[10][14] = new Array(1, 10); correctArray[11][9] = new Array(1, 6); correctArray[11][11] = new Array(1, 9); correctArray[11][14] = new Array(1, 10); correctArray[12][9] = new Array(1, 6); correctArray[12][12] = new Array(1, 10); correctArray[12][13] = new Array(1, 10); correctArray[13][10] = new Array(1, 6); blockArray[0][0] = new Array(1, 9); blockArray[0][3] = new Array(1, 3); blockArray[0][4] = new Array(1, 3); blockArray[1][0] = new Array(1, 9); blockArray[1][3] = new Array(1, 2); blockArray[1][5] = new Array(1, 3); blockArray[2][0] = new Array(1, 3); blockArray[2][3] = new Array(1, 2); blockArray[2][5] = new Array(1, 3); blockArray[3][0] = new Array(1, 3); blockArray[3][4] = new Array(1, 2); blockArray[3][5] = new Array(1, 2); blockArray[4][0] = new Array(1, 3); blockArray[4][1] = new Array(1, 3); blockArray[4][2] = new Array(1, 3); blockArray[4][5] = new Array(1, 9); blockArray[5][3] = new Array(1, 8); blockArray[5][5] = new Array(1, 9); blockArray[6][3] = new Array(1, 8); blockArray[7][0] = new Array(1, 6); blockArray[7][1] = new Array(1, 8); blockArray[7][2] = new Array(1, 8); blockArray[7][3] = new Array(1, 4); blockArray[7][4] = new Array(1, 2); blockArray[7][5] = new Array(1, 2); blockArray[8][0] = new Array(1, 6); blockArray[8][2] = new Array(1, 4); blockArray[9][0] = new Array(1, 6); blockArray[9][2] = new Array(1, 4); blockArray[9][3] = new Array(1, 6); blockArray[10][0] = new Array(1, 5); blockArray[10][1] = new Array(1, 5); blockArray[10][3] = new Array(1, 6); blockArray[11][0] = new Array(1, 5); blockArray[11][1] = new Array(1, 4); blockArray[11][3] = new Array(1, 6); blockArray[12][0] = new Array(1, 5); blockArray[12][1] = new Array(1, 4); blockArray[12][4] = new Array(1, 6); blockArray[12][7] = new Array(1, 10); blockArray[13][0] = new Array(1, 5); blockArray[13][1] = new Array(1, 4); blockArray[13][2] = new Array(1, 4); blockArray[13][3] = new Array(1, 4); blockArray[13][4] = new Array(1, 4); blockArray[13][5] = new Array(1, 4); blockArray[13][7] = new Array(1, 10); blockArray[14][3] = new Array(1, 5); blockArray[14][4] = new Array(1, 5); blockArray[14][5] = new Array(1, 10); blockArray[14][6] = new Array(1, 10); } else if (level == 12) { levelName = "Comet"; correctArray[2][4] = new Array(1, 9); correctArray[3][4] = new Array(1, 9); correctArray[3][5] = new Array(1, 5); correctArray[3][6] = new Array(1, 5); correctArray[3][7] = new Array(1, 5); correctArray[3][8] = new Array(1, 5); correctArray[4][5] = new Array(1, 8); correctArray[4][8] = new Array(1, 6); correctArray[4][9] = new Array(1, 6); correctArray[4][10] = new Array(1, 6); correctArray[5][5] = new Array(1, 8); correctArray[5][6] = new Array(1, 8); correctArray[5][9] = new Array(1, 8); correctArray[6][6] = new Array(1, 8); correctArray[6][7] = new Array(1, 6); correctArray[6][8] = new Array(1, 6); correctArray[6][10] = new Array(1, 4); correctArray[6][11] = new Array(1, 4); correctArray[6][12] = new Array(1, 3); correctArray[7][7] = new Array(1, 6); correctArray[7][9] = new Array(1, 5); correctArray[7][10] = new Array(1, 3); correctArray[7][11] = new Array(1, 3); correctArray[7][12] = new Array(1, 3); correctArray[7][13] = new Array(1, 2); correctArray[8][7] = new Array(1, 6); correctArray[8][9] = new Array(1, 5); correctArray[8][10] = new Array(1, 4); correctArray[8][11] = new Array(1, 3); correctArray[8][12] = new Array(1, 3); correctArray[8][13] = new Array(1, 2); correctArray[9][9] = new Array(1, 5); correctArray[9][10] = new Array(1, 4); correctArray[9][11] = new Array(1, 4); correctArray[9][12] = new Array(1, 2); correctArray[9][13] = new Array(1, 2); correctArray[10][10] = new Array(1, 2); correctArray[10][11] = new Array(1, 2); correctArray[10][12] = new Array(1, 2); blockArray[0][0] = new Array(1, 9); blockArray[1][0] = new Array(1, 9); blockArray[2][1] = new Array(1, 4); blockArray[2][2] = new Array(1, 4); blockArray[4][1] = new Array(1, 4); blockArray[5][0] = new Array(1, 8); blockArray[5][1] = new Array(1, 4); blockArray[5][2] = new Array(1, 4); blockArray[6][0] = new Array(1, 8); blockArray[6][1] = new Array(1, 8); blockArray[6][4] = new Array(1, 8); blockArray[7][1] = new Array(1, 8); blockArray[8][0] = new Array(1, 5); blockArray[8][1] = new Array(1, 5); blockArray[8][2] = new Array(1, 5); blockArray[8][3] = new Array(1, 5); blockArray[8][5] = new Array(1, 2); blockArray[9][1] = new Array(1, 6); blockArray[9][2] = new Array(1, 6); blockArray[9][3] = new Array(1, 6); blockArray[9][5] = new Array(1, 2); blockArray[10][4] = new Array(1, 2); blockArray[10][5] = new Array(1, 2); blockArray[11][0] = new Array(1, 6); blockArray[11][1] = new Array(1, 6); blockArray[11][2] = new Array(1, 2); blockArray[11][3] = new Array(1, 2); blockArray[11][4] = new Array(1, 2); blockArray[12][0] = new Array(1, 6); blockArray[12][4] = new Array(1, 5); blockArray[12][7] = new Array(1, 3); blockArray[13][0] = new Array(1, 6); blockArray[13][4] = new Array(1, 5); blockArray[13][5] = new Array(1, 3); blockArray[13][6] = new Array(1, 3); blockArray[13][7] = new Array(1, 3); blockArray[14][4] = new Array(1, 5); blockArray[14][6] = new Array(1, 3); blockArray[14][7] = new Array(1, 3); } } function levels2() { if (level == 11) { levelName = "UFO"; correctArray[0][12] = new Array(1, 6); correctArray[1][12] = new Array(1, 6); correctArray[2][11] = new Array(1, 3); correctArray[2][12] = new Array(1, 6); correctArray[2][13] = new Array(1, 6); correctArray[3][10] = new Array(1, 10); correctArray[3][11] = new Array(1, 3); correctArray[3][12] = new Array(1, 3); correctArray[3][13] = new Array(1, 6); correctArray[3][14] = new Array(1, 6); correctArray[4][9] = new Array(1, 10); correctArray[4][10] = new Array(1, 10); correctArray[4][12] = new Array(1, 3); correctArray[4][13] = new Array(1, 3); correctArray[5][9] = new Array(1, 10); correctArray[5][10] = new Array(1, 4); correctArray[5][11] = new Array(1, 4); correctArray[5][12] = new Array(1, 4); correctArray[6][9] = new Array(1, 9); correctArray[6][10] = new Array(1, 4); correctArray[6][12] = new Array(1, 7); correctArray[6][13] = new Array(1, 3); correctArray[7][9] = new Array(1, 9); correctArray[7][10] = new Array(1, 4); correctArray[7][11] = new Array(1, 5); correctArray[7][12] = new Array(1, 5); correctArray[7][13] = new Array(1, 3); correctArray[8][9] = new Array(1, 9); correctArray[8][10] = new Array(1, 9); correctArray[8][12] = new Array(1, 5); correctArray[8][13] = new Array(1, 3); correctArray[9][9] = new Array(1, 8); correctArray[9][10] = new Array(1, 5); correctArray[9][11] = new Array(1, 5); correctArray[9][12] = new Array(1, 5); correctArray[10][9] = new Array(1, 8); correctArray[10][10] = new Array(1, 5); correctArray[10][12] = new Array(1, 7); correctArray[10][13] = new Array(1, 7); correctArray[11][10] = new Array(1, 5); correctArray[11][11] = new Array(1, 8); correctArray[11][12] = new Array(1, 8); correctArray[11][13] = new Array(1, 7); correctArray[11][14] = new Array(1, 7); correctArray[12][11] = new Array(1, 8); correctArray[12][12] = new Array(1, 8); correctArray[12][13] = new Array(1, 7); correctArray[13][12] = new Array(1, 9); correctArray[14][12] = new Array(1, 9); blockArray[0][1] = new Array(1, 10); blockArray[1][0] = new Array(1, 10); blockArray[1][1] = new Array(1, 10); blockArray[1][2] = new Array(1, 3); blockArray[2][0] = new Array(1, 10); blockArray[2][2] = new Array(1, 3); blockArray[2][3] = new Array(1, 3); blockArray[3][0] = new Array(1, 4); blockArray[3][1] = new Array(1, 4); blockArray[3][2] = new Array(1, 4); blockArray[3][3] = new Array(1, 3); blockArray[3][4] = new Array(1, 3); blockArray[4][0] = new Array(1, 4); blockArray[4][1] = new Array(1, 9); blockArray[5][0] = new Array(1, 4); blockArray[5][1] = new Array(1, 9); blockArray[5][2] = new Array(1, 5); blockArray[5][3] = new Array(1, 5); blockArray[5][4] = new Array(1, 3); blockArray[6][0] = new Array(1, 8); blockArray[6][1] = new Array(1, 9); blockArray[6][2] = new Array(1, 9); blockArray[6][3] = new Array(1, 5); blockArray[6][4] = new Array(1, 3); blockArray[7][0] = new Array(1, 8); blockArray[7][1] = new Array(1, 5); blockArray[7][2] = new Array(1, 5); blockArray[7][3] = new Array(1, 5); blockArray[7][4] = new Array(1, 3); blockArray[8][0] = new Array(1, 7); blockArray[8][1] = new Array(1, 5); blockArray[8][2] = new Array(1, 8); blockArray[8][3] = new Array(1, 8); blockArray[8][4] = new Array(1, 6); blockArray[9][1] = new Array(1, 5); blockArray[9][2] = new Array(1, 8); blockArray[9][3] = new Array(1, 8); blockArray[9][4] = new Array(1, 6); blockArray[10][4] = new Array(1, 6); blockArray[10][5] = new Array(1, 6); blockArray[11][4] = new Array(1, 9); blockArray[11][5] = new Array(1, 6); blockArray[11][6] = new Array(1, 6); blockArray[12][0] = new Array(1, 7); blockArray[12][1] = new Array(1, 7); blockArray[12][4] = new Array(1, 9); blockArray[13][1] = new Array(1, 7); blockArray[13][2] = new Array(1, 7); blockArray[14][1] = new Array(1, 7); } else if (level == 9) { levelName = "Alien 1"; correctArray[4][8] = new Array(1, 2); correctArray[4][9] = new Array(1, 2); correctArray[4][12] = new Array(1, 6); correctArray[5][7] = new Array(1, 3); correctArray[5][8] = new Array(1, 3); correctArray[5][9] = new Array(1, 2); correctArray[5][11] = new Array(1, 8); correctArray[6][6] = new Array(1, 9); correctArray[6][7] = new Array(1, 3); correctArray[6][9] = new Array(1, 2); correctArray[6][10] = new Array(1, 8); correctArray[6][12] = new Array(1, 6); correctArray[7][5] = new Array(1, 8); correctArray[7][6] = new Array(1, 9); correctArray[7][7] = new Array(1, 3); correctArray[7][8] = new Array(1, 3); correctArray[7][9] = new Array(1, 2); correctArray[7][11] = new Array(1, 8); correctArray[8][5] = new Array(1, 8); correctArray[8][6] = new Array(1, 9); correctArray[8][7] = new Array(1, 4); correctArray[8][8] = new Array(1, 4); correctArray[8][9] = new Array(1, 2); correctArray[8][11] = new Array(1, 6); correctArray[9][6] = new Array(1, 9); correctArray[9][7] = new Array(1, 4); correctArray[9][9] = new Array(1, 2); correctArray[9][10] = new Array(1, 6); correctArray[9][12] = new Array(1, 10); correctArray[10][7] = new Array(1, 4); correctArray[10][8] = new Array(1, 4); correctArray[10][9] = new Array(1, 2); correctArray[10][11] = new Array(1, 10); correctArray[11][8] = new Array(1, 3); correctArray[11][9] = new Array(1, 2); correctArray[11][12] = new Array(1, 10); blockArray[0][6] = new Array(1, 6); blockArray[1][1] = new Array(1, 3); blockArray[1][2] = new Array(1, 3); blockArray[1][6] = new Array(1, 8); blockArray[2][1] = new Array(1, 3); blockArray[2][5] = new Array(1, 8); blockArray[2][6] = new Array(1, 6); blockArray[3][0] = new Array(1, 8); blockArray[3][1] = new Array(1, 3); blockArray[3][2] = new Array(1, 3); blockArray[3][6] = new Array(1, 8); blockArray[4][0] = new Array(1, 8); blockArray[4][5] = new Array(1, 6); blockArray[5][4] = new Array(1, 6); blockArray[6][0] = new Array(1, 9); blockArray[6][2] = new Array(1, 2); blockArray[6][3] = new Array(1, 2); blockArray[7][0] = new Array(1, 9); blockArray[7][2] = new Array(1, 3); blockArray[7][3] = new Array(1, 2); blockArray[8][0] = new Array(1, 9); blockArray[8][1] = new Array(1, 4); blockArray[8][2] = new Array(1, 4); blockArray[8][3] = new Array(1, 2); blockArray[9][0] = new Array(1, 9); blockArray[9][1] = new Array(1, 4); blockArray[9][3] = new Array(1, 2); blockArray[10][1] = new Array(1, 4); blockArray[10][2] = new Array(1, 4); blockArray[10][3] = new Array(1, 2); blockArray[11][3] = new Array(1, 2); blockArray[12][3] = new Array(1, 2); blockArray[12][5] = new Array(1, 10); blockArray[13][3] = new Array(1, 2); blockArray[13][4] = new Array(1, 10); blockArray[14][5] = new Array(1, 10); } else if (level == 5) { levelName = "Turtle"; correctArray[4][8] = new Array(1, 10); correctArray[5][9] = new Array(1, 10); correctArray[6][8] = new Array(1, 6); correctArray[6][9] = new Array(1, 9); correctArray[6][10] = new Array(1, 5); correctArray[7][7] = new Array(1, 7); correctArray[7][8] = new Array(1, 6); correctArray[7][9] = new Array(1, 3); correctArray[8][7] = new Array(1, 6); correctArray[8][8] = new Array(1, 6); correctArray[8][9] = new Array(1, 9); correctArray[9][8] = new Array(1, 3); correctArray[9][9] = new Array(1, 9); correctArray[9][10] = new Array(1, 5); correctArray[10][9] = new Array(1, 10); blockArray[1][1] = new Array(1, 6); blockArray[2][0] = new Array(1, 5); blockArray[2][1] = new Array(1, 6); blockArray[3][0] = new Array(1, 6); blockArray[3][1] = new Array(1, 6); blockArray[4][0] = new Array(1, 7); blockArray[4][1] = new Array(1, 3); blockArray[5][0] = new Array(1, 5); blockArray[6][0] = new Array(1, 3); blockArray[7][0] = new Array(1, 10); blockArray[7][1] = new Array(1, 9); blockArray[8][1] = new Array(1, 10); blockArray[9][1] = new Array(1, 9); blockArray[10][1] = new Array(1, 9); blockArray[13][1] = new Array(1, 10); } else if (level == 14) { levelName = "Happy Face"; correctArray[4][9] = new Array(1, 3); correctArray[4][10] = new Array(1, 3); correctArray[4][12] = new Array(1, 3); correctArray[4][13] = new Array(1, 3); correctArray[5][9] = new Array(1, 5); correctArray[5][10] = new Array(1, 2); correctArray[5][12] = new Array(1, 3); correctArray[5][13] = new Array(1, 2); correctArray[5][14] = new Array(1, 7); correctArray[6][12] = new Array(1, 3); correctArray[6][13] = new Array(1, 7); correctArray[6][14] = new Array(1, 7); correctArray[7][12] = new Array(1, 2); correctArray[7][13] = new Array(1, 2); correctArray[7][14] = new Array(1, 7); correctArray[8][12] = new Array(1, 5); correctArray[8][13] = new Array(1, 6); correctArray[8][14] = new Array(1, 10); correctArray[9][9] = new Array(1, 5); correctArray[9][10] = new Array(1, 5); correctArray[9][12] = new Array(1, 6); correctArray[9][13] = new Array(1, 6); correctArray[9][14] = new Array(1, 10); correctArray[10][9] = new Array(1, 5); correctArray[10][10] = new Array(1, 10); correctArray[10][12] = new Array(1, 6); correctArray[10][13] = new Array(1, 10); blockArray[3][0] = new Array(1, 3); blockArray[3][1] = new Array(1, 3); blockArray[3][3] = new Array(1, 3); blockArray[3][4] = new Array(1, 3); blockArray[4][0] = new Array(1, 5); blockArray[4][3] = new Array(1, 3); blockArray[5][3] = new Array(1, 3); blockArray[7][3] = new Array(1, 5); blockArray[8][0] = new Array(1, 5); blockArray[8][1] = new Array(1, 5); blockArray[9][0] = new Array(1, 5); blockArray[9][1] = new Array(1, 7); blockArray[10][0] = new Array(1, 7); blockArray[10][1] = new Array(1, 7); blockArray[11][0] = new Array(1, 2); blockArray[11][1] = new Array(1, 7); blockArray[11][2] = new Array(1, 6); blockArray[11][3] = new Array(1, 2); blockArray[12][1] = new Array(1, 6); blockArray[12][2] = new Array(1, 6); blockArray[12][4] = new Array(1, 10); blockArray[13][1] = new Array(1, 6); blockArray[13][2] = new Array(1, 2); blockArray[13][3] = new Array(1, 2); blockArray[13][4] = new Array(1, 10); blockArray[14][0] = new Array(1, 10); blockArray[14][3] = new Array(1, 10); } } function levels3() { } function levels4() { } function levels5() { } function levelSetup() { if (level < 12) { _root.s1._visible = true; _root.s2._visible = true; } else { _root.s1._visible = false; _root.s2._visible = false; } timer = 0; bubbles = 0; startPlay = false; clicks = 0; levels1(); levels2(); if (level == 4) { levelName = "Bat"; correctArray[2][9] = new Array(1, 2); correctArray[2][10] = new Array(1, 2); correctArray[3][8] = new Array(1, 3); correctArray[3][11] = new Array(1, 2); correctArray[4][9] = new Array(1, 10); correctArray[5][10] = new Array(1, 10); correctArray[6][8] = new Array(1, 8); correctArray[6][9] = new Array(1, 10); correctArray[6][11] = new Array(1, 6); correctArray[7][9] = new Array(1, 10); correctArray[7][10] = new Array(1, 8); correctArray[7][11] = new Array(1, 6); correctArray[8][8] = new Array(1, 5); correctArray[8][9] = new Array(1, 5); correctArray[8][11] = new Array(1, 6); correctArray[9][10] = new Array(1, 3); correctArray[10][9] = new Array(1, 3); correctArray[11][8] = new Array(1, 3); correctArray[11][11] = new Array(1, 6); correctArray[12][9] = new Array(1, 6); correctArray[12][10] = new Array(1, 6); blockArray[3][0] = new Array(1, 3); blockArray[4][0] = new Array(1, 8); blockArray[4][1] = new Array(1, 2); blockArray[4][2] = new Array(1, 2); blockArray[5][0] = new Array(1, 10); blockArray[5][2] = new Array(1, 8); blockArray[5][3] = new Array(1, 2); blockArray[6][1] = new Array(1, 10); blockArray[6][2] = new Array(1, 6); blockArray[7][0] = new Array(1, 10); blockArray[7][2] = new Array(1, 6); blockArray[8][0] = new Array(1, 10); blockArray[8][2] = new Array(1, 6); blockArray[9][0] = new Array(1, 5); blockArray[9][1] = new Array(1, 5); blockArray[9][2] = new Array(1, 3); blockArray[10][1] = new Array(1, 3); blockArray[11][0] = new Array(1, 3); blockArray[11][2] = new Array(1, 6); blockArray[12][0] = new Array(1, 6); blockArray[12][1] = new Array(1, 6); } else if (level == 6) { levelName = "Ghost"; correctArray[5][7] = new Array(1, 2); correctArray[5][8] = new Array(1, 10); correctArray[5][9] = new Array(1, 10); correctArray[5][10] = new Array(1, 10); correctArray[5][11] = new Array(1, 2); correctArray[6][6] = new Array(1, 7); correctArray[6][7] = new Array(1, 10); correctArray[6][9] = new Array(1, 3); correctArray[6][10] = new Array(1, 3); correctArray[7][6] = new Array(1, 7); correctArray[7][7] = new Array(1, 10); correctArray[7][8] = new Array(1, 2); correctArray[7][9] = new Array(1, 2); correctArray[7][10] = new Array(1, 2); correctArray[7][11] = new Array(1, 2); correctArray[8][6] = new Array(1, 7); correctArray[8][7] = new Array(1, 10); correctArray[8][9] = new Array(1, 7); correctArray[8][10] = new Array(1, 7); correctArray[9][7] = new Array(1, 3); correctArray[9][8] = new Array(1, 3); correctArray[9][9] = new Array(1, 3); correctArray[9][10] = new Array(1, 3); correctArray[9][11] = new Array(1, 3); blockArray[2][1] = new Array(1, 10); blockArray[2][2] = new Array(1, 10); blockArray[2][3] = new Array(1, 10); blockArray[3][0] = new Array(1, 10); blockArray[3][2] = new Array(1, 3); blockArray[3][3] = new Array(1, 3); blockArray[4][0] = new Array(1, 10); blockArray[5][0] = new Array(1, 10); blockArray[6][0] = new Array(1, 3); blockArray[6][1] = new Array(1, 3); blockArray[6][2] = new Array(1, 3); blockArray[6][3] = new Array(1, 3); blockArray[6][4] = new Array(1, 3); blockArray[7][0] = new Array(1, 7); blockArray[8][0] = new Array(1, 7); blockArray[9][0] = new Array(1, 7); blockArray[9][3] = new Array(1, 7); blockArray[9][4] = new Array(1, 7); blockArray[10][0] = new Array(1, 2); blockArray[10][4] = new Array(1, 2); blockArray[12][1] = new Array(1, 2); blockArray[12][2] = new Array(1, 2); blockArray[12][3] = new Array(1, 2); blockArray[12][4] = new Array(1, 2); } else if (level == 3) { levelName = "Stairs"; correctArray[4][7] = new Array(1, 7); correctArray[4][8] = new Array(1, 6); correctArray[4][9] = new Array(1, 7); correctArray[4][10] = new Array(1, 7); correctArray[4][11] = new Array(1, 4); correctArray[4][12] = new Array(1, 4); correctArray[5][8] = new Array(1, 6); correctArray[5][9] = new Array(1, 6); correctArray[5][10] = new Array(1, 5); correctArray[5][11] = new Array(1, 4); correctArray[5][12] = new Array(1, 3); correctArray[6][9] = new Array(1, 6); correctArray[6][10] = new Array(1, 5); correctArray[6][11] = new Array(1, 4); correctArray[6][12] = new Array(1, 3); correctArray[7][10] = new Array(1, 5); correctArray[7][11] = new Array(1, 4); correctArray[7][12] = new Array(1, 3); correctArray[8][11] = new Array(1, 5); correctArray[8][12] = new Array(1, 3); correctArray[9][12] = new Array(1, 3); correctArray[11][11] = new Array(1, 2); correctArray[11][12] = new Array(1, 2); blockArray[3][0] = new Array(1, 7); blockArray[3][2] = new Array(1, 7); blockArray[3][3] = new Array(1, 7); blockArray[4][0] = new Array(1, 6); blockArray[5][0] = new Array(1, 6); blockArray[5][1] = new Array(1, 6); blockArray[6][1] = new Array(1, 6); blockArray[6][2] = new Array(1, 4); blockArray[6][3] = new Array(1, 4); blockArray[7][0] = new Array(1, 2); blockArray[7][1] = new Array(1, 2); blockArray[7][2] = new Array(1, 4); blockArray[8][0] = new Array(1, 3); blockArray[8][1] = new Array(1, 5); blockArray[8][2] = new Array(1, 4); blockArray[9][0] = new Array(1, 3); blockArray[9][1] = new Array(1, 5); blockArray[9][2] = new Array(1, 4); blockArray[10][0] = new Array(1, 3); blockArray[10][1] = new Array(1, 5); blockArray[11][0] = new Array(1, 3); blockArray[11][2] = new Array(1, 5); blockArray[12][0] = new Array(1, 3); } else if (level == 2) { levelName = "Paperboy"; correctArray[6][5] = new Array(1, 4); correctArray[6][6] = new Array(1, 6); correctArray[6][7] = new Array(1, 5); correctArray[6][9] = new Array(1, 6); correctArray[6][11] = new Array(1, 3); correctArray[6][12] = new Array(1, 3); correctArray[7][5] = new Array(1, 4); correctArray[7][6] = new Array(1, 6); correctArray[7][7] = new Array(1, 5); correctArray[7][8] = new Array(1, 5); correctArray[7][9] = new Array(1, 5); correctArray[7][10] = new Array(1, 7); correctArray[8][5] = new Array(1, 4); correctArray[8][6] = new Array(1, 6); correctArray[8][7] = new Array(1, 5); correctArray[8][9] = new Array(1, 7); correctArray[8][11] = new Array(1, 3); correctArray[8][12] = new Array(1, 3); correctArray[9][6] = new Array(1, 6); blockArray[4][0] = new Array(1, 6); blockArray[4][1] = new Array(1, 5); blockArray[4][3] = new Array(1, 6); blockArray[5][0] = new Array(1, 6); blockArray[5][1] = new Array(1, 5); blockArray[5][2] = new Array(1, 5); blockArray[5][3] = new Array(1, 5); blockArray[6][0] = new Array(1, 6); blockArray[6][1] = new Array(1, 5); blockArray[6][2] = new Array(1, 7); blockArray[7][0] = new Array(1, 6); blockArray[7][1] = new Array(1, 7); blockArray[8][0] = new Array(1, 4); blockArray[8][1] = new Array(1, 3); blockArray[8][2] = new Array(1, 3); blockArray[9][0] = new Array(1, 4); blockArray[10][0] = new Array(1, 4); blockArray[10][1] = new Array(1, 3); blockArray[10][2] = new Array(1, 3); } else if (level == 1) { levelName = "A"; correctArray[5][6] = new Array(1, 4); correctArray[5][7] = new Array(1, 4); correctArray[5][8] = new Array(1, 4); correctArray[5][9] = new Array(1, 3); correctArray[5][10] = new Array(1, 3); correctArray[6][5] = new Array(1, 6); correctArray[6][8] = new Array(1, 4); correctArray[7][5] = new Array(1, 6); correctArray[7][8] = new Array(1, 4); correctArray[8][6] = new Array(1, 3); correctArray[8][7] = new Array(1, 3); correctArray[8][8] = new Array(1, 6); correctArray[8][9] = new Array(1, 6); correctArray[8][10] = new Array(1, 3); blockArray[0][0] = new Array(1, 6); blockArray[1][0] = new Array(1, 6); blockArray[2][3] = new Array(1, 6); blockArray[2][4] = new Array(1, 6); blockArray[6][0] = new Array(1, 4); blockArray[6][1] = new Array(1, 4); blockArray[6][2] = new Array(1, 4); blockArray[7][2] = new Array(1, 4); blockArray[8][2] = new Array(1, 4); blockArray[11][3] = new Array(1, 3); blockArray[11][4] = new Array(1, 3); blockArray[14][0] = new Array(1, 3); blockArray[14][1] = new Array(1, 3); blockArray[14][4] = new Array(1, 3); } else if (level == 0) { levelName = "Square"; correctArray[6][7] = new Array(1, 2); correctArray[6][8] = new Array(1, 2); correctArray[6][9] = new Array(1, 2); correctArray[7][7] = new Array(1, 3); correctArray[7][8] = new Array(1, 3); correctArray[7][9] = new Array(1, 2); correctArray[8][7] = new Array(1, 4); correctArray[8][8] = new Array(1, 3); correctArray[8][9] = new Array(1, 2); blockArray[4][3] = new Array(1, 4); blockArray[6][2] = new Array(1, 3); blockArray[6][3] = new Array(1, 3); blockArray[7][3] = new Array(1, 3); blockArray[9][1] = new Array(1, 2); blockArray[9][2] = new Array(1, 2); blockArray[9][3] = new Array(1, 2); blockArray[10][3] = new Array(1, 2); blockArray[11][3] = new Array(1, 2); } else if (level == 8) { levelName = "Bomb"; correctArray[4][9] = new Array(1, 3); correctArray[4][10] = new Array(1, 4); correctArray[4][11] = new Array(1, 2); correctArray[5][8] = new Array(1, 8); correctArray[5][9] = new Array(1, 3); correctArray[5][10] = new Array(1, 4); correctArray[5][11] = new Array(1, 2); correctArray[5][12] = new Array(1, 3); correctArray[6][7] = new Array(1, 7); correctArray[6][8] = new Array(1, 8); correctArray[6][9] = new Array(1, 3); correctArray[6][10] = new Array(1, 4); correctArray[6][11] = new Array(1, 2); correctArray[6][12] = new Array(1, 3); correctArray[6][13] = new Array(1, 2); correctArray[7][6] = new Array(1, 9); correctArray[7][7] = new Array(1, 7); correctArray[7][8] = new Array(1, 8); correctArray[7][9] = new Array(1, 3); correctArray[7][10] = new Array(1, 4); correctArray[7][11] = new Array(1, 2); correctArray[7][12] = new Array(1, 3); correctArray[7][13] = new Array(1, 2); correctArray[8][5] = new Array(1, 9); correctArray[8][7] = new Array(1, 7); correctArray[8][9] = new Array(1, 3); correctArray[8][10] = new Array(1, 4); correctArray[8][11] = new Array(1, 2); correctArray[8][12] = new Array(1, 3); correctArray[8][13] = new Array(1, 2); correctArray[9][5] = new Array(1, 8); correctArray[9][8] = new Array(1, 6); correctArray[9][10] = new Array(1, 4); correctArray[9][11] = new Array(1, 2); correctArray[9][12] = new Array(1, 3); correctArray[10][9] = new Array(1, 4); correctArray[10][10] = new Array(1, 4); correctArray[10][11] = new Array(1, 2); blockArray[0][1] = new Array(1, 7); blockArray[1][1] = new Array(1, 7); blockArray[2][1] = new Array(1, 7); blockArray[2][2] = new Array(1, 2); blockArray[3][1] = new Array(1, 9); blockArray[3][2] = new Array(1, 2); blockArray[3][3] = new Array(1, 4); blockArray[4][0] = new Array(1, 9); blockArray[4][2] = new Array(1, 2); blockArray[4][3] = new Array(1, 4); blockArray[4][4] = new Array(1, 2); blockArray[5][2] = new Array(1, 2); blockArray[5][3] = new Array(1, 4); blockArray[5][4] = new Array(1, 2); blockArray[6][2] = new Array(1, 2); blockArray[6][3] = new Array(1, 4); blockArray[6][4] = new Array(1, 2); blockArray[7][2] = new Array(1, 2); blockArray[7][3] = new Array(1, 4); blockArray[8][2] = new Array(1, 2); blockArray[8][3] = new Array(1, 4); blockArray[9][1] = new Array(1, 3); blockArray[9][2] = new Array(1, 4); blockArray[9][3] = new Array(1, 4); blockArray[10][1] = new Array(1, 3); blockArray[10][2] = new Array(1, 6); blockArray[10][3] = new Array(1, 8); blockArray[10][4] = new Array(1, 3); blockArray[11][1] = new Array(1, 3); blockArray[11][3] = new Array(1, 8); blockArray[11][4] = new Array(1, 3); blockArray[12][1] = new Array(1, 3); blockArray[12][3] = new Array(1, 8); blockArray[12][4] = new Array(1, 3); blockArray[13][1] = new Array(1, 3); blockArray[13][4] = new Array(1, 3); blockArray[14][0] = new Array(1, 8); blockArray[14][4] = new Array(1, 3); } else if (level == 7) { levelName = "Heart"; correctArray[4][6] = new Array(1, 6); correctArray[4][7] = new Array(1, 5); correctArray[5][5] = new Array(1, 6); correctArray[5][6] = new Array(1, 6); correctArray[5][7] = new Array(1, 5); correctArray[5][8] = new Array(1, 4); correctArray[6][5] = new Array(1, 6); correctArray[6][6] = new Array(1, 5); correctArray[6][7] = new Array(1, 5); correctArray[6][8] = new Array(1, 4); correctArray[6][9] = new Array(1, 3); correctArray[7][6] = new Array(1, 5); correctArray[7][7] = new Array(1, 4); correctArray[7][8] = new Array(1, 4); correctArray[7][9] = new Array(1, 3); correctArray[7][10] = new Array(1, 4); correctArray[8][6] = new Array(1, 5); correctArray[8][7] = new Array(1, 4); correctArray[8][8] = new Array(1, 4); correctArray[8][9] = new Array(1, 3); correctArray[8][10] = new Array(1, 4); correctArray[9][5] = new Array(1, 2); correctArray[9][6] = new Array(1, 2); correctArray[9][7] = new Array(1, 2); correctArray[9][8] = new Array(1, 2); correctArray[9][9] = new Array(1, 3); correctArray[10][5] = new Array(1, 2); correctArray[10][7] = new Array(1, 3); correctArray[10][8] = new Array(1, 3); correctArray[11][6] = new Array(1, 5); correctArray[11][7] = new Array(1, 5); blockArray[0][3] = new Array(1, 5); blockArray[1][1] = new Array(1, 4); blockArray[1][3] = new Array(1, 5); blockArray[2][1] = new Array(1, 4); blockArray[2][2] = new Array(1, 5); blockArray[2][3] = new Array(1, 5); blockArray[3][0] = new Array(1, 4); blockArray[3][1] = new Array(1, 4); blockArray[3][2] = new Array(1, 5); blockArray[3][3] = new Array(1, 4); blockArray[4][0] = new Array(1, 4); blockArray[4][1] = new Array(1, 4); blockArray[4][2] = new Array(1, 5); blockArray[4][3] = new Array(1, 4); blockArray[5][2] = new Array(1, 6); blockArray[6][1] = new Array(1, 6); blockArray[6][2] = new Array(1, 6); blockArray[7][1] = new Array(1, 6); blockArray[7][2] = new Array(1, 5); blockArray[7][3] = new Array(1, 5); blockArray[8][2] = new Array(1, 3); blockArray[9][2] = new Array(1, 3); blockArray[10][2] = new Array(1, 3); blockArray[11][2] = new Array(1, 3); blockArray[12][0] = new Array(1, 3); blockArray[12][1] = new Array(1, 3); blockArray[13][0] = new Array(1, 2); blockArray[13][1] = new Array(1, 2); blockArray[13][2] = new Array(1, 2); blockArray[13][3] = new Array(1, 2); blockArray[14][0] = new Array(1, 2); } else if (level == 10) { levelName = "Alien 2"; correctArray[2][9] = new Array(1, 9); correctArray[2][10] = new Array(1, 9); correctArray[2][11] = new Array(1, 9); correctArray[3][8] = new Array(1, 8); correctArray[3][9] = new Array(1, 8); correctArray[4][5] = new Array(1, 7); correctArray[4][7] = new Array(1, 5); correctArray[4][8] = new Array(1, 8); correctArray[4][9] = new Array(1, 8); correctArray[4][10] = new Array(1, 6); correctArray[4][11] = new Array(1, 8); correctArray[5][6] = new Array(1, 7); correctArray[5][7] = new Array(1, 5); correctArray[5][9] = new Array(1, 6); correctArray[5][10] = new Array(1, 6); correctArray[5][12] = new Array(1, 8); correctArray[6][7] = new Array(1, 5); correctArray[6][8] = new Array(1, 5); correctArray[6][9] = new Array(1, 5); correctArray[6][10] = new Array(1, 7); correctArray[6][12] = new Array(1, 8); correctArray[7][7] = new Array(1, 10); correctArray[7][8] = new Array(1, 10); correctArray[7][9] = new Array(1, 10); correctArray[7][10] = new Array(1, 7); correctArray[8][7] = new Array(1, 4); correctArray[8][8] = new Array(1, 4); correctArray[8][9] = new Array(1, 4); correctArray[8][10] = new Array(1, 7); correctArray[8][12] = new Array(1, 7); correctArray[9][6] = new Array(1, 4); correctArray[9][7] = new Array(1, 6); correctArray[9][9] = new Array(1, 5); correctArray[9][10] = new Array(1, 7); correctArray[9][12] = new Array(1, 7); correctArray[10][5] = new Array(1, 4); correctArray[10][7] = new Array(1, 6); correctArray[10][8] = new Array(1, 6); correctArray[10][9] = new Array(1, 5); correctArray[10][10] = new Array(1, 9); correctArray[10][11] = new Array(1, 9); correctArray[11][8] = new Array(1, 5); correctArray[12][9] = new Array(1, 10); correctArray[12][10] = new Array(1, 10); correctArray[12][11] = new Array(1, 10); blockArray[0][12] = new Array(1, 8); blockArray[0][13] = new Array(1, 8); blockArray[0][14] = new Array(1, 9); blockArray[0][15] = new Array(1, 9); blockArray[0][16] = new Array(1, 9); blockArray[1][12] = new Array(1, 8); blockArray[1][13] = new Array(1, 8); blockArray[1][15] = new Array(1, 8); blockArray[2][16] = new Array(1, 8); blockArray[3][16] = new Array(1, 8); blockArray[5][14] = new Array(1, 5); blockArray[6][0] = new Array(1, 10); blockArray[6][1] = new Array(1, 10); blockArray[6][2] = new Array(1, 10); blockArray[6][14] = new Array(1, 5); blockArray[7][2] = new Array(1, 4); blockArray[7][3] = new Array(1, 4); blockArray[7][4] = new Array(1, 4); blockArray[7][14] = new Array(1, 5); blockArray[7][15] = new Array(1, 5); blockArray[7][16] = new Array(1, 5); blockArray[8][1] = new Array(1, 4); blockArray[8][14] = new Array(1, 6); blockArray[8][15] = new Array(1, 9); blockArray[8][16] = new Array(1, 9); blockArray[9][0] = new Array(1, 4); blockArray[9][1] = new Array(1, 7); blockArray[9][13] = new Array(1, 6); blockArray[9][14] = new Array(1, 6); blockArray[10][2] = new Array(1, 7); blockArray[10][16] = new Array(1, 5); blockArray[11][2] = new Array(1, 10); blockArray[11][3] = new Array(1, 10); blockArray[11][4] = new Array(1, 10); blockArray[11][6] = new Array(1, 7); blockArray[11][16] = new Array(1, 5); blockArray[12][6] = new Array(1, 7); blockArray[12][15] = new Array(1, 5); blockArray[13][6] = new Array(1, 7); blockArray[13][8] = new Array(1, 7); blockArray[13][11] = new Array(1, 6); blockArray[14][6] = new Array(1, 7); blockArray[14][8] = new Array(1, 7); blockArray[14][11] = new Array(1, 6); blockArray[14][12] = new Array(1, 6); } levelWords = levelName; } levelName = ""; function cleanUp() { correctPic.swapDepths(9999); removeMovieClip(correctPic); i = 0; while (i <= blocks) { _root["b" + i].swapDepths(9999); removeMovieClip(_root["b" + i]); i++; } } function setup() { win = false; _root.level++; blockArray = new Array(); correctArray = new Array(); groupBlocks = new Array(); i = 0; while (i < 20) { groupBlocks[i] = new Array(); i++; } createEmptyMovieClip("correctPic", 10000); correctPic.lineStyle(2, 0, 0); correctPic._alpha = 0; blocks = 0; minX = 15; minY = 15; correctPic._x = correctPic._x + minX; correctPic._y = correctPic._y + minY; blockW = block._width - 1; blockH = block._height - 1; rows = 15; cols = 18; wait = 0; moveT = 2; check._visible = false; i = 0; while (i < rows) { correctArray[i] = new Array(); blockArray[i] = new Array(); j = 0; while (j < cols) { correctArray[i][j] = new Array(0, 0); blockArray[i][j] = new Array(0, 0); j++; } i++; } dir = 0; } function setup2() { trace(Math.round((level + 1) % 3)); bg.gotoAndStop(level + 1); i = 0; while (i < rows) { j = 0; while (j < cols) { if (correctArray[i][j][0] != 0) { correctPic.beginFill(0); correctPic.moveTo(Math.floor(i * blockW), Math.floor(j * blockH)); correctPic.lineTo(Math.floor(i * blockW), Math.floor((j * blockH) + blockH)); correctPic.lineTo(Math.floor((i * blockW) + blockW), Math.floor((j * blockH) + blockH)); correctPic.lineTo(Math.floor((i * blockW) + blockW), Math.floor(j * blockH)); correctPic.lineTo(Math.floor(i * blockW), Math.floor(j * blockH)); correctPic.endFill(); } if (blockArray[i][j][0] != 0) { blocks++; duplicateMovieClip (_root.block, "b" + blocks, _root.getNextHighestDepth()); _root["b" + blocks]._x = Math.floor((i * blockW) + minX); _root["b" + blocks]._y = Math.floor((j * blockH) + minY); _root["b" + blocks].x = i; _root["b" + blocks].y = j; _root["b" + blocks]._alpha = 0; _root["b" + blocks].num = blocks; _root["b" + blocks].num2 = blockArray[i][j][1]; _root["b" + blocks].b.gotoAndStop(blockArray[i][j][1]); _root["b" + blocks].lock = false; groupBlocks[blockArray[i][j][1]].push(blocks); blockArray[i][j][0] = blocks; } j++; } i++; } mouse = false; selectBlock = 0; xDiff = 0; yDiff = 0; posMove = false; blocksMove = new Array(); } function checkWin() { win = true; i = 0; while (i < rows) { j = 0; while (j < cols) { if (correctArray[i][j][0] != 0) { if (blockArray[i][j][0] == 0) { win = false; } } j++; } i++; } if (win) { i = 0; while (i < rows) { j = 0; while (j < cols) { _root["b" + blockArray[i][j][0]].b.gotoAndStop(100); j++; } i++; } } } function checkMove(num, x, y, xC, yC) { if (_root.posMove) { if (!blocksCheck[num]) { if (_root["b" + num].lock) { _root.posMove = false; } blocksMove.push(num); blocksCheck[num] = true; l = 0; while (l < groupBlocks[_root["b" + num].num2].length) { number = groupBlocks[_root["b" + num].num2][l]; checkMove(number, _root["b" + number].x, _root["b" + number].y, xC, yC); l++; } if (((((x + xC) >= 0) && ((y + yC) >= 0)) && ((x + xC) < rows)) && ((y + yC) < cols)) { if (blockArray[x + xC][y + yC][0] != 0) { number = blockArray[x + xC][y + yC][0]; checkMove(number, _root["b" + number].x, _root["b" + number].y, xC, yC); } } else { _root.posMove = false; } } } } function createLines() { cwait++; if (cwait > 5) { cwait = 0; cnum++; lineMc = createEmptyMovieClip("lines" + cnum, cnum); lineMc.lineStyle(0.5, 16777215, 100); lineMc.ypos = 0; lineMc._x = Math.random() * Stage.width; lineMc._rotation = (Math.random() * 100) - 50; lineMc._alpha = 70; lineMc.onEnterFrame = function () { this.lineStyle(0.5, 16777215, 100); this.moveTo(0, 0); this.ypos = this.ypos + 30; this.lineTo(0, this.ypos); this._alpha = this._alpha - 5; if (this._alpha <= 0) { removeMovieClip(this); } }; } } function checkStarOver() { j = 1; while (j < 4) { if (_root["s" + j]._visible) { if (_root["s" + j].hitTest(_xmouse, _ymouse, true)) { des._visible = true; des.gotoAndStop(j); desText = desArray[level][j - 1]; return(undefined); } } j++; } des._visible = false; desText = ""; } function checkStarC() { pauseMc.happy._visible = false; if (level == 0) { if (win) { starArray[0][0] = true; } if (des._visible && (des._currentframe == 2)) { starArray[0][1] = true; } if (win && (cleanWait > 0)) { starArray[0][2] = true; } } else if (level == 1) { if (win) { starArray[1][0] = true; } if (pauseMc._visible) { starArray[1][1] = true; } if (restart) { starArray[1][2] = true; } } else if (level == 2) { if (win) { starArray[2][0] = true; } if (win && (clicks == 1)) { starArray[2][2] = true; } } else if (level == 3) { if (win) { starArray[3][0] = true; } if (bubbles >= 10) { starArray[3][1] = true; } if (win && (clicks <= 5)) { starArray[3][2] = true; } } else if (level == 4) { _root.pauseMc.happy._visible = true; if (win) { starArray[4][0] = true; } if (pauseM && (pauseMc.happy.hitTest(_xmouse, _ymouse, true))) { pauseMc.happy._alpha = 100; starArray[4][1] = true; } else { pauseMc.happy._alpha = 10; } if ((win && (cleanWait == 1)) && (clicks == 100)) { starArray[4][2] = true; } } else if (level == 5) { if (win) { starArray[5][0] = true; } if (win && (timer < 30)) { starArray[5][1] = true; } if (win && (clicks <= 3)) { starArray[5][2] = true; } } else if (level == 6) { if (win) { starArray[6][0] = true; } if (bubbles >= 50) { starArray[6][2] = true; } } else if (level == 7) { if (win) { starArray[7][0] = true; } if (win && (timer < 20)) { starArray[7][1] = true; } if (win && (clicks <= 3)) { starArray[7][2] = true; } } else if (level == 8) { if (win) { starArray[8][0] = true; } if (win && (timer < 20)) { starArray[8][1] = true; } if (win && (clicks <= 6)) { starArray[8][2] = true; } } else if (level == 9) { if (win) { starArray[9][0] = true; } if (win && (timer < 45)) { starArray[9][1] = true; } if (win && (clicks <= 10)) { starArray[9][2] = true; } } else if (level == 10) { if (win) { starArray[10][0] = true; } if (win && (timer < 60)) { starArray[10][1] = true; } if (win && (clicks <= 14)) { starArray[10][2] = true; } } else if (level == 11) { if (win) { starArray[11][0] = true; } if (win && (timer < 80)) { starArray[11][1] = true; } if (bubbles >= 500) { starArray[11][2] = true; } } else if (level > 11) { if (win) { starArray[level][2] = true; } } } function showStarC() { j = 1; while (j < 4) { if (starArray[level][j - 1]) { _root["s" + j].gotoAndStop(1); } else { _root["s" + j].gotoAndStop(2); } j++; } } function pauseGame() { if (Key.isDown(80)) { if (!pClick) { pClick = true; if (!pauseM) { pauseM = true; i = 1; while (i <= blocks) { _root["b" + i]._visible = false; i++; } correctPic._visible = false; pauseMc._visible = true; } else { correctPic._visible = true; pauseM = false; i = 1; while (i <= blocks) { _root["b" + i]._visible = true; i++; } pauseMc._visible = false; } } } else { pClick = false; } } desArray = new Array(new Array("Beat Level", "Check Star Description", "Destroy the Finished Block"), new Array("Beat Level", "Pause Game (Press 'P')", "Restart Level"), new Array("Beat Level", "Lock Puzzle Piece (CTRL +Click)", "Beat level in 1 Click"), new Array("Beat Level", "Pop 10 Bubbles", "Beat level in 5 or Less Clicks"), new Array("Beat Level", "Find the Hidden Happy Face", "Destroy the Bat on your 100th Click"), new Array("Beat Level", "Win in < 30 seconds (Top-Right Corner)", "Beat Level in 3 or Less Clicks"), new Array("Beat Level", "Play Pacman in the Pause Menu", "Pop 50 Bubbles"), new Array("Beat Level", "Win in < 15 seconds (Top-Right Corner)", "Win in 3 or Less Clicks"), new Array("Beat Level", "Win in < 20 seconds (Top-Right Corner)", "Win in 6 or Less Clicks"), new Array("Beat Level", "Win in < 45 seconds (Top-Right Corner)", "Win in 10 or Less Clicks"), new Array("Beat Level", "Win in < 60 seconds (Top-Right Corner)", "Win in 14 or less Clicks"), new Array("Beat Level", "Win in < 80 seconds (Top-Right Corner)", "Pop 500 Bubbles"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level")); menuGo = false; setup(); _root.levelSetup(); setup2(); onMouseDown = function () { if (!mouse) { if (!pauseM) { if ((((_xmouse >= 0) && (_xmouse <= Stage.width)) && (_ymouse >= 0)) && (_ymouse <= Stage.height)) { if (!Key.isDown(17)) { clicks++; } } } } mouse = true; }; onMouseUp = function () { mouse = false; }; bubbles = 0; cleanWait = 0; startPlay = false; restart = false; pauseM = false; pClick = false; pauseMc._visible = false; timer = 0; onEnterFrame = function () { if (!win) { if (clicks >= 1) { if (timer < 0.5) { timer = 0.5; } timer = timer + 0.03333333; } } timerC = Math.floor(timer); bubbleC = bubbles; pauseGame(); checkStarOver(); checkStarC(); showStarC(); if (pauseM) { } else { if (menuGo) { level--; cleanUp(); win = false; cleanWait = 0; menuGo = false; _root.gotoAndStop("menu"); } if (restart) { level--; cleanUp(); setup(); levelSetup(); setup2(); win = false; cleanWait = 0; restart = false; } spawnCircles(); if (!win) { if (correctPic._alpha < 30) { correctPic._alpha = correctPic._alpha + 2; } if (_root["b" + blocks]._alpha < 100) { i = 1; while (i <= blocks) { _root["b" + i]._alpha = _root["b" + i]._alpha + 10; i++; } } else { startPlay = true; } if (startPlay) { if ((dir == 0) && (wait == 0)) { if (mouse) { if (selectBlock == 0) { if (!clicked) { clicked = true; i = 1; while (i <= blocks) { if (_root["b" + i].hitTest(_xmouse, _ymouse, true)) { if (!Key.isDown(17)) { selectBlock = i; xDiff = _root["b" + i]._x - _xmouse; yDiff = _root["b" + i]._y - _ymouse; } else { if (level == 2) { starArray[2][1] = true; } if (_root["b" + i].lock) { l = 0; while (l < groupBlocks[_root["b" + i].num2].length) { _root["b" + groupBlocks[_root["b" + i].num2][l]].b.gotoAndStop(_root["b" + groupBlocks[_root["b" + i].num2][l]].num2); _root["b" + groupBlocks[_root["b" + i].num2][l]].lock = false; l++; } } else { l = 0; while (l < groupBlocks[_root["b" + i].num2].length) { _root["b" + groupBlocks[_root["b" + i].num2][l]].b.gotoAndStop(100); _root["b" + groupBlocks[_root["b" + i].num2][l]].lock = true; l++; } } } } i++; } } } else if (lastTime == 0) { blocksCheck = new Array(); posMove = false; if (_ymouse < (_root["b" + selectBlock]._y - (blockH / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, -1); if (posMove) { dir = 3; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x][y - 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].y--; i++; } } } else if (_ymouse > ((_root["b" + selectBlock]._y + blockH) + (blockH / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, 1); if (posMove) { dir = 4; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x][y + 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].y++; i++; } } } if (!posMove) { blocksCheck = new Array(); if (_xmouse < (_root["b" + selectBlock]._x - (blockW / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, -1, 0); if (posMove) { dir = 1; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x - 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].x--; i++; } } } else if (_xmouse > ((_root["b" + selectBlock]._x + blockW) + (blockW / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 1, 0); if (posMove) { dir = 2; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x + 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].x++; i++; } } } } lastTime = 1; } else { blocksCheck = new Array(); posMove = false; if (_xmouse < (_root["b" + selectBlock]._x - (blockW / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, -1, 0); if (posMove) { dir = 1; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x - 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].x--; i++; } } } else if (_xmouse > ((_root["b" + selectBlock]._x + blockW) + (blockW / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 1, 0); if (posMove) { dir = 2; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x + 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].x++; i++; } } } if (!posMove) { blocksCheck = new Array(); if (_ymouse < (_root["b" + selectBlock]._y - (blockH / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, -1); if (posMove) { dir = 3; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x][y - 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].y--; i++; } } } else if (_ymouse > ((_root["b" + selectBlock]._y + blockH) + (blockH / 4))) { _root.posMove = true; blocksMove = new Array(); checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, 1); if (posMove) { dir = 4; i = 0; while (i < blocksMove.length) { x = _root["b" + blocksMove[i]].x; y = _root["b" + blocksMove[i]].y; if (blockArray[x][y][0] == blocksMove[i]) { blockArray[x][y] = new Array(0, 0); } blockArray[x][y + 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2); _root["b" + blocksMove[i]].y++; i++; } } } } lastTime = 0; } } else { selectBlock = 0; clicked = false; } } else { if (dir == 1) { i = 0; while (i < blocksMove.length) { _root["b" + blocksMove[i]]._x = _root["b" + blocksMove[i]]._x - (blockW / moveT); i++; } } else if (dir == 2) { i = 0; while (i < blocksMove.length) { _root["b" + blocksMove[i]]._x = _root["b" + blocksMove[i]]._x + (blockW / moveT); i++; } } else if (dir == 3) { i = 0; while (i < blocksMove.length) { _root["b" + blocksMove[i]]._y = _root["b" + blocksMove[i]]._y - (blockH / moveT); i++; } } else if (dir == 4) { i = 0; while (i < blocksMove.length) { _root["b" + blocksMove[i]]._y = _root["b" + blocksMove[i]]._y + (blockH / moveT); i++; } } wait++; if (wait == moveT) { i = 0; while (i < blocksMove.length) { _root["b" + blocksMove[i]]._x = Math.floor((_root["b" + blocksMove[i]].x * blockW) + minX); _root["b" + blocksMove[i]]._y = Math.floor((_root["b" + blocksMove[i]].y * blockH) + minY); i++; } checkWin(); if (win) { check._visible = true; } wait = 0; wait = 10; dir = 0; } else if (wait >= 10) { wait = 0; } } } } else { if (cleanWait >= 1) { if (cleanWait == 1) { correctPic.clear(); i = 1; while (i <= blocks) { _root["b" + i].xspd = (Math.random() * 20) - 10; _root["b" + i].yspd = (Math.random() * -15) - 5; _root["b" + i].grav = 1; i++; } } cleanWait++; i = 1; while (i <= blocks) { _root["b" + i]._x = _root["b" + i]._x + _root["b" + i].xspd; _root["b" + i].yspd = _root["b" + i].yspd + _root["b" + i].grav; _root["b" + i]._y = _root["b" + i]._y + _root["b" + i].yspd; _root["b" + i]._alpha = _root["b" + i]._alpha - 2; i++; } if (_root["b" + blocks]._alpha <= 0) { if (_root.level < 23) { cleanUp(); setup(); levelSetup(); setup2(); win = false; cleanWait = 0; } else { _root.menuGo = true; } } } if (mouse) { if (!clicked) { i = 1; while (i <= blocks) { if (_root["b" + i].hitTest(_xmouse, _ymouse, true)) { cleanWait++; break; } i++; } } } else { clicked = false; } } clicksShow = "Clicks " + clicks; } };
Symbol 16 Button
on (press) { getURL ("http://www.armorgames.com/", _blank); }
Symbol 35 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 126
_root.nextFrame();
Symbol 58 MovieClip Frame 94
_root.nextFrame();
Symbol 65 Button
on (release) { _root.nextFrame(); } on (rollOver) { _root.bg.gotoAndStop(1); }
Symbol 71 Button
on (rollOver) { creds._visible = true; _root.bg.gotoAndStop(4); } on (rollOut) { creds._visible = false; }
Symbol 75 Button
on (rollOver) { _root.bg.gotoAndStop(8); } on (press) { getURL ("http://www.armorgames.com/", _blank); }
Symbol 91 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
stop();
Symbol 146 Button
on (release) { trace("//--------------"); i = 0; while (i < 15) { j = 0; while (j < 18) { if (blockArray[i][j][0] >= 1) { trace(((((("blockArray[" + i) + "][") + j) + "] = new Array(1,") + _root.blockArray[i][j][1]) + ");"); } j++; } i++; } }
Instance of Symbol 154 MovieClip in Symbol 161 MovieClip Frame 1
onClipEvent (load) { _visible = false; spd = 5; } onClipEvent (enterFrame) { if (_root.pauseM && (_root.level == 6)) { _parent.akeys._visible = true; _visible = true; i = 1; while (i < 13) { _parent["c" + i]._visible = true; i++; } if (Key.isDown(37)) { _rotation = 180; _x = (_x - spd); } else if (Key.isDown(39)) { _rotation = 0; _x = (_x + spd); } else if (Key.isDown(38)) { _rotation = -90; _y = (_y - spd); } else if (Key.isDown(40)) { _rotation = 90; _y = (_y + spd); } if (_x < (30 - _parent._x)) { _x = (30 - _parent._x); } if (_x > ((Stage.width - 30) - _parent._x)) { _x = ((Stage.width - 30) - _parent._x); } if (_y < (30 - _parent._y)) { _y = (30 - _parent._y); } if (_y > ((Stage.height - 100) - _parent._y)) { _y = ((Stage.height - 100) - _parent._y); } alpha = true; i = 1; while (i < 13) { if (_parent["c" + i]._alpha != 0) { alpha = false; } if (this.hitTest(_parent["c" + i])) { _parent["c" + i]._alpha = 0; } i++; } if (alpha) { _parent.c13._visible = true; } if (this.hitTest(_parent.c13)) { if (_parent.c13._visible) { _parent.c13._alpha = 0; _root.starArray[6][1] = true; } } } else { _parent.akeys._visible = false; i = 1; while (i < 14) { _root.pauseMc["c" + i]._visible = false; i++; } _visible = false; } }
Symbol 166 Button
on (release) { _root.restart = true; }
Symbol 174 Button
on (release) { _root.menuGo = true; }
Symbol 179 MovieClip Frame 1
stop();

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [circle]Uses:1
Symbol 3 GraphicUsed by:Timeline
Symbol 4 BitmapUsed by:5
Symbol 5 GraphicUses:4Used by:6
Symbol 6 MovieClipUses:5Used by:Timeline
Symbol 7 GraphicUsed by:Timeline
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:Timeline
Symbol 11 GraphicUsed by:12 16
Symbol 12 MovieClipUses:11Used by:15 41
Symbol 13 GraphicUsed by:14 16
Symbol 14 MovieClipUses:13Used by:15 41
Symbol 15 MovieClipUses:12 14Used by:16
Symbol 16 ButtonUses:15 11 13Used by:Timeline
Symbol 17 GraphicUsed by:20 84
Symbol 18 FontUsed by:19 25 79 169
Symbol 19 TextUses:18Used by:20
Symbol 20 MovieClipUses:17 19Used by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:Timeline
Symbol 24 GraphicUsed by:Timeline
Symbol 25 TextUses:18Used by:26
Symbol 26 MovieClipUses:25Used by:Timeline
Symbol 27 FontUsed by:28 60 63 64 66 68 69 72 73 74 88 92 93 94 95 96 97 98 99 100 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 142 147 148 149 159 162 163 164 167 168 170 171 172 180
Symbol 28 TextUses:27Used by:Timeline
Symbol 29 GraphicUsed by:35
Symbol 30 GraphicUsed by:35
Symbol 31 GraphicUsed by:35
Symbol 32 GraphicUsed by:35  Timeline
Symbol 33 GraphicUsed by:35
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:29 30 31 32 33 34Used by:Timeline
Symbol 36 GraphicUsed by:Timeline
Symbol 37 GraphicUsed by:Timeline
Symbol 38 GraphicUsed by:41
Symbol 39 GraphicUsed by:41
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:12 38 39 40 14 SS1Used by:Timeline
Symbol 42 GraphicUsed by:Timeline
Symbol 43 GraphicUsed by:57
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:57
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:56
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:48Used by:56
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:56
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:52Used by:56
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:54Used by:56
Symbol 56 MovieClipUses:47 49 51 53 55Used by:57
Symbol 57 MovieClipUses:43 45 56Used by:58
Symbol 58 MovieClipUses:57 SS2Used by:Timeline
Symbol 59 GraphicUsed by:Timeline
Symbol 60 TextUses:27Used by:65
Symbol 61 GraphicUsed by:65 71 75 91
Symbol 62 GraphicUsed by:65
Symbol 63 TextUses:27Used by:65
Symbol 64 TextUses:27Used by:65
Symbol 65 ButtonUses:60 61 62 63 64Used by:Timeline
Symbol 66 TextUses:27Used by:71
Symbol 67 GraphicUsed by:71 75
Symbol 68 TextUses:27Used by:71
Symbol 69 TextUses:27Used by:71
Symbol 70 GraphicUsed by:71
Symbol 71 ButtonUses:66 61 67 68 69 70Used by:Timeline
Symbol 72 TextUses:27Used by:75
Symbol 73 TextUses:27Used by:75
Symbol 74 TextUses:27Used by:75
Symbol 75 ButtonUses:72 61 67 73 74Used by:Timeline
Symbol 76 GraphicUsed by:Timeline
Symbol 77 GraphicUsed by:78 146
Symbol 78 MovieClipUses:77Used by:81
Symbol 79 TextUses:18Used by:80
Symbol 80 MovieClipUses:79Used by:81
Symbol 81 MovieClipUses:78 80Used by:Timeline
Symbol 82 GraphicUsed by:84
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:17 82 83Used by:Timeline
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85 SS3Used by:Timeline
Symbol 87 GraphicUsed by:Timeline
Symbol 88 TextUses:27Used by:Timeline
Symbol 89 GraphicUsed by:Timeline
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:61 90Used by:Timeline
Symbol 92 TextUses:27Used by:Timeline
Symbol 93 TextUses:27Used by:Timeline
Symbol 94 TextUses:27Used by:Timeline
Symbol 95 TextUses:27Used by:Timeline
Symbol 96 TextUses:27Used by:Timeline
Symbol 97 TextUses:27Used by:Timeline
Symbol 98 TextUses:27Used by:Timeline
Symbol 99 TextUses:27Used by:Timeline
Symbol 100 TextUses:27Used by:Timeline
Symbol 101 GraphicUsed by:103
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:101 102Used by:104  Timeline
Symbol 104 MovieClipUses:103Used by:Timeline
Symbol 105 TextUses:27Used by:Timeline
Symbol 106 TextUses:27Used by:Timeline
Symbol 107 TextUses:27Used by:Timeline
Symbol 108 TextUses:27Used by:Timeline
Symbol 109 TextUses:27Used by:Timeline
Symbol 110 TextUses:27Used by:Timeline
Symbol 111 TextUses:27Used by:Timeline
Symbol 112 TextUses:27Used by:Timeline
Symbol 113 TextUses:27Used by:Timeline
Symbol 114 TextUses:27Used by:Timeline
Symbol 115 TextUses:27Used by:Timeline
Symbol 116 TextUses:27Used by:Timeline
Symbol 117 TextUses:27Used by:Timeline
Symbol 118 TextUses:27Used by:Timeline
Symbol 119 TextUses:27Used by:Timeline
Symbol 120 TextUses:27Used by:Timeline
Symbol 121 GraphicUsed by:137
Symbol 122 GraphicUsed by:137
Symbol 123 GraphicUsed by:137
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClipUses:124Used by:126
Symbol 126 MovieClipUses:125Used by:127
Symbol 127 MovieClipUses:126Used by:137
Symbol 128 GraphicUsed by:137
Symbol 129 GraphicUsed by:137
Symbol 130 GraphicUsed by:137
Symbol 131 GraphicUsed by:137
Symbol 132 GraphicUsed by:137
Symbol 133 GraphicUsed by:137
Symbol 134 GraphicUsed by:137
Symbol 135 GraphicUsed by:137
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:121 122 123 127 128 129 130 131 132 133 134 135 136Used by:138
Symbol 138 MovieClipUses:137Used by:Timeline
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:Timeline
Symbol 141 GraphicUsed by:Timeline
Symbol 142 EditableTextUses:27Used by:Timeline
Symbol 143 GraphicUsed by:146
Symbol 144 GraphicUsed by:146
Symbol 145 GraphicUsed by:146
Symbol 146 ButtonUses:143 144 145 77Used by:Timeline
Symbol 147 EditableTextUses:27Used by:Timeline
Symbol 148 TextUses:27Used by:161
Symbol 149 TextUses:27Used by:161
Symbol 150 GraphicUsed by:151
Symbol 151 MovieClipUses:150Used by:161
Symbol 152 GraphicUsed by:154
Symbol 153 GraphicUsed by:154
Symbol 154 MovieClipUses:152 153Used by:161
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:161
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:161
Symbol 159 TextUses:27Used by:160
Symbol 160 MovieClipUses:159Used by:161
Symbol 161 MovieClipUses:148 149 151 154 156 158 160Used by:Timeline
Symbol 162 TextUses:27Used by:166
Symbol 163 TextUses:27Used by:166
Symbol 164 TextUses:27Used by:166
Symbol 165 GraphicUsed by:166
Symbol 166 ButtonUses:162 163 164 165Used by:Timeline
Symbol 167 EditableTextUses:27Used by:Timeline
Symbol 168 EditableTextUses:27Used by:Timeline
Symbol 169 TextUses:18Used by:Timeline
Symbol 170 TextUses:27Used by:174
Symbol 171 TextUses:27Used by:174
Symbol 172 TextUses:27Used by:174
Symbol 173 GraphicUsed by:174
Symbol 174 ButtonUses:170 171 172 173Used by:Timeline
Symbol 175 GraphicUsed by:179
Symbol 176 GraphicUsed by:179
Symbol 177 GraphicUsed by:179
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:175 176 177 178Used by:Timeline
Symbol 180 EditableTextUses:27Used by:Timeline
Streaming Sound 1Used by:Symbol 41 MovieClip
Streaming Sound 2Used by:Symbol 58 MovieClip
Streaming Sound 3Used by:Symbol 86 MovieClip

Instance Names

"ads"Frame 1Symbol 10 MovieClip
"play"Frame 1Symbol 21 MovieClip
"bar"Frame 1Symbol 23 MovieClip
"load"Frame 1Symbol 26 MovieClip
"bg"Frame 2Symbol 35 MovieClip
"creds"Frame 4Symbol 81 MovieClip
"song"Frame 4Symbol 86 MovieClip
"l3"Frame 5Symbol 91 MovieClip
"l4"Frame 5Symbol 91 MovieClip
"l1"Frame 5Symbol 91 MovieClip
"l2"Frame 5Symbol 91 MovieClip
"l7"Frame 5Symbol 91 MovieClip
"l8"Frame 5Symbol 91 MovieClip
"l5"Frame 5Symbol 91 MovieClip
"l6"Frame 5Symbol 91 MovieClip
"l9"Frame 5Symbol 91 MovieClip
"s1"Frame 5Symbol 104 MovieClip
"s2"Frame 5Symbol 104 MovieClip
"s3"Frame 5Symbol 104 MovieClip
"s4"Frame 5Symbol 104 MovieClip
"s7"Frame 5Symbol 104 MovieClip
"s8"Frame 5Symbol 104 MovieClip
"s5"Frame 5Symbol 104 MovieClip
"s6"Frame 5Symbol 104 MovieClip
"s9"Frame 5Symbol 104 MovieClip
"l12"Frame 5Symbol 91 MovieClip
"l10"Frame 5Symbol 91 MovieClip
"l11"Frame 5Symbol 91 MovieClip
"s10"Frame 5Symbol 104 MovieClip
"s11"Frame 5Symbol 104 MovieClip
"s12"Frame 5Symbol 104 MovieClip
"l25"Frame 5Symbol 91 MovieClip
"s25"Frame 5Symbol 103 MovieClip
"l15"Frame 5Symbol 91 MovieClip
"l16"Frame 5Symbol 91 MovieClip
"l13"Frame 5Symbol 91 MovieClip
"l14"Frame 5Symbol 91 MovieClip
"l19"Frame 5Symbol 91 MovieClip
"l20"Frame 5Symbol 91 MovieClip
"l17"Frame 5Symbol 91 MovieClip
"l18"Frame 5Symbol 91 MovieClip
"l21"Frame 5Symbol 91 MovieClip
"l24"Frame 5Symbol 91 MovieClip
"l22"Frame 5Symbol 91 MovieClip
"l23"Frame 5Symbol 91 MovieClip
"s24"Frame 5Symbol 103 MovieClip
"s23"Frame 5Symbol 103 MovieClip
"s22"Frame 5Symbol 103 MovieClip
"s21"Frame 5Symbol 103 MovieClip
"s20"Frame 5Symbol 103 MovieClip
"s19"Frame 5Symbol 103 MovieClip
"s18"Frame 5Symbol 103 MovieClip
"s17"Frame 5Symbol 103 MovieClip
"s16"Frame 5Symbol 103 MovieClip
"s15"Frame 5Symbol 103 MovieClip
"s14"Frame 5Symbol 103 MovieClip
"s13"Frame 5Symbol 103 MovieClip
"block"Frame 6Symbol 138 MovieClip
"check"Frame 6Symbol 140 MovieClip
"pauseMc"Frame 6Symbol 161 MovieClip
"des"Frame 6Symbol 179 MovieClip
"s1"Frame 6Symbol 103 MovieClip
"s2"Frame 6Symbol 103 MovieClip
"s3"Frame 6Symbol 103 MovieClip
"adBox"Symbol 10 MovieClip Frame 1Symbol 9 MovieClip
"s1"Symbol 104 MovieClip Frame 1Symbol 103 MovieClip
"s2"Symbol 104 MovieClip Frame 1Symbol 103 MovieClip
"s3"Symbol 104 MovieClip Frame 1Symbol 103 MovieClip
"b"Symbol 138 MovieClip Frame 1Symbol 137 MovieClip
"happy"Symbol 161 MovieClip Frame 1Symbol 151 MovieClip
"c8"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c7"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c6"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c5"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c9"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c10"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c11"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c12"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c13"Symbol 161 MovieClip Frame 1Symbol 158 MovieClip
"c1"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c2"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c4"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"c3"Symbol 161 MovieClip Frame 1Symbol 156 MovieClip
"akeys"Symbol 161 MovieClip Frame 1Symbol 160 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "circle"

Labels

"menu"Frame 5
"game"Frame 6

Dynamic Text Variables

levelWordsSymbol 142 EditableText"11 Space Invader 2"
clicksShowSymbol 147 EditableText"Clicks 1000"
bubbleCSymbol 167 EditableText"11 Space Invader 2"
timerCSymbol 168 EditableText"11 Space Invader 2"
desTextSymbol 180 EditableText"11 Space Invader 2"




http://swfchan.com/10/46821/info.shtml
Created: 3/5 -2019 00:16:54 Last modified: 3/5 -2019 00:16:54 Server time: 22/12 -2024 21:04:54