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

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

1313201379.swf

This is the info page for
Flash #13819

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


Text
Cancel

save

Empty Slot

Empty Slot

Empty Slot

Empty Slot

Empty Slot

Name Your Level

Next Level

Level Complete

Level Score :

Moves Used :

Total Score :

## Level Score ##

## Moves Used ##

## Total Score ##

Menu

## Moves Used ##

Congratulations on completing the level.

Congratulations on completing the game

## Total Score ##

Enter a name to send your highscore

...

Submit Score

Credits

Back To Menu

: Art :
Flame Reaper

: Actionscript :
Flame Reaper

: Music :
SBB (NG Audio portal)

: Special thanks to:
Age2003
Infradead
artBIT
And all the people in #Flashers who
helped test and stuff

How To Play

The aim of the game is to turn out all of the lights by making
them all white. You do this by simply clicking on them. when you
do so the light and all touching lights will change state. as shown
below.

If you need to play a block at the back of the layers you will need
to use the SHIFT and CONTROL keys to raise the top and
middle layers (respectively).
The less moves you take, the more points you will win.

Empty Slot

Top 5 Highscores

Empty Slot

Empty Slot

Empty Slot

Empty Slot

0

0

0

0

0

1.

2.

3.

4.

5.

Lvl :
Score:
Moves:

xxxxx

xxxxx

xxxxx

ActionScript [AS1/AS2]

Frame 1
function checkPercent() { percent = (getBytesLoaded() / getBytesTotal()) * 100; if (loader.fill._y > ((-percent) / 2)) { loader.fill._y--; } else if (percent == 100) { clearInterval(update); loader.play(); } } stop(); _root.attachMovie("loader", "loader", 1); loader._x = (Stage.width / 2) - (loader._width / 2); loader._y = Stage.height / 2; startY = loader._y - 10; update = setInterval(checkPercent, 10); onEnterFrame = function () { if (loader._y < loader.targetY) { dy = loader._y - startY; loader._y = loader._y + (dy * 0.2); } if (loader._y > loader.targetY) { gotoAndStop ("menu"); } };
Frame 2
function init() { music_sound = new Sound(); music_sound.attachSound("music"); light_sound = new Sound(); light_sound.attachSound("light_sound"); if ((_global.music == undefined) || (_global.music == "off")) { music_sound.start(0, 9999999); _global.music = "on"; } music_sound.setVolume(35); saveFile = SharedObject.getLocal("Lights_Out_3D"); generateBackground(); game = {active:false, tileW:50, currentLayer:2, currentTile:null, currentMap:1, currentScore:0, totalScore:0, Mode:"makeCustom", totalMoves:0, overallMoves:0}; loadGame(); saveGame(); } function generateBackground() { d = 0; xp = 10; yp = 10; _root.attachMovie("empty", "backgroundTiles", 1); y = 0; while (y < 4) { x = 0; while (x < 4) { name = (("t_" + y) + "_") + x; backgroundTiles.attachMovie("menuTile", name, d); d++; backgroundTiles[name]._x = xp; backgroundTiles[name]._y = yp; backgroundTiles[name].gotoAndStop("off"); xp = xp + 110; x++; } yp = yp + 110; xp = 10; y++; } backgroundTiles._alpha = 15; i = 0; while (i < 4) { y = Math.floor(Math.random() * 7); x = Math.floor(Math.random() * 9); changeLights(x, y); i++; } wait = setInterval(triggerLights, 1000); generateMenu(); } function triggerLights() { y = Math.floor(Math.random() * 4); x = Math.floor(Math.random() * 4); changeLights(x, y); } function changeLights(x, y) { tile1 = backgroundTiles[(("t_" + y) + "_") + x]; tile2 = backgroundTiles[(("t_" + (y + 1)) + "_") + x]; tile3 = backgroundTiles[(("t_" + (y - 1)) + "_") + x]; tile4 = backgroundTiles[(("t_" + y) + "_") + (x + 1)]; tile5 = backgroundTiles[(("t_" + y) + "_") + (x - 1)]; i = 1; while (i <= 5) { tile = _root["tile" + i]; if (tile != undefined) { frame = tile._currentframe; if (frame == 1) { tile.gotoAndStop("on"); } else { tile.gotoAndStop("off"); } } i++; } } function generateMenu() { buttons = ["New Game", "Continue", "Random", "Play Custom", "Make Custom", "How To Play", "Highscores", "Credits"]; _root.attachMovie("empty", "menuClips", 2); menuClips.attachMovie("tittle", "tittle", 200); menuClips.tittle._x = Stage.width / 2; menuClips.tittle._y = (menuClips.tittle._height / 2) + 50; i = 0; while (i < buttons.length) { name = buttons[i]; menuClips.attachMovie("menuButton", name, i); menuClips[name]._x = Stage.width / 2; menuClips[name]._y = (i * 30) + 200; menuClips[name].t.text = buttons[i]; i++; } _root.attachMovie("error_message", "errorMessage", 3); errorMessage._x = Stage.width / 2; errorMessage._y = Stage.height - 20; } function saveGame() { saveFile.data.currentMap = game.currentMap; saveFile.data.totalScore = game.totalScore; } function loadGame() { errorMessage.display_txt.text = "*Looking for saved game*"; if (saveFile.data.currentMap != undefined) { errorMessage.display_txt.text = "*Loading saved game*"; game.currentMap = saveFile.data.currentMap; game.totalScore = saveFile.data.totalScore; i = 0; while (i < 5) { errorMessage.display_txt.text = "*Looking for custom map data*"; if (saveFile.data["customMapName" + i] != undefined) { _root["customMap" + i] = new Object(); _root["customMap" + i].name = saveFile.data["customMapName" + i]; _root["customMap" + i].map = saveFile.data["customMapArray" + i]; errorMessage.display_txt.text = ("*Loading Custom Map : " + _root["customMap" + i].name) + "*"; errorMessage.play(); } i++; } errorMessage.display_txt.text = "*Game data loaded successfully*"; menuClips.NewGame.toString.text = "Continue"; loaded = true; errorMessage.play(); menuClips._y = 0; } else { errorMessage.display_txt.text = "*No saved game found*"; errorMessage.play(); menuClips._y = 0; } } function setupBoard(quitButton, infoPannel, resetButton, lvl) { if (quitButton != undefined) { _root.attachMovie("menuButton", "Quit", 200); Quit.t.text = "Quit"; Quit._x = (Quit._width / 2) + 10; Quit._y = (Quit._height / 2) + 10; } if (resetButton != undefined) { _root.attachMovie("menuButton", "Reset", 201); Reset.t.text = "Reset Level"; Reset._x = (Reset._width / 2) + 10; Reset._y = (Reset._height / 2) + 35; } if (infoPannel != undefined) { _root.attachMovie("info", "info", 202); info._x = Stage.width - 10; info._y = 10; if (game.Mode == "normal") { info.lvl.text = game.currentMap; info.score.text = game.totalScore; info.moves.text = game.totalMoves; } else { info.lvl.text = lvl; info.score.text = "n/a"; info.moves.text = game.totalMoves; } } } function loadScores() { var _local6 = "http://localhost/gameTest2/lightOut_highscores.php?task=read"; var _local5 = new LoadVars(); _local5.onLoad = function (success) { if (success) { scoreArray = this.scores; scoreArray = scoreArray.split("|"); var _local2 = new Array(); i = 0; while (i < (scoreArray.length - 1)) { _local2.push({user:scoreArray[i], score:scoreArray[i + 1]}); i = i + 2; } _local2.sort(compareNumbers); i = 0; while (i < _local2.length) { i++; } displayScores(_local2); } }; _local5.load(_local6); } function compareNumbers(a, b) { res = (Number(a.score) > Number(b.score)) - (Number(a.score) < Number(b.score)); return(res); } function displayScores(scores) { p = 1; i = scores.length - 1; while (p < 6) { scores_page["name" + p].text = scores[i].user; scores_page["score" + p].text = scores[i].score; p++; i--; } } stop(); loaded = false; init(); menuClips["New Game"].btn.onRelease = function () { removeMovieClip(menuClips); game.currentMap = 1; game.currentScore = 0; game.totalScore = 0; game.totalMoves = 0; game.Mode = "normal"; gotoAndStop ("game"); setupBoard(1, 1, 1); }; menuClips.Continue.btn.onRelease = function () { removeMovieClip(menuClips); game.Mode = "normal"; setupBoard(1, 1, 1); gotoAndStop ("game"); }; menuClips.Random.btn.onRelease = function () { removeMovieClip(menuClips); setupBoard(1, 1, 1); game.Mode = "random"; gotoAndStop ("game"); }; menuClips["How To Play"].btn.onRelease = function () { menuClips._y = 500; attachMovie("help_page", "help_page", 4); help_page._x = Stage.width / 2; help_page._y = Stage.height / 2; help_page.btn.onRelease = function () { removeMovieClip(help_page); menuClips._y = 0; }; }; menuClips.Highscores.btn.onRelease = function () { menuClips._y = 500; attachMovie("scores_page", "scores_page", 4); scores_page._x = Stage.width / 2; scores_page._y = Stage.height / 2; loadScores(); scores_page.btn.onRelease = function () { removeMovieClip(scores_page); menuClips._y = 0; }; }; menuClips.Credits.btn.onRelease = function () { menuClips._y = 500; attachMovie("credits_page", "credits_page", 4); credits_page._x = Stage.width / 2; credits_page._y = Stage.height / 2; credits_page.btn.onRelease = function () { removeMovieClip(credits_page); menuClips._y = 0; }; }; menuClips["Play Custom"].btn.onRelease = function () { menuClips._y = 500; _root.attachMovie("empty", "customs", 5); i = 1; while (i < 7) { if (i != 6) { name = _root["customMap" + i].name; customs.attachMovie("menuButton", "loadCustom" + i, i); customs["loadCustom" + i]._x = Stage.width / 2; customs["loadCustom" + i]._y = (i * 40) + 160; customs["loadCustom" + i].t.text = name; } else { customs.attachMovie("menuButton", "Back", i); customs.Back.t.text = "Back"; customs.Back._x = Stage.width / 2; customs.Back._y = (i * 40) + 160; } i++; } customs.Back.btn.onRelease = function () { removeMovieClip(customs); menuClips._y = 0; }; customs.loadCustom1.btn.onRelease = function () { if (customMap1.name != undefined) { removeMovieClip(customs); removeMovieClip(menuClips); game.currentMap = customMap1.map; game.Mode = "playCustom"; gotoAndStop ("game"); setupBoard(1, 1, 1, customMap1.name); } }; customs.loadCustom2.btn.onRelease = function () { if (customMap2.name != undefined) { removeMovieClip(customs); removeMovieClip(menuClips); game.currentMap = customMap2.map; game.Mode = "playCustom"; gotoAndStop ("game"); setupBoard(1, 1, 1, customMap2.name); } }; customs.loadCustom3.btn.onRelease = function () { if (customMap3.name != undefined) { removeMovieClip(customs); removeMovieClip(menuClips); game.currentMap = customMap3.map; game.Mode = "playCustom"; gotoAndStop ("game"); setupBoard(1, 1, 1, customMap3.name); } }; customs.loadCustom4.btn.onRelease = function () { if (customMap4.name != undefined) { removeMovieClip(customs); removeMovieClip(menuClips); game.currentMap = customMap4.map; game.Mode = "playCustom"; gotoAndStop ("game"); setupBoard(1, 1, 1, customMap4.name); } }; customs.loadCustom5.btn.onRelease = function () { if (customMap5.name != undefined) { removeMovieClip(customs); removeMovieClip(menuClips); game.currentMap = customMap5.map; game.Mode = "playCustom"; gotoAndStop ("game"); setupBoard(1, 1, 1, customMap5.name); } }; }; menuClips["Make Custom"].btn.onRelease = function () { setupBoard(1); game.Mode = "makeCustom"; _root.attachMovie("menuButton", "saveCustom", 10); saveCustom.t.text = "Save Level"; saveCustom._x = Stage.width / 2; saveCustom._y = Stage.height - 60; removeMovieClip(menuClips); gotoAndStop ("game"); };
Frame 3
function buildCube(cubeToBuild) { layersY = []; _root.attachMovie("empty", "cube", 1); layer = 0; while (layer < cubeToBuild.length) { cube.attachMovie("empty", "layer_" + layer, layer); layerWidth = cubeToBuild[layer].length; layerHeight = cubeToBuild[layer][0].length; game.clip = cube["layer_" + layer]; game.clip._y = ((-layer) * game.tileW) - (400 + (layer * 2500)); layersY.push((-layer) * game.tileW); x = 0; while (x < layerWidth) { y = 0; while (y < layerWidth) { name = (("t_" + x) + "_") + y; frame = cubeToBuild[layer][x][y]; depth = (((((y + x) * game.tileW) / 2) * 300) + ((y - x) * game.tileW)) + 1; game.clip.attachMovie("tile", name, depth); game.clip[name]._x = (y - x) * game.tileW; game.clip[name]._y = ((y + x) * game.tileW) / 2; game.clip[name].gotoAndStop(frame); game.clip[name].select.gotoAndStop("off"); y++; } x++; } layer++; } cube._x = Stage.width / 2; cube._y = Stage.height / 2; game.active = true; } function detectKeys() { if (Key.isDown(17)) { game.currentLayer = 0; moveLayers(); } else if (Key.isDown(16)) { game.currentLayer = 1; moveLayers(); } else { game.currentLayer = 2; } } function makeMove() { x = Number(substring(game.currentTile, 24, 1)); y = Number(substring(game.currentTile, 26, 1)); l = Number(substring(game.currentTile, 20, 1)); if (game.Mode == "makeCustom") { tile = cube["layer_" + l][(("t_" + x) + "_") + y]; frame = tile._currentframe; if (frame == 1) { tile.gotoAndStop("on"); } else { tile.gotoAndStop("off"); } } else { if (game.Mode != "random") { light_sound.start(); } tile1 = cube["layer_" + l][(("t_" + x) + "_") + y]; tile2 = cube["layer_" + l][(("t_" + (x + 1)) + "_") + y]; tile3 = cube["layer_" + l][(("t_" + (x - 1)) + "_") + y]; tile4 = cube["layer_" + l][(("t_" + x) + "_") + (y + 1)]; tile5 = cube["layer_" + l][(("t_" + x) + "_") + (y - 1)]; tile6 = cube["layer_" + (l + 1)][(("t_" + x) + "_") + y]; tile7 = cube["layer_" + (l - 1)][(("t_" + x) + "_") + y]; i = 1; while (i <= 7) { tile = _root["tile" + i]; if (tile != undefined) { frame = tile._currentframe; if (frame == 1) { tile.gotoAndStop("on"); } else { tile.gotoAndStop("off"); } } i++; } if (game.Mode != "random") { game.totalMoves++; info.moves.text = game.totalMoves; } if (checkForWin() && (game.Mode != "random")) { Quit._y = Quit._y - 100; Reset._y = Reset._y - 100; info._y = info._y - 100; removeMovieClip(cube); _root.attachMovie("win_page", "winPage", 1000); winPage._x = Stage.width / 2; winPage._y = Stage.height / 2; game.currentScore = 300; if (game.Mode == "normal") { winPage.gotoAndStop(1); winPage.score.text = game.currentScore; winPage.moves.text = game.totalMoves; winPage.total.text = game.totalScore; pauseT = 50; scoreTicker = setInterval(calcScore, 10); } else if (game.Mode == "playCustom") { winPage.gotoAndStop(2); winPage.moves.text = game.totalMoves; winPage.btn.onRelease = function () { Quit.btn.onRelease(); }; } else if (game.Mode == "playRandom") { winPage.gotoAndStop(2); winPage.moves.text = game.totalMoves; winPage.btn.onRelease = function () { Quit.btn.onRelease(); }; } } } } function calcScore() { game.overallMoves = game.overallMoves + game.totalMoves; if (pauseT > 0) { pauseT--; } else { if (game.currentScore > 0) { game.currentScore--; game.totalScore++; winPage.score.text = game.currentScore; winPage.total.text = game.totalScore; } else if (game.totalMoves > 0) { game.totalMoves--; game.totalScore = game.totalScore - 5; winPage.moves.text = game.totalMoves; winPage.total.text = game.totalScore; } winPage.btn.onRelease = function () { game.totalScore = game.totalScore + game.currentScore; game.totalMoves = 0; game.currentScore = 0; info.moves.text = game.totalMoves; clearInterval(scoreTicker); game.currentMap++; if (_root["cubeMap" + game.currentMap] != undefined) { Quit._y = Quit._y + 100; Reset._y = Reset._y + 100; info._y = info._y + 100; saveFile.data.currentMap = game.currentMap; saveFile.data.totalScore = game.totalScore; saveFile.flush(); buildCube(_root["cubeMap" + game.currentMap]); removeMovieClip(winPage); info.lvl.text = game.currentMap; info.score.text = game.totalScore; } else { winPage.gotoAndStop(3); winPage.score.text = game.totalScore; winPage.moves.text = game.overallMoves; winPage.go_btn.onRelease = function () { removeMovieClip(cube); removeMovieClip(winPage); removeMovieClip(Quit); _root.gotoAndStop("menu"); }; winPage.submit_btn.onRelease = function () { sendScore(); winPage.go_btn.onRelease(); }; } }; } } function checkForWin() { if ((game.Mode == "normal") || (game.Mode == "playRandom")) { l = 0; while (l < _root["cubeMap" + game.currentMap].length) { x = 0; while (x < layerWidth) { y = 0; while (y < layerWidth) { name = (("t_" + x) + "_") + y; tile = cube["layer_" + l][(("t_" + x) + "_") + y]; if (tile._currentframe == 2) { return(false); } y++; } x++; } l++; } return(true); } l = 0; while (l < game.currentMap.length) { x = 0; while (x < layerWidth) { y = 0; while (y < layerWidth) { name = (("t_" + x) + "_") + y; tile = cube["layer_" + l][(("t_" + x) + "_") + y]; if (tile._currentframe == 2) { return(false); } y++; } x++; } l++; } return(true); } function getCustomMap() { tempMap = []; tempLayer = []; l = 0; while (l < 3) { x = 0; while (x < 3) { tempColl = []; y = 0; while (y < 3) { tile = cube["layer_" + l][(("t_" + x) + "_") + y]; tempColl.push(tile._currentframe); y++; } tempLayer.push(tempColl); x++; } tempRow = []; tempMap.push(tempLayer); tempLayer = []; l++; } return(tempMap); } function saveCustomMap(mapNumber, mapName) { errorMessage.display_txt.text = "*Scanning current map*"; mapArray = getCustomMap(); errorMessage.display_txt.text = "*saving out map data...*"; _root["customMap" + mapNumber] = new Object(); _root["customMap" + mapNumber].name = mapName; _root["customMap" + mapNumber].map = mapArray; saveFile.data["customMapName" + mapNumber] = name; saveFile.data["customMapArray" + mapNumber] = _root["customMap" + mapNumber].map; errorMessage.display_txt.text = "*Map Data saved successfully*"; errorMessage.play(); saveFile.data["customMapName" + mapNumber] = mapName; saveFile.data["customMapArray" + mapNumber] = _root["customMap" + mapNumber].map; saveFile.flush(); savePage.cancel_btn.onRelease(); } function sendScore() { var _local3 = (("http://localhost/gameTest2/lightOut_highscores.php?task=submit&user=" + winPage.user.text) + "&score=") + game.totalScore; var _local2 = new LoadVars(); _local2.onLoad = function (success) { if (success) { removeMovieClip(cube); removeMovieClip(winPage); removeMovieClip(Quit); _root.gotoAndStop("menu"); } else { errorMessage.display_txt.text = "*Error occured when sending score*"; errorMessage.play(); } }; } function randomMoves() { moveTotal = Math.ceil(Math.random() * 10) + 6; m = 0; while (m < moveTotal) { ranX = Math.ceil(Math.random() * 2); ranY = Math.ceil(Math.random() * 2); ranZ = Math.ceil(Math.random() * 2); tile = _level0.cube["layer_" + ranZ][(("t_" + ranX) + "_") + ranY]; game.currentTile = tile; makeMove(); m++; } randomArray = getCustomMap(); game.Mode = "playRandom"; } cubeMap0 = [[[1, 1, 1], [1, 1, 1], [1, 1, 1]], [[1, 1, 1], [1, 1, 1], [1, 1, 1]], [[1, 1, 1], [1, 1, 1], [1, 1, 1]]]; cubeMap1 = [[[2, 1, 2], [1, 1, 1], [2, 1, 2]], [[1, 1, 1], [1, 1, 1], [1, 1, 1]], [[2, 1, 2], [1, 1, 1], [2, 1, 2]]]; cubeMap2 = [[[2, 1, 1], [2, 2, 2], [1, 1, 2]], [[1, 1, 2], [1, 2, 1], [2, 1, 1]], [[2, 1, 1], [2, 2, 2], [1, 1, 2]]]; cubeMap3 = [[[1, 1, 1], [1, 2, 1], [1, 1, 2]], [[1, 1, 2], [1, 2, 2], [2, 2, 2]], [[1, 2, 1], [2, 2, 1], [1, 1, 2]]]; cubeMap4 = [[[1, 1, 1], [1, 1, 1], [1, 1, 1]], [[1, 1, 2], [1, 1, 1], [2, 1, 2]], [[1, 1, 1], [1, 1, 1], [1, 1, 1]]]; cubeMap5 = [[[1, 1, 1], [1, 1, 1], [1, 1, 1]], [[1, 2, 1], [2, 1, 2], [1, 2, 1]], [[1, 1, 1], [1, 1, 1], [1, 1, 1]]]; cubeMap6 = [[[2, 2, 2], [2, 1, 2], [2, 2, 2]], [[2, 2, 2], [2, 1, 2], [2, 2, 2]], [[2, 2, 2], [2, 1, 2], [2, 2, 2]]]; cubeMap7 = [[[1, 1, 1], [2, 1, 1], [1, 1, 1]], [[1, 1, 1], [1, 2, 1], [1, 1, 1]], [[1, 1, 1], [1, 1, 2], [1, 1, 1]]]; cubeMap8 = [[[1, 1, 2], [1, 1, 2], [2, 2, 1]], [[1, 2, 1], [2, 1, 1], [1, 1, 1]], [[1, 1, 2], [1, 1, 2], [2, 2, 1]]]; cubeMap9 = [[[2, 2, 2], [2, 2, 2], [2, 2, 2]], [[1, 1, 1], [1, 2, 1], [1, 1, 1]], [[2, 2, 2], [2, 2, 2], [2, 2, 2]]]; cubeMap10 = [[[1, 1, 1], [1, 1, 1], [1, 1, 1]], [[1, 1, 1], [1, 2, 1], [1, 1, 1]], [[1, 1, 1], [1, 1, 1], [1, 1, 1]]]; cubeMap11 = [[[2, 1, 2], [1, 2, 1], [2, 1, 2]], [[1, 2, 1], [2, 2, 2], [1, 2, 1]], [[2, 1, 2], [1, 2, 1], [2, 1, 2]]]; cubeMap12 = [[[2, 1, 1], [1, 1, 1], [1, 1, 2]], [[2, 2, 2], [2, 1, 2], [2, 2, 2]], [[1, 1, 2], [1, 1, 1], [2, 1, 1]]]; cubeMap13 = [[[2, 1, 2], [1, 1, 1], [2, 1, 2]], [[2, 1, 1], [1, 2, 1], [1, 1, 2]], [[2, 1, 2], [1, 1, 1], [2, 1, 2]]]; cubeMap14 = [[[2, 2, 2], [2, 2, 2], [2, 2, 2]], [[2, 1, 2], [2, 1, 2], [2, 1, 2]], [[2, 2, 2], [2, 2, 2], [2, 2, 2]]]; cubeMap15 = [[[2, 1, 1], [1, 1, 1], [2, 1, 2]], [[1, 2, 2], [2, 1, 2], [2, 2, 1]], [[2, 1, 2], [1, 1, 1], [1, 1, 2]]]; cubeMap16 = [[[2, 1, 2], [1, 1, 1], [2, 1, 2]], [[2, 1, 2], [1, 1, 1], [2, 1, 2]], [[1, 1, 1], [2, 2, 2], [1, 1, 1]]]; if (game.Mode == "playCustom") { buildCube(game.currentMap); } else if (game.Mode == "normal") { buildCube(_root["cubeMap" + game.currentMap]); } else if (game.Mode == "makeCustom") { buildCube(cubeMap0); } else if (game.Mode == "random") { buildCube(cubeMap0); randomMoves(); } onEnterFrame = function () { detectKeys(); if (game.active) { dy3 = cube.layer_0._y - layersY[0]; if (dy3 < 0) { cube.layer_0._y = cube.layer_0._y - (dy3 * 0.1); } else { cube.layer_0._y = layersY[0]; } if (game.currentLayer == 0) { dy = cube.layer_2._y - (layersY[2] - 120); if (dy > 0) { cube.layer_2._y = cube.layer_2._y - (dy * 0.1); } else { cube.layer_2._y = layersY[2] - 120; } dy2 = cube.layer_1._y - (layersY[1] - 120); if (dy2 > 0) { cube.layer_1._y = cube.layer_1._y - (dy2 * 0.1); } else { cube.layer_1._y = layersY[1] - 120; } } else if (game.currentLayer == 1) { dy = cube.layer_2._y - (layersY[2] - 120); if (dy > 0) { cube.layer_2._y = cube.layer_2._y - (dy * 0.1); } else { cube.layer_2._y = layersY[2] - 120; } dy2 = cube.layer_1._y - layersY[1]; if (dy2 < 0) { cube.layer_1._y = cube.layer_1._y - (dy2 * 0.1); } else { cube.layer_1._y = layersY[1]; } } else if (game.currentLayer == 2) { dy = cube.layer_2._y - layersY[2]; if (dy < 0) { cube.layer_2._y = cube.layer_2._y - (dy * 0.1); } else { cube.layer_2._y = layersY[2]; } dy2 = cube.layer_1._y - layersY[1]; if (dy2 < 0) { cube.layer_1._y = cube.layer_1._y - (dy2 * 0.1); } else { cube.layer_1._y = layersY[1]; } } } }; saveCustom.btn.onRelease = function () { _root.attachMovie("save_page", "savePage", 100); savePage._x = Stage.width / 2; savePage._y = Stage.height / 2; saveCustom._y = saveCustom._y - 100; i = 1; while (i < 6) { list = savePage["name" + i]; if (_root["customMap" + i].name != undefined) { list.text = _root["customMap" + i].name; } i++; } savePage.btn1.onRelease = function () { saveCustomMap(1, savePage.name1.text); }; savePage.btn2.onRelease = function () { saveCustomMap(2, savePage.name2.text); }; savePage.btn3.onRelease = function () { saveCustomMap(3, savePage.name3.text); }; savePage.btn4.onRelease = function () { saveCustomMap(4, savePage.name4.text); }; savePage.btn5.onRelease = function () { saveCustomMap(5, savePage.name5.text); }; savePage.cancel_btn.onRelease = function () { removeMovieClip(savePage); saveCustom._y = saveCustom._y + 100; }; }; Quit.btn.onRelease = function () { removeMovieClip(cube); removeMovieClip(Quit); removeMovieClip(Reset); removeMovieClip(info); removeMovieClip(saveCustom); removeMovieClip(savePage); removeMovieClip(winPage); gotoAndStop ("menu"); }; Reset.btn.onRelease = function () { game.totalMoves = 0; info.moves.text = "0"; if (game.Mode == "playCustom") { buildCube(game.currentMap); } else if (game.Mode == "normal") { buildCube(_root["cubeMap" + game.currentMap]); } else if (game.Mode == "makeCustom") { buildCube(cubeMap0); } else if (game.Mode == "playRandom") { buildCube(randomArray); } };
Symbol 10 Button
on (release) { _root.loader.targetY = Stage.height + _parent._height; }
Symbol 11 MovieClip [loader] Frame 1
stop();
Symbol 11 MovieClip [loader] Frame 26
stop();
Symbol 15 Button
on (release) { _root.makeMove(); } on (rollOver) { _root.game.currentTile = this; }
Symbol 17 MovieClip [tile] Frame 1
stop();
Symbol 17 MovieClip [tile] Frame 2
stop();
Symbol 97 MovieClip [error_message] Frame 1
display_txt.text = ""; stop();

Library Items

Symbol 1 Sound [light_sound]
Symbol 2 Sound [music]
Symbol 3 GraphicUsed by:11
Symbol 4 GraphicUsed by:5 10
Symbol 5 MovieClipUses:4Used by:11
Symbol 6 GraphicUsed by:11
Symbol 7 GraphicUsed by:10 11
Symbol 8 GraphicUsed by:10
Symbol 9 GraphicUsed by:10
Symbol 10 ButtonUses:7 8 9 4Used by:11
Symbol 11 MovieClip [loader]Uses:3 5 6 7 10
Symbol 12 GraphicUsed by:17
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 ButtonUses:13 14Used by:17
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip [tile]Uses:12 15 16
Symbol 18 MovieClip [empty]
Symbol 19 GraphicUsed by:21
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClip [menuTile]Uses:19 20
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 ButtonUses:22 23 24Used by:28 44 63 70 75 95
Symbol 26 FontUsed by:27 30 33 38 39 40 41 42 43 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 64 65 66 67 68 69 71 72 74 78 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 96 101 102 103
Symbol 27 EditableTextUses:26Used by:28
Symbol 28 MovieClip [menuButton]Uses:25 27
Symbol 29 GraphicUsed by:44 70 75
Symbol 30 TextUses:26Used by:44
Symbol 31 GraphicUsed by:44
Symbol 32 GraphicUsed by:36
Symbol 33 TextUses:26Used by:36
Symbol 34 GraphicUsed by:36
Symbol 35 GraphicUsed by:36
Symbol 36 ButtonUses:32 33 34 35Used by:44
Symbol 37 GraphicUsed by:44
Symbol 38 EditableTextUses:26Used by:44
Symbol 39 EditableTextUses:26Used by:44
Symbol 40 EditableTextUses:26Used by:44
Symbol 41 EditableTextUses:26Used by:44
Symbol 42 EditableTextUses:26Used by:44
Symbol 43 TextUses:26Used by:44
Symbol 44 MovieClip [save_page]Uses:29 25 30 31 36 37 38 39 40 41 42 43
Symbol 45 GraphicUsed by:63
Symbol 46 TextUses:26Used by:63
Symbol 47 TextUses:26Used by:63
Symbol 48 TextUses:26Used by:63
Symbol 49 TextUses:26Used by:63
Symbol 50 TextUses:26Used by:63
Symbol 51 EditableTextUses:26Used by:63
Symbol 52 EditableTextUses:26Used by:63
Symbol 53 EditableTextUses:26Used by:63
Symbol 54 TextUses:26Used by:63
Symbol 55 EditableTextUses:26Used by:63
Symbol 56 TextUses:26Used by:63
Symbol 57 GraphicUsed by:63
Symbol 58 TextUses:26Used by:63
Symbol 59 EditableTextUses:26Used by:63
Symbol 60 TextUses:26Used by:63
Symbol 61 EditableTextUses:26Used by:63
Symbol 62 TextUses:26Used by:63
Symbol 63 MovieClip [win_page]Uses:45 25 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
Symbol 64 TextUses:26Used by:70
Symbol 65 TextUses:26Used by:70 75 95
Symbol 66 TextUses:26Used by:70
Symbol 67 TextUses:26Used by:70
Symbol 68 TextUses:26Used by:70
Symbol 69 TextUses:26Used by:70
Symbol 70 MovieClip [credits_page]Uses:29 64 25 65 66 67 68 69
Symbol 71 TextUses:26Used by:75
Symbol 72 TextUses:26Used by:75
Symbol 73 GraphicUsed by:75
Symbol 74 TextUses:26Used by:75
Symbol 75 MovieClip [help_page]Uses:29 71 25 65 72 73 74
Symbol 76 GraphicUsed by:95
Symbol 77 GraphicUsed by:95
Symbol 78 EditableTextUses:26Used by:95
Symbol 79 TextUses:26Used by:95
Symbol 80 EditableTextUses:26Used by:95
Symbol 81 EditableTextUses:26Used by:95
Symbol 82 EditableTextUses:26Used by:95
Symbol 83 EditableTextUses:26Used by:95
Symbol 84 GraphicUsed by:95
Symbol 85 EditableTextUses:26Used by:95
Symbol 86 EditableTextUses:26Used by:95
Symbol 87 EditableTextUses:26Used by:95
Symbol 88 EditableTextUses:26Used by:95
Symbol 89 EditableTextUses:26Used by:95
Symbol 90 TextUses:26Used by:95
Symbol 91 TextUses:26Used by:95
Symbol 92 TextUses:26Used by:95
Symbol 93 TextUses:26Used by:95
Symbol 94 TextUses:26Used by:95
Symbol 95 MovieClip [scores_page]Uses:76 25 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 65
Symbol 96 EditableTextUses:26Used by:97
Symbol 97 MovieClip [error_message]Uses:96
Symbol 98 GraphicUsed by:104
Symbol 99 FontUsed by:100
Symbol 100 TextUses:99Used by:104
Symbol 101 EditableTextUses:26Used by:104
Symbol 102 EditableTextUses:26Used by:104
Symbol 103 EditableTextUses:26Used by:104
Symbol 104 MovieClip [info]Uses:98 100 101 102 103
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClip [tittle]Uses:105

Instance Names

"fill"Symbol 11 MovieClip [loader] Frame 1Symbol 5 MovieClip
"btn"Symbol 11 MovieClip [loader] Frame 26Symbol 10 Button
"btn"Symbol 17 MovieClip [tile] Frame 1Symbol 15 Button
"btn"Symbol 28 MovieClip [menuButton] Frame 1Symbol 25 Button
"t"Symbol 28 MovieClip [menuButton] Frame 1Symbol 27 EditableText
"cancel_btn"Symbol 44 MovieClip [save_page] Frame 1Symbol 25 Button
"btn1"Symbol 44 MovieClip [save_page] Frame 1Symbol 36 Button
"btn2"Symbol 44 MovieClip [save_page] Frame 1Symbol 36 Button
"btn3"Symbol 44 MovieClip [save_page] Frame 1Symbol 36 Button
"btn4"Symbol 44 MovieClip [save_page] Frame 1Symbol 36 Button
"btn5"Symbol 44 MovieClip [save_page] Frame 1Symbol 36 Button
"name1"Symbol 44 MovieClip [save_page] Frame 1Symbol 38 EditableText
"name2"Symbol 44 MovieClip [save_page] Frame 1Symbol 39 EditableText
"name3"Symbol 44 MovieClip [save_page] Frame 1Symbol 40 EditableText
"name4"Symbol 44 MovieClip [save_page] Frame 1Symbol 41 EditableText
"name5"Symbol 44 MovieClip [save_page] Frame 1Symbol 42 EditableText
"btn"Symbol 63 MovieClip [win_page] Frame 1Symbol 25 Button
"score"Symbol 63 MovieClip [win_page] Frame 1Symbol 51 EditableText
"moves"Symbol 63 MovieClip [win_page] Frame 1Symbol 52 EditableText
"total"Symbol 63 MovieClip [win_page] Frame 1Symbol 53 EditableText
"moves"Symbol 63 MovieClip [win_page] Frame 2Symbol 55 EditableText
"score"Symbol 63 MovieClip [win_page] Frame 3Symbol 59 EditableText
"user"Symbol 63 MovieClip [win_page] Frame 3Symbol 61 EditableText
"submit_btn"Symbol 63 MovieClip [win_page] Frame 3Symbol 25 Button
"btn"Symbol 70 MovieClip [credits_page] Frame 1Symbol 25 Button
"btn"Symbol 75 MovieClip [help_page] Frame 1Symbol 25 Button
"btn"Symbol 95 MovieClip [scores_page] Frame 1Symbol 25 Button
"name1"Symbol 95 MovieClip [scores_page] Frame 1Symbol 78 EditableText
"name2"Symbol 95 MovieClip [scores_page] Frame 1Symbol 80 EditableText
"name3"Symbol 95 MovieClip [scores_page] Frame 1Symbol 81 EditableText
"name5"Symbol 95 MovieClip [scores_page] Frame 1Symbol 82 EditableText
"name4"Symbol 95 MovieClip [scores_page] Frame 1Symbol 83 EditableText
"score1"Symbol 95 MovieClip [scores_page] Frame 1Symbol 85 EditableText
"score2"Symbol 95 MovieClip [scores_page] Frame 1Symbol 86 EditableText
"score3"Symbol 95 MovieClip [scores_page] Frame 1Symbol 87 EditableText
"score4"Symbol 95 MovieClip [scores_page] Frame 1Symbol 88 EditableText
"score5"Symbol 95 MovieClip [scores_page] Frame 1Symbol 89 EditableText
"display_txt"Symbol 97 MovieClip [error_message] Frame 1Symbol 96 EditableText
"lvl"Symbol 104 MovieClip [info] Frame 1Symbol 101 EditableText
"score"Symbol 104 MovieClip [info] Frame 1Symbol 102 EditableText
"moves"Symbol 104 MovieClip [info] Frame 1Symbol 103 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "light_sound"
ExportAssets (56)Timeline Frame 1Symbol 2 as "music"
ExportAssets (56)Timeline Frame 1Symbol 11 as "loader"
ExportAssets (56)Timeline Frame 1Symbol 17 as "tile"
ExportAssets (56)Timeline Frame 1Symbol 18 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 21 as "menuTile"
ExportAssets (56)Timeline Frame 1Symbol 28 as "menuButton"
ExportAssets (56)Timeline Frame 1Symbol 44 as "save_page"
ExportAssets (56)Timeline Frame 1Symbol 63 as "win_page"
ExportAssets (56)Timeline Frame 1Symbol 70 as "credits_page"
ExportAssets (56)Timeline Frame 1Symbol 75 as "help_page"
ExportAssets (56)Timeline Frame 1Symbol 95 as "scores_page"
ExportAssets (56)Timeline Frame 1Symbol 97 as "error_message"
ExportAssets (56)Timeline Frame 1Symbol 104 as "info"
ExportAssets (56)Timeline Frame 1Symbol 106 as "tittle"

Labels

"loader"Frame 1
"menu"Frame 2
"game"Frame 3
"off"Symbol 17 MovieClip [tile] Frame 1
"on"Symbol 17 MovieClip [tile] Frame 2
"off"Symbol 21 MovieClip [menuTile] Frame 1
"on"Symbol 21 MovieClip [menuTile] Frame 10




http://swfchan.com/3/13819/info.shtml
Created: 4/6 -2019 06:39:43 Last modified: 4/6 -2019 06:39:43 Server time: 12/05 -2024 22:24:25