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/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

Temple Gems.swf

This is the info page for
Flash #47199

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


Text
M

T

A whole new world awaits you....

<p align="center"><font face="Badonk-a-donk" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0">Play Game</font></p>

TM

Join Now!

Click Here to
Visit Us at
www.Mrtiki.com
Now!

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0">Continue</font></p>

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="18" color="#ffffff" letterSpacing="0.000000" kerning="0">Choose Difficulty</font></p>

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="18" color="#ffffff" letterSpacing="0.000000" kerning="0">Choose Level</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Easy</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Hard</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">1</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">2</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">3</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">4</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">5</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">6</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">7</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">8</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">9</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">10</font></p>

<p align="center"><font face="Brady Bunch Remastered" size="18" color="#ffff00" letterSpacing="0.000000" kerning="0">Double Points</font></p>

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="18" color="#ffffff" letterSpacing="0.000000" kerning="0">Choose Game Size</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Small</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Medium</font></p>

<p align="center"><font face="Badonk-a-donk" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Large</font></p>

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0">Start!</font></p>

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="25" color="#ffffff" letterSpacing="0.000000" kerning="0">Instructions</font></p>

<p align="center"><font face="Hobo Std" size="15" color="#1f2892" letterSpacing="0.000000" kerning="0">Use UP, DOWN, LEFT and RIGHT arrow key to move the gems. You need to fill up the line to clear it.</font></p><p align="center"></p><p align="center"><font face="Hobo Std" size="15" color="#1f2892" letterSpacing="0.000000" kerning="0">You can use the single shining gem to destroy area of gems.</font></p><p align="center"></p><p align="center"><font face="Hobo Std" size="15" color="#1f2892" letterSpacing="0.000000" kerning="0">Or use the double shining gems to clear lines of gems</font></p>

Next Block

To Next Level

4 Lines

3 Lines

2 Lines

Score

1 Lines

Current Level: 5

0

0

0

0

0

0

<p align="center"><font face="Brady Bunch Remastered" size="25" color="#ffffff" letterSpacing="0.000000" kerning="0">End Game</font></p>

<p align="center"><font face="Brady Bunch Remastered" size="20" color="#ffffff" letterSpacing="0.000000" kerning="0">Go to Menu</font></p>

Score: 0

<p align="center"></p><p align="center"><font face="Badonk-a-donk" size="35" color="#ffffff" letterSpacing="0.000000" kerning="0">GAME OVER</font></p>

ActionScript [AS1/AS2]

Frame 2
stop();
Frame 3
function SoundSetup() { _root.soundFxStats = !_root.soundFxStats; if (_root.soundFxStats) { _root.bgMusic.UpVolume(); } else { _root.bgMusic.DownVolume(); } _root.sndEffect.toggleOnOff(); if (_root.soundFxStats) { _root.sound_btn.gotoAndStop(1); } else { _root.sound_btn.gotoAndStop(2); } } _root.musicClip = _root.createEmptyMovieClip("MusicClip", _root.getNextHighestDepth()); _root.soundClip = _root.createEmptyMovieClip("SoundClip", _root.getNextHighestDepth()); _root.bgMusic = new classes.BGM("Music", "", _root.musicClip); _root.sndEffect = new classes.SoundFX(["", "Bomb", "Drop", "LineClear", "Rotate"], _root.soundClip); _root.soundFxStats = true; _root.bgMusic.playMusic(); _root.keyboard = new classes.Keyboard(); _level0.IDS_play_game = "<p align='center'><font size='18'>Play Game</font></p>"; _level0.IDS_end_game = "<p align='center'><font size='18'>End Game</font></p>"; _level0.IDS_restart_game = "<p align='center'><font size='18'>Restart Game</font></p>"; _level0.IDS_send_score = "<p align='center'><font size='18'>Send Score</font></p>";
Frame 4
_root.sndEffect.playSound("Drop");
Instance of Symbol 177 MovieClip "sound_btn" in Frame 4
onClipEvent (load) { if (_root.soundFxStats) { _root.sound_btn.gotoAndStop(1); } else { _root.sound_btn.gotoAndStop(2); } } on (release) { _root.SoundSetup(); }
Frame 10
stop();
Frame 11
function SelectDiff(iDiff) { _root.sndEffect.playSound("Drop"); _level0.iDiff = iDiff; _root.DisplayDiff(_level0.iDiff); } function DisplayDiff(iDiff) { var _local2 = 1; while (_local2 <= 2) { _root["mcDiff" + _local2].enabled = true; _root["mcDiff" + _local2].gotoAndStop(1); _local2++; } _root["mcDiff" + iDiff].gotoAndStop(2); _root["mcDiff" + iDiff].enabled = false; } function SelectLevel(iLevel) { _root.sndEffect.playSound("Drop"); _level0.iLevel = iLevel; _root.DisplayLevel(_level0.iLevel); } function DisplayLevel(iLevel) { var _local2 = 1; while (_local2 <= 10) { _root["mcLevel" + _local2].enabled = true; _root["mcLevel" + _local2].gotoAndStop(1); _local2++; } _root["mcLevel" + iLevel].gotoAndStop(2); _root["mcLevel" + iLevel].enabled = false; } function SelectSize(iSize) { _root.sndEffect.playSound("Drop"); _level0.iSize = iSize; _root.DisplaySize(_level0.iSize); } function DisplaySize(iSize) { var _local2 = 1; while (_local2 <= 3) { _root["mcSize" + _local2].enabled = true; _root["mcSize" + _local2].gotoAndStop(1); _local2++; } _root["mcSize" + iSize].gotoAndStop(2); _root["mcSize" + iSize].enabled = false; } _level0.iLevel = 1; _level0.iDiff = 1; _level0.iSize = 1; var i = 1; while (i <= 2) { _root["mcDiff" + i].iID = i; _root["mcDiff" + i].onRelease = function () { _root.SelectDiff(this.iID); }; i++; } var i = 1; while (i <= 3) { _root["mcSize" + i].iID = i; _root["mcSize" + i].onRelease = function () { _root.SelectSize(this.iID); }; i++; } var i = 1; while (i <= 10) { _root["mcLevel" + i].iID = i; _root["mcLevel" + i].onRelease = function () { _root.SelectLevel(this.iID); }; i++; } _root.DisplayDiff(_level0.iDiff); _root.DisplayLevel(_level0.iLevel); _root.DisplaySize(_level0.iSize); _root.sndEffect.playSound("Drop");
Instance of Symbol 177 MovieClip "sound_btn" in Frame 11
onClipEvent (load) { if (_root.soundFxStats) { _root.sound_btn.gotoAndStop(1); } else { _root.sound_btn.gotoAndStop(2); } } on (release) { _root.SoundSetup(); }
Frame 17
stop();
Frame 18
_root.sndEffect.playSound("Drop");
Instance of Symbol 177 MovieClip "sound_btn" in Frame 18
onClipEvent (load) { if (_root.soundFxStats) { _root.sound_btn.gotoAndStop(1); } else { _root.sound_btn.gotoAndStop(2); } } on (release) { _root.SoundSetup(); }
Frame 24
stop();
Frame 25
_level0.gLoader.trackPlay(); _global.gTilesLibrary = new classes.TilesLibrary(["Tile0", "Tile1", "Tile2", "Tile3", "Tile4", "Tile5", "Tile6", "Tile7", "Tile8", "Tile9", "Tile10"]); var i = 1; while (i <= 3) { _root["mcPuzzlePanel" + i]._visible = false; i++; } _root["mcPuzzlePanel" + _level0.iSize]._visible = true; _global.objGame = new classes.Weetrix(_root["mcWorld" + _level0.iSize], _root.mcPrompt); this.onEnterFrame = function () { _global.objGame.Main(); }; _root.sndEffect.playSound("Drop");
Instance of Symbol 177 MovieClip "sound_btn" in Frame 25
onClipEvent (load) { if (_root.soundFxStats) { _root.sound_btn.gotoAndStop(1); } else { _root.sound_btn.gotoAndStop(2); } } on (release) { _root.SoundSetup(); }
Frame 31
stop();
Frame 32
this.final_score_txt.text = "Score: " + _global.objGame.GetTotalScore(); _root.sndEffect.playSound("Drop"); delete _global.objGame;
Instance of Symbol 177 MovieClip "sound_btn" in Frame 32
onClipEvent (load) { if (_root.soundFxStats) { _root.sound_btn.gotoAndStop(1); } else { _root.sound_btn.gotoAndStop(2); } } on (release) { _root.SoundSetup(); }
Frame 38
stop();
Frame 39
stop(); if (_global.menuSelect == 1) { _level0.gLoader.sendScore(_global.objGame.GetTotalScore()); } else if (_global.menuSelect == 2) { _root.gotoAndPlay("resetAllFrame"); }
Frame 40
Frame 41
_root.gotoAndPlay("resetAllFrame");
Symbol 44 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop ("loaded"); }
Symbol 44 MovieClip Frame 2
gotoAndPlay (1);
Symbol 44 MovieClip Frame 3
_root.play();
Symbol 256 MovieClip [__Packages.classes.SoundFX] Frame 0
class classes.SoundFX { var soundOn; function SoundFX (soundPassIn, soundClip) { soundOn = true; soundTakeIn = soundPassIn; var _local2 = 0; while (_local2 < soundTakeIn.length) { soundsMC[_local2] = soundClip.createEmptyMovieClip(_local2, _local2); sounds[_local2] = new Sound(soundsMC[_local2]); sounds[_local2].attachSound(soundTakeIn[_local2]); _local2++; } } function toggleOnOff() { soundOn = !soundOn; } function playSound(soundName) { if (soundOn) { var _local2 = 0; while (_local2 < sounds.length) { if (soundTakeIn[_local2] == soundName) { sounds[_local2].setVolume(allVolume); sounds[_local2].start(); } _local2++; } } } function playSoundLoop(soundName) { if (soundOn) { var i = 0; while (i < sounds.length) { if (soundTakeIn[i] == soundName) { sounds[i].stop(); sounds[i].setVolume(allVolume); sounds[i].start(); sounds[i].onSoundComplete = function () { this.sounds[i].setVolume(this.allVolume); this.start(); }; } i++; } } } function stopSoundLoop(soundName) { if (soundOn) { var _local2 = 0; while (_local2 < sounds.length) { if (soundTakeIn[_local2] == soundName) { soundsMC[_local2].SoundObject = sounds[_local2]; soundsMC[_local2].onEnterFrame = function () { this.SoundObject.setVolume(this.SoundObject.getVolume() - 20); if (this.SoundObject.getVolume() <= 0) { this.SoundObject.stop(); this.onEnterFrame = undefined; } }; } _local2++; } } } function SetVolume(percent) { allVolume = percent; var _local2 = 0; while (_local2 < sounds.length) { sounds[_local2].setVolume(allVolume); _local2++; } } var soundTakeIn = new Array(); var sounds = new Array(); var allVolume = 100; var soundsMC = new Array(); }
Symbol 257 MovieClip [__Packages.classes.BGM] Frame 0
class classes.BGM { var musicOn, music, ambient, mcMusicClip; function BGM (musicPassIn, ambientPassIn, musicClip) { musicOn = true; music = new Sound(musicClip); music.attachSound(musicPassIn); ambient = new Sound(musicClip); ambient.attachSound(ambientPassIn); mcMusicClip = musicClip; } function toggleOnOff() { musicOn = !musicOn; } function playMusic() { if (musicOn) { music.setVolume(allVolume); music.start(); music.onSoundComplete = function () { this.start(); }; } else { music.stop(); } } function playAmbient() { if (musicOn) { ambient.setVolume(allVolume); ambient.start(); ambient.onSoundComplete = function () { this.start(); }; } else { ambient.stop(); } } function playMusicOnce() { if (musicOn) { music.setVolume(allVolume); music.start(); } else { music.stop(); } } function stopMusic() { music.stop(); } function stopAmbient() { ambient.stop(); } function SetVolume(percent) { allVolume = percent; ambient.setVolume(allVolume); music.setVolume(allVolume); } function GetVolume() { return(allVolume); } function UpVolume() { mcMusicClip.Obj = this; mcMusicClip.onEnterFrame = function () { var _local2 = this.Obj.GetVolume() + 5; if (_local2 >= 100) { _local2 = 100; } this.Obj.SetVolume(_local2); if (_local2 == 100) { this.onEnterFrame = undefined; } }; } function DownVolume() { mcMusicClip.Obj = this; mcMusicClip.onEnterFrame = function () { var _local2 = this.Obj.GetVolume() - 5; if (_local2 <= 0) { _local2 = 0; } this.Obj.SetVolume(_local2); if (_local2 == 0) { this.onEnterFrame = undefined; } }; } var allVolume = 100; }
Symbol 258 MovieClip [__Packages.classes.Keyboard] Frame 0
class classes.Keyboard { var cookies, P1Keys, P2Keys; function Keyboard () { Setup(); } function Setup() { cookies = SharedObject.getLocal("key_config"); if ((cookies.data.P1Keys == undefined) || (cookies.data.P1Keys.down == undefined)) { Reset(); trace("Keyboard Added"); } else { P1Keys = cookies.data.P1Keys; P2Keys = cookies.data.P2Keys; trace("Keyboard Retrieved"); } Reset(); } function Reset() { P1Keys = new Object(); P1Keys.Up = 87; P1Keys.Down = 83; P1Keys.Left = 65; P1Keys.Right = 68; P1Keys.Action = 70; P2Keys = new Object(); P2Keys.Up = 38; P2Keys.Down = 40; P2Keys.Left = 37; P2Keys.Right = 39; P2Keys.Action = 97; cookies.data.P1Keys = P1Keys; cookies.data.P2Keys = P2Keys; } }
Symbol 259 MovieClip [__Packages.classes.Weetrix] Frame 0
class classes.Weetrix { var mcGameWorld, mcPromptWorld, iGameStatus, nGameTime, objTilesMapping, aPuzzleArray, aLandedArray, nGenerateFace, nGenerateType, nNextType, nKeyPressTime, nDownKeyPressTime, nStartTime, nAddLineTime; function Weetrix (mworld, mprompt) { trace("Tetris Constructor Loaded"); InitVars(mworld, mprompt); DisplayInfo(); Setup(); SetObjects(); DisplayNext(); Generate(); } function InitVars(mworld, mprompt) { mcGameWorld = mworld; mcPromptWorld = mprompt; iLevel = _level0.iLevel - 1; iDiff = _level0.iDiff; iFourLines = 0; iThreeLines = 0; iTwoLines = 0; iOneLine = 0; iToLevel = 0; SetToNextLevel(); iScore = 0; switch (_level0.iSize) { case 1 : iTotalRow = 40; iTotalCol = 10; nScreenHeight = 300; nScreenWidth = 100; break; case 2 : iTotalRow = 45; iTotalCol = 13; nScreenHeight = 350; nScreenWidth = 130; break; case 3 : iTotalRow = 50; iTotalCol = 15; nScreenHeight = 400; nScreenWidth = 150; } iGameStatus = staticGamePlay; } function Main(gtime) { gtime = getTimer(); UpdateTime(gtime); if (iGameStatus == staticGamePlay) { AutoAddLine(); } else if (iGameStatus == staticGameOver) { DisplayGameOver(); DisplayGameOver(); DisplayGameOver(); DisplayGameOver(); DisplayGameOver(); } UpdateScreen(); } function UpdateTime(gtime) { nGameTime = gtime; } function SetObjects() { objTilesMapping = new classes.TilesMapping(mcGameWorld, nScreenWidth, nScreenHeight, aPuzzleArray, aLandedArray, nGridSizeX, nGridSizeY); } function UpdateScreen() { objTilesMapping.Render(0, 110); } function Setup() { aPuzzleArray = new Array(); aLandedArray = new Array(); var _local3 = 0; while (_local3 < (iTotalRow + 1)) { aPuzzleArray[_local3] = new Array(); aLandedArray[_local3] = new Array(); var _local2 = 0; while (_local2 < iTotalCol) { aPuzzleArray[_local3][_local2] = 0; aLandedArray[_local3][_local2] = 0; _local2++; } _local3++; } } function RotateTiles() { var _local4; var _local5; var _local3 = 0; while (_local3 < (iTotalRow + 1)) { var _local2 = 0; while (_local2 < iTotalCol) { if (aPuzzleArray[_local3][_local2] == staticTileMoveCenter) { _local4 = _local3; _local5 = _local2; } _local2++; } _local3++; } var _local6 = nGenerateFace + 1; if (_local6 >= 4) { _local6 = 0; } if (nGenerateType == staticTypeT) { RotateTypeT(_local4, _local5, _local6); } else if (nGenerateType == staticTypeZL) { } else if (nGenerateType == staticTypeI) { RotateTypeI(_local4, _local5, _local6); } else if (nGenerateType == staticTypeZR) { RotateTypeZR(_local4, _local5, _local6); } else if (nGenerateType == staticTypeO) { } else if (nGenerateType == staticTypeLL) { RotateTypeLL(_local4, _local5, _local6); } else if (nGenerateType == staticTypeLR) { RotateTypeLR(_local4, _local5, _local6); } } function CheckPosOk(iRow, iCol, iRowChange, iColChange) { var _local2 = true; var _local3 = aPuzzleArray[iRow + iRowChange][iCol + iColChange]; if (((((iCol + iColChange) >= 0) && ((iCol + iColChange) < iTotalCol)) && ((iRow + iRowChange) >= 0)) && ((iRow + iRowChange) < iTotalRow)) { if ((_local3 == undefined) || (_local3 == staticTileLanded)) { _local2 = false; } } else { _local2 = false; } trace(_local2); return(_local2); } function SetPosOk(iRow, iCol, iRowChange, iColChange) { aPuzzleArray[iRow + iRowChange][iCol + iColChange] = staticTileMove; } function ClearAllTileMove() { var _local3 = 0; while (_local3 < (iTotalRow + 1)) { var _local2 = 0; while (_local2 < iTotalCol) { if (aPuzzleArray[_local3][_local2] == staticTileMove) { aPuzzleArray[_local3][_local2] = staticTileEmpty; } _local2++; } _local3++; } } function Generate() { nGenerateType = nNextType; nGenerateFace = 0; DisplayNext(); var _local2 = int(iTotalCol / 2); objTilesMapping.SetCurrentType(nGenerateType); if (nGenerateType == staticTypeT) { aPuzzleArray[4][_local2] = staticTileMove; aPuzzleArray[5][_local2 - 1] = staticTileMove; aPuzzleArray[5][_local2] = staticTileMoveCenter; aPuzzleArray[5][_local2 + 1] = staticTileMove; } else if (nGenerateType == staticTypeZL) { aPuzzleArray[4][_local2] = staticTileMoveCenter; } else if (nGenerateType == staticTypeI) { aPuzzleArray[4][_local2] = staticTileMove; aPuzzleArray[5][_local2] = staticTileMoveCenter; aPuzzleArray[6][_local2] = staticTileMove; aPuzzleArray[7][_local2] = staticTileMove; } else if (nGenerateType == staticTypeZR) { aPuzzleArray[4][_local2] = staticTileMoveCenter; aPuzzleArray[4][_local2 + 1] = staticTileMove; } else if (nGenerateType == staticTypeO) { aPuzzleArray[4][_local2] = staticTileMove; aPuzzleArray[5][_local2] = staticTileMove; aPuzzleArray[4][_local2 + 1] = staticTileMoveCenter; aPuzzleArray[5][_local2 + 1] = staticTileMove; } else if (nGenerateType == staticTypeLL) { aPuzzleArray[6][_local2] = staticTileMoveCenter; aPuzzleArray[4][_local2] = staticTileMove; aPuzzleArray[5][_local2] = staticTileMove; } else if (nGenerateType == staticTypeLR) { aPuzzleArray[5][_local2 + 1] = staticTileMoveCenter; aPuzzleArray[4][_local2 + 1] = staticTileMove; aPuzzleArray[5][_local2] = staticTileMove; } trace("Hey"); } function Move() { RotateControl(); if (nKeyPressTime == undefined) { nKeyPressTime = nGameTime; } var _local2 = nGameTime - nKeyPressTime; if (_local2 > 50) { if (Key.isDown(40)) { nDownKeyPressTime = nGameTime; MoveTiles(staticMoveDown); } else if (!Key.isDown(40)) { AutoMove(); } if (Key.isDown(37)) { nKeyPressTime = nGameTime; MoveTiles(staticMoveLeft); } else if (Key.isDown(39)) { nKeyPressTime = nGameTime; MoveTiles(staticMoveRight); } } } function RotateControl() { if (Key.isDown(38)) { bKeyUpReady = true; } else if (!Key.isDown(38)) { if (bKeyUpReady) { RotateTiles(); _root.sndEffect.playSound("Rotate"); bKeyUpReady = false; } } } function MoveTiles(iMoveDirection) { if (iMoveDirection == staticMoveLeft) { var _local7 = true; var _local4 = 0; while (_local4 < iTotalCol) { var _local3 = 0; while (_local3 < (iTotalRow + 1)) { if ((aPuzzleArray[_local3][_local4] == staticTileMove) || (aPuzzleArray[_local3][_local4] == staticTileMoveCenter)) { if ((_local4 - 1) < 0) { _local7 = false; trace("Reach Left Limit"); break; } if (((aPuzzleArray[_local3][_local4 - 1] == staticTileEmpty) || (aPuzzleArray[_local3][_local4 - 1] == staticTileMove)) || (aPuzzleArray[_local3][_local4 - 1] == staticTileMoveCenter)) { } else { _local7 = false; trace("bCanMove" + _local7); break; } } _local3++; } _local4++; } if (_local7) { var _local3 = 0; while (_local3 < (iTotalRow + 1)) { _local4 = 0; while (_local4 < iTotalCol) { if (aPuzzleArray[_local3][_local4] == staticTileMove) { aPuzzleArray[_local3][_local4 - 1] = staticTileShift; aPuzzleArray[_local3][_local4] = staticTileEmpty; } if (aPuzzleArray[_local3][_local4] == staticTileMoveCenter) { aPuzzleArray[_local3][_local4 - 1] = staticTileShiftCenter; aPuzzleArray[_local3][_local4] = staticTileEmpty; } _local4++; } _local3++; } } } else if (iMoveDirection == staticMoveRight) { var _local7 = true; var _local4 = 19; while (_local4 >= 0) { var _local3 = 0; while (_local3 < (iTotalRow + 1)) { if ((aPuzzleArray[_local3][_local4] == staticTileMove) || (aPuzzleArray[_local3][_local4] == staticTileMoveCenter)) { if ((_local4 + 1) >= iTotalCol) { _local7 = false; trace("Reach Right Limit"); break; } if (((aPuzzleArray[_local3][_local4 + 1] == staticTileEmpty) || (aPuzzleArray[_local3][_local4 + 1] == staticTileMove)) || (aPuzzleArray[_local3][_local4 + 1] == staticTileMoveCenter)) { } else { _local7 = false; trace("bCanMove" + _local7); break; } } _local3++; } _local4--; } if (_local7) { var _local3 = 0; while (_local3 < (iTotalRow + 1)) { _local4 = 19; while (_local4 >= 0) { if (aPuzzleArray[_local3][_local4] == staticTileMove) { aPuzzleArray[_local3][_local4 + 1] = staticTileShift; aPuzzleArray[_local3][_local4] = staticTileEmpty; } if (aPuzzleArray[_local3][_local4] == staticTileMoveCenter) { aPuzzleArray[_local3][_local4 + 1] = staticTileShiftCenter; aPuzzleArray[_local3][_local4] = staticTileEmpty; } _local4--; } _local3++; } } } else if (iMoveDirection == staticMoveDown) { var _local7 = true; var _local3 = iTotalRow; while (_local3 >= 0) { var _local4 = 0; while (_local4 < iTotalCol) { if ((aPuzzleArray[_local3][_local4] == staticTileMove) || (aPuzzleArray[_local3][_local4] == staticTileMoveCenter)) { if (((aPuzzleArray[_local3 + 1][_local4] == staticTileEmpty) || (aPuzzleArray[_local3 + 1][_local4] == staticTileMove)) || (aPuzzleArray[_local3 + 1][_local4] == staticTileMoveCenter)) { } else { _local7 = false; break; } } _local4++; } _local3--; } if (_local7) { _local3 = iTotalRow; while (_local3 >= 0) { var _local4 = 0; while (_local4 < iTotalCol) { if (aPuzzleArray[_local3][_local4] == staticTileMove) { aPuzzleArray[_local3 + 1][_local4] = staticTileShift; aPuzzleArray[_local3][_local4] = staticTileEmpty; } if (aPuzzleArray[_local3][_local4] == staticTileMoveCenter) { aPuzzleArray[_local3 + 1][_local4] = staticTileShiftCenter; aPuzzleArray[_local3][_local4] = staticTileEmpty; } _local4++; } _local3--; } } else { _local3 = iTotalRow; while (_local3 >= 10) { var _local4 = 0; while (_local4 < iTotalCol) { if ((aPuzzleArray[_local3][_local4] == staticTileMove) || (aPuzzleArray[_local3][_local4] == staticTileMoveCenter)) { aPuzzleArray[_local3][_local4] = staticTileToLand; } _local4++; } _local3--; } } } var _local3 = iTotalRow; while (_local3 >= 0) { var _local4 = 0; while (_local4 < iTotalCol) { if (aPuzzleArray[_local3][_local4] == staticTileShift) { aPuzzleArray[_local3][_local4] = staticTileMove; } if (aPuzzleArray[_local3][_local4] == staticTileShiftCenter) { aPuzzleArray[_local3][_local4] = staticTileMoveCenter; } _local4++; } _local3--; } var _local6 = false; _local3 = iTotalRow; while (_local3 >= 10) { var _local4 = 0; while (_local4 < iTotalCol) { if (aPuzzleArray[_local3][_local4] == staticTileToLand) { aPuzzleArray[_local3][_local4] = staticTileLanded; aLandedArray[_local3][_local4] = nGenerateType; _local6 = true; if (nGenerateType == staticTypeZL) { BombArea(_local3, _local4); BombArea(_local3 - 1, _local4); BombArea(_local3 - 2, _local4); BombArea(_local3 + 1, _local4); BombArea(_local3 + 2, _local4); BombArea(_local3, _local4 + 1); BombArea(_local3, _local4 + 2); BombArea(_local3, _local4 - 1); BombArea(_local3, _local4 - 2); BombArea(_local3 + 1, _local4 + 1); BombArea(_local3 - 1, _local4 + 1); BombArea(_local3 + 1, _local4 - 1); BombArea(_local3 - 1, _local4 - 1); _root.sndEffect.playSound("Bomb"); } if (nGenerateType == staticTypeZR) { var _local5 = 0; while (_local5 < iTotalCol) { BombArea(_local3, _local5); _local5++; } Collapse(_local3); _local3++; } } _local4++; } _local3--; } if (_local6) { if (nGenerateType == staticTypeZR) { _root.sndEffect.playSound("Bomb"); } _root.sndEffect.playSound("Drop"); CheckLineFilled(); Generate(); CheckGameOver(); } } function BombArea(iRow, iCol) { if (aLandedArray[iRow][iCol] != 0) { aLandedArray[iRow][iCol] = staticTileEmpty; aPuzzleArray[iRow][iCol] = staticTileEmpty; iScore++; ScoreBoard(); } } function Collapse(iRow) { var _local3 = iRow; while (_local3 >= 10) { var _local2 = 0; while (_local2 < iTotalCol) { aPuzzleArray[_local3][_local2] = aPuzzleArray[_local3 - 1][_local2]; aLandedArray[_local3][_local2] = aLandedArray[_local3 - 1][_local2]; _local2++; } _local3--; } } function AutoMove() { if (nStartTime == undefined) { nStartTime = nGameTime; } var _local3 = nGameTime - nStartTime; var _local2 = 700 - (iLevel * 70); if (_local2 <= 0) { _local2 = 0; } if (_local3 > _local2) { nStartTime = nGameTime; MoveTiles(staticMoveDown); } } function AutoAddLine() { if (nAddLineTime == undefined) { nAddLineTime = nGameTime; } var _local3 = nGameTime - nAddLineTime; var _local2 = 9000 - (iLevel * 30); if (_local2 <= 0) { _local2 = 0; } if (_local3 > _local2) { nAddLineTime = nGameTime; if (CheckCanAddLine()) { AddLineFilled(); } else { Move(); } } else { Move(); } } function RotateTypeT(iRow, iCol, iTempFace) { switch (iTempFace) { case 0 : var _local7 = CheckPosOk(iRow, iCol, 0, 1); var _local6 = CheckPosOk(iRow, iCol, 1, 0); var _local5 = CheckPosOk(iRow, iCol, 0, -1); if ((_local7 && (_local6)) && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, 1); SetPosOk(iRow, iCol, 1, 0); SetPosOk(iRow, iCol, 0, -1); } break; case 1 : _local7 = CheckPosOk(iRow, iCol, -1, 0); _local6 = CheckPosOk(iRow, iCol, 0, -1); _local5 = CheckPosOk(iRow, iCol, 1, 0); if ((_local7 && (_local6)) && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 1, 0); } break; case 2 : _local7 = CheckPosOk(iRow, iCol, 0, 1); _local6 = CheckPosOk(iRow, iCol, -1, 0); _local5 = CheckPosOk(iRow, iCol, 0, -1); if ((_local7 && (_local6)) && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, 1); SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, -1); } break; case 3 : _local7 = CheckPosOk(iRow, iCol, -1, 0); _local6 = CheckPosOk(iRow, iCol, 0, 1); _local5 = CheckPosOk(iRow, iCol, 1, 0); if (!((_local7 && (_local6)) && (_local5))) { break; } ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, 1); SetPosOk(iRow, iCol, 1, 0); } } function RotateTypeZL(iRow, iCol, iTempFace) { switch (iTempFace) { case 0 : var _local6 = CheckPosOk(iRow, iCol, 0, -1); var _local5 = CheckPosOk(iRow, iCol, 1, 0); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 1, 0); } break; case 1 : _local6 = CheckPosOk(iRow, iCol, -1, 0); _local5 = CheckPosOk(iRow, iCol, 0, -1); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, -1); } break; case 2 : _local6 = CheckPosOk(iRow, iCol, 0, -1); _local5 = CheckPosOk(iRow, iCol, 1, 0); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 1, 0); } break; case 3 : _local6 = CheckPosOk(iRow, iCol, -1, 0); _local5 = CheckPosOk(iRow, iCol, 0, -1); if (!(_local6 && (_local5))) { break; } ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, -1); } } function RotateTypeZR(iRow, iCol, iTempFace) { switch (iTempFace) { case 0 : var _local5 = CheckPosOk(iRow, iCol, 0, 1); if (_local5) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, 1); } break; case 1 : _local5 = CheckPosOk(iRow, iCol, -1, 0); if (_local5) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); } break; case 2 : _local5 = CheckPosOk(iRow, iCol, 0, 1); if (_local5) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, 1); } break; case 3 : _local5 = CheckPosOk(iRow, iCol, -1, 0); if (!_local5) { break; } ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); } } function RotateTypeLL(iRow, iCol, iTempFace) { switch (iTempFace) { case 0 : var _local6 = CheckPosOk(iRow, iCol, -1, 0); var _local5 = CheckPosOk(iRow, iCol, 1, 0); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 1, 0); } break; case 1 : _local6 = CheckPosOk(iRow, iCol, 0, -1); _local5 = CheckPosOk(iRow, iCol, 0, 1); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 0, 1); } break; case 2 : _local6 = CheckPosOk(iRow, iCol, -1, 0); _local5 = CheckPosOk(iRow, iCol, 1, 0); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 1, 0); } break; case 3 : _local6 = CheckPosOk(iRow, iCol, 0, -1); _local5 = CheckPosOk(iRow, iCol, 0, 1); if (!(_local6 && (_local5))) { break; } ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 0, 1); } } function RotateTypeLR(iRow, iCol, iTempFace) { switch (iTempFace) { case 0 : var _local6 = CheckPosOk(iRow, iCol, -1, 0); var _local5 = CheckPosOk(iRow, iCol, 0, -1); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, -1); } break; case 1 : _local6 = CheckPosOk(iRow, iCol, -1, 0); _local5 = CheckPosOk(iRow, iCol, 0, 1); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 0, 1); } break; case 2 : _local6 = CheckPosOk(iRow, iCol, 1, 0); _local5 = CheckPosOk(iRow, iCol, 0, 1); if (_local6 && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 1, 0); SetPosOk(iRow, iCol, 0, 1); } break; case 3 : _local6 = CheckPosOk(iRow, iCol, 1, 0); _local5 = CheckPosOk(iRow, iCol, 0, -1); if (!(_local6 && (_local5))) { break; } ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 1, 0); SetPosOk(iRow, iCol, 0, -1); } } function RotateTypeI(iRow, iCol, iTempFace) { switch (iTempFace) { case 0 : var _local7 = CheckPosOk(iRow, iCol, -1, 0); var _local6 = CheckPosOk(iRow, iCol, 1, 0); var _local5 = CheckPosOk(iRow, iCol, 2, 0); if ((_local7 && (_local6)) && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 1, 0); SetPosOk(iRow, iCol, 2, 0); } break; case 1 : _local7 = CheckPosOk(iRow, iCol, 0, -1); _local6 = CheckPosOk(iRow, iCol, 0, 1); _local5 = CheckPosOk(iRow, iCol, 0, 2); if ((_local7 && (_local6)) && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 0, 1); SetPosOk(iRow, iCol, 0, 2); } break; case 2 : _local7 = CheckPosOk(iRow, iCol, -1, 0); _local6 = CheckPosOk(iRow, iCol, 1, 0); _local5 = CheckPosOk(iRow, iCol, 2, 0); if ((_local7 && (_local6)) && (_local5)) { ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, -1, 0); SetPosOk(iRow, iCol, 1, 0); SetPosOk(iRow, iCol, 2, 0); } break; case 3 : _local7 = CheckPosOk(iRow, iCol, 0, -1); _local6 = CheckPosOk(iRow, iCol, 0, 1); _local5 = CheckPosOk(iRow, iCol, 0, 2); if (!((_local7 && (_local6)) && (_local5))) { break; } ClearAllTileMove(); nGenerateFace = iTempFace; SetPosOk(iRow, iCol, 0, -1); SetPosOk(iRow, iCol, 0, 1); SetPosOk(iRow, iCol, 0, 2); } } function CheckLineFilled() { var _local8 = 0; var _local6 = iTotalRow; while (_local6 >= 10) { var _local7 = true; var _local5 = 0; while (_local5 < iTotalCol) { if (aPuzzleArray[_local6][_local5] != staticTileLanded) { _local7 = false; } _local5++; } if (_local7) { _local8++; var _local4 = _local6; while (_local4 >= 10) { var _local3 = 0; while (_local3 < iTotalCol) { aPuzzleArray[_local4][_local3] = aPuzzleArray[_local4 - 1][_local3]; aLandedArray[_local4][_local3] = aLandedArray[_local4 - 1][_local3]; _local3++; } _local4--; } _local6++; } _local6--; } if (_local8 > 0) { _root.sndEffect.playSound("LineClear"); iScore = iScore + (((_local8 * _local8) + 1) * (iTotalCol * iDiff)); if (_local8 == 1) { iOneLine++; } else if (_local8 == 2) { iTwoLines++; } else if (_local8 == 3) { iThreeLines++; } else if (_local8 == 4) { iFourLines++; } ScoreBoard(); } } function ScoreBoard() { if (iScore >= iToLevel) { SetToNextLevel(); } DisplayInfo(); } function DisplayNext() { var _local5 = random(100); var _local4 = 90; if (iDiff == 1) { _local4 = 70; } if (_local5 > _local4) { var _local3 = random(2); if (_local3 == 0) { nNextType = staticTypeZL; } else if (_local3 == 1) { nNextType = staticTypeZR; } } else { var _local3 = random(5); if (_local3 == 0) { nNextType = staticTypeT; } else if (_local3 == 1) { nNextType = staticTypeI; } else if (_local3 == 2) { nNextType = staticTypeO; } else if (_local3 == 3) { nNextType = staticTypeLL; } else if (_local3 == 4) { nNextType = staticTypeLR; } } _root.mcNextBlock.gotoAndStop(nNextType); } function SetToNextLevel() { iLevel++; iToLevel = iToLevel + ((iLevel * 4) * (iTotalCol * iDiff)); } function DisplayInfo() { _root.txtLevel.text = "Current Level: " + iLevel; _root.txtFourLines.text = iFourLines; _root.txtThreeLines.text = iThreeLines; _root.txtTwoLines.text = iTwoLines; _root.txtOneLine.text = iOneLine; _root.txtToLevel.text = iToLevel - iScore; _root.txtScore.text = iScore; } function AddLineFilled() { var _local2 = 0; while (_local2 < (iTotalRow + 1)) { var _local3 = 0; while (_local3 < iTotalCol) { aPuzzleArray[_local2 - 1][_local3] = aPuzzleArray[_local2][_local3]; aLandedArray[_local2 - 1][_local3] = aLandedArray[_local2][_local3]; aPuzzleArray[_local2][_local3] = 0; aLandedArray[_local2][_local3] = 0; _local3++; } _local2++; } var _local5 = 0; var _local3 = 0; while (_local3 < iTotalCol) { var _local4 = random(2); if (_local4 == 0) { _local5++; } if (_local4 == 1) { aPuzzleArray[iTotalRow][_local3] = staticTileLanded; aLandedArray[iTotalRow][_local3] = 10; } _local3++; } var _local6 = random(iTotalCol); if (_local5 == 0) { aLandedArray[iTotalRow][_local6]; } trace("this.aLandedArray[this.iTotalRow]" + aLandedArray[iTotalRow]); } function CheckCanAddLine() { var _local3 = iTotalRow - (iLevel * 5); if (_local3 < 15) { _local3 = 15; } var _local4 = true; var _local2 = 0; while (_local2 < iTotalCol) { if (aLandedArray[_local3][_local2] != 0) { _local4 = false; break; } _local2++; } return(_local4); } function DisplayGameOver() { aPuzzleArray[iOverRow][iOverCol] = staticTileLanded; aLandedArray[iOverRow][iOverCol] = 10; iOverCol++; if (iOverCol >= iTotalCol) { iOverCol = 0; iOverRow++; if (iOverRow > iTotalRow) { trace("Game Over Complete"); iGameStatus = staticGameStop; _root.gotoAndPlay("gameoverframe"); } } } function CheckGameOver() { var _local3 = false; var _local2 = 0; while (_local2 < iTotalCol) { if (aLandedArray[10][_local2] != 0) { _local3 = true; break; } _local2++; } if (_local3) { iGameStatus = staticGameOver; } } function GetTotalScore() { return(iScore); } var nScreenWidth = 100; var nScreenHeight = 300; var nGridSizeX = 10; var nGridSizeY = 10; var bKeyUpReady = false; var iLevel = 1; var iDiff = 1; var iFourLines = 0; var iThreeLines = 0; var iTwoLines = 0; var iOneLine = 0; var iToLevel = 0; var iScore = 0; var iOverRow = 9; var iOverCol = 0; var iTotalRow = 40; var iTotalCol = 10; var iMoveStatus = 0; static var staticMoveLeft = 0; static var staticMoveRight = 1; static var staticMoveUp = 2; static var staticMoveDown = 3; static var staticTileEmpty = 0; static var staticTileMove = 1; static var staticTileMoveCenter = 2; static var staticTileToLand = 3; static var staticTileLanded = 5; static var staticTileShift = 7; static var staticTileShiftCenter = 8; static var staticTypeT = 1; static var staticTypeZL = 2; static var staticTypeI = 3; static var staticTypeZR = 4; static var staticTypeO = 5; static var staticTypeLL = 6; static var staticTypeLR = 7; static var staticGamePlay = 0; static var staticGameOver = 1; static var staticGameStop = 2; }
Symbol 260 MovieClip [__Packages.classes.TilesMapping] Frame 0
class classes.TilesMapping { var nScreenWidth, nScreenHeight, aMapArray, aLandedArray, nGridSizeX, nGridSizeY, mcGameWorld, rScreenBoundary, rGridRectangle, rBgkRectangle, pPastePoint, objMapData, nGenerateType; function TilesMapping (mworld, swidth, sheight, amap, aland, gsizex, gsizey) { trace("TileMapping Constructor Loaded"); InitVars(mworld, swidth, sheight, amap, aland, gsizex, gsizey); SetupObjects(); } function InitVars(mworld, swidth, sheight, amap, aland, gsizex, gsizey) { nScreenWidth = swidth; nScreenHeight = sheight; aMapArray = amap; aLandedArray = aland; nGridSizeX = gsizex; nGridSizeY = gsizey; mcGameWorld = mworld; trace("this.aMapArray" + aMapArray); } function UpdateMap(amap) { aMapArray = amap; } function SetupObjects() { rScreenBoundary = new flash.geom.Rectangle(0, 0, nScreenWidth, nScreenHeight); rGridRectangle = new flash.geom.Rectangle(0, 0, nGridSizeX, nGridSizeY); rBgkRectangle = new flash.geom.Rectangle(0, 0, nScreenWidth, nScreenHeight); pPastePoint = new flash.geom.Point(0, 0); objMapData = new flash.display.BitmapData(nScreenWidth, nScreenHeight, false, 0); mcGameWorld.attachBitmap(objMapData, 10); } function Render(tdistx, tdisty) { nDistanceTravelX = tdistx; nDistanceTravelY = tdisty; objMapData.fillRect(rScreenBoundary, 0); RenderTiles(); } function RenderTiles() { nAnimateCounter++; if (nAnimateCounter > 10) { nAnimateCounter = 1; } pPastePoint.x = 0; pPastePoint.y = 0; var _local9 = Math.floor(nDistanceTravelX / nGridSizeX); var _local8 = nDistanceTravelX - (_local9 * nGridSizeX); var _local10 = Math.floor(nDistanceTravelY / nGridSizeY); var _local11 = nDistanceTravelY - (_local10 * nGridSizeY); var _local6 = _local9; var _local7 = _local10; pPastePoint.y = -_local11; var _local4 = _local7; while (_local4 < (_local7 + 40)) { pPastePoint.x = -_local8; var _local3 = _local6; while (_local3 < (_local6 + 20)) { if ((aMapArray[_local4][_local3] != staticTileEmpty) && (aMapArray[_local4][_local3] != undefined)) { var _local5 = 0; if ((aMapArray[_local4][_local3] == staticTileMove) || (aMapArray[_local4][_local3] == staticTileMoveCenter)) { _local5 = nGenerateType; if ((nGenerateType == staticTypeZL) || (nGenerateType == staticTypeZR)) { _local5 = nAnimateCounter; } } else if (aMapArray[_local4][_local3] == staticTileLanded) { _local5 = aLandedArray[_local4][_local3]; } objMapData.copyPixels(_global.gTilesLibrary.RetrieveTile(_local5), rGridRectangle, pPastePoint); } pPastePoint.x = pPastePoint.x + nGridSizeX; _local3++; } pPastePoint.y = pPastePoint.y + nGridSizeY; _local4++; } } function ClearAll() { objMapData.dispose(); delete objMapData; } function SetCurrentType(gtype) { nGenerateType = gtype; trace("TILES this.nGenerateType == " + nGenerateType); } var nDistanceTravelX = 0; var nDistanceTravelY = 0; var nAnimateCounter = 1; static var staticTileEmpty = 0; static var staticTileMove = 1; static var staticTileMoveCenter = 2; static var staticTileToLand = 3; static var staticTileLanded = 5; static var staticTileShift = 7; static var staticTileShiftCenter = 8; static var staticTypeT = 1; static var staticTypeZL = 2; static var staticTypeI = 3; static var staticTypeZR = 4; static var staticTypeO = 5; static var staticTypeLL = 6; static var staticTypeLR = 7; }
Symbol 261 MovieClip [__Packages.classes.TilesLibrary] Frame 0
class classes.TilesLibrary { var aLibraryArray; function TilesLibrary (bitmaps) { trace("Setup Tiles Library"); InitVars(bitmaps); } function InitVars(bitmaps) { aLibraryArray = new Array(); var _local2 = 0; while (_local2 < bitmaps.length) { aLibraryArray[_local2] = flash.display.BitmapData.loadBitmap(bitmaps[_local2]); _local2++; } } function AddTile(tileName, arrayPosition) { aLibraryArray[arrayPosition] = flash.display.BitmapData.loadBitmap(tileName); } function RetrieveTile(id) { return(aLibraryArray[id]); } }
Symbol 112 MovieClip Frame 186
stop(); this._parent.play();
Symbol 161 Button
on (release) { _root.gotoAndPlay("chooseframe"); }
Symbol 163 Button
on (release) { getURL ("http://www.mrtiki.com/?ref=Wee", "_blank"); }
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 182 Button
on (release) { _root.play(); }
Symbol 242 Button
on (release) { _root.gotoAndPlay("gameoverframe"); }
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
stop();
Symbol 250 MovieClip Frame 3
stop();
Symbol 250 MovieClip Frame 4
stop();
Symbol 250 MovieClip Frame 5
stop();
Symbol 250 MovieClip Frame 6
stop();
Symbol 250 MovieClip Frame 7
stop();
Symbol 252 Button
on (release) { _global.menuSelect = 2; _root.play(); }

Library Items

Symbol 1 Font [customGenericGame1_fnt]Used by:169 170 199 243 253
Symbol 2 Font [customGenericGame0_fnt]Used by:162 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 200 201 202 203 204 205 255
Symbol 3 Sound [Rotate]
Symbol 4 Sound [Music]
Symbol 5 Sound [LineClear]
Symbol 6 Sound [Drop]
Symbol 7 Sound [Bomb]
Symbol 8 Bitmap [Tile9]Used by:216
Symbol 9 Bitmap [Tile8]Used by:215
Symbol 10 Bitmap [Tile7]Used by:214 249
Symbol 11 Bitmap [Tile6]Used by:213 248
Symbol 12 Bitmap [Tile5]Used by:212 247
Symbol 13 Bitmap [Tile4]Used by:211
Symbol 14 Bitmap [Tile3]Used by:210 246
Symbol 15 Bitmap [Tile2]Used by:209
Symbol 16 Bitmap [Tile10]Used by:217
Symbol 17 Bitmap [Tile1]Used by:208 245
Symbol 18 GraphicUsed by:38
Symbol 19 GraphicUsed by:38
Symbol 20 GraphicUsed by:38
Symbol 21 GraphicUsed by:38
Symbol 22 GraphicUsed by:38
Symbol 23 GraphicUsed by:38
Symbol 24 GraphicUsed by:38
Symbol 25 GraphicUsed by:38
Symbol 26 GraphicUsed by:38
Symbol 27 GraphicUsed by:38
Symbol 28 GraphicUsed by:38
Symbol 29 GraphicUsed by:38
Symbol 30 GraphicUsed by:38
Symbol 31 GraphicUsed by:38
Symbol 32 GraphicUsed by:38
Symbol 33 GraphicUsed by:38
Symbol 34 GraphicUsed by:38
Symbol 35 GraphicUsed by:38
Symbol 36 GraphicUsed by:38
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClip [Ground1]Uses:18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37Used by:151
Symbol 39 GraphicUsed by:40 42 161 163 178 182 242 252
Symbol 40 MovieClipUses:39Used by:Timeline
Symbol 41 GraphicUsed by:44
Symbol 42 MovieClipUses:39Used by:44
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:41 42 43Used by:Timeline
Symbol 45 GraphicUsed by:112  Timeline
Symbol 46 FontUsed by:47 48 165
Symbol 47 TextUses:46Used by:112  Timeline
Symbol 48 TextUses:46Used by:112  Timeline
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:112  Timeline
Symbol 256 MovieClip [__Packages.classes.SoundFX]
Symbol 257 MovieClip [__Packages.classes.BGM]
Symbol 258 MovieClip [__Packages.classes.Keyboard]
Symbol 259 MovieClip [__Packages.classes.Weetrix]
Symbol 260 MovieClip [__Packages.classes.TilesMapping]
Symbol 261 MovieClip [__Packages.classes.TilesLibrary]
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:51Used by:112
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:55
Symbol 55 MovieClipUses:54Used by:58
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:58
Symbol 58 MovieClipUses:55 57Used by:112
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:112
Symbol 61 GraphicUsed by:68
Symbol 62 GraphicUsed by:68
Symbol 63 GraphicUsed by:68
Symbol 64 GraphicUsed by:68
Symbol 65 GraphicUsed by:68
Symbol 66 GraphicUsed by:68
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:61 62 63 64 65 66 67Used by:69
Symbol 69 MovieClipUses:68Used by:112
Symbol 70 GraphicUsed by:79
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:79
Symbol 73 GraphicUsed by:78
Symbol 74 GraphicUsed by:78
Symbol 75 GraphicUsed by:78
Symbol 76 GraphicUsed by:78
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:73 74 75 76 77Used by:79
Symbol 79 MovieClipUses:70 72 78Used by:80
Symbol 80 MovieClipUses:79Used by:112
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:103 104
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:83Used by:103 104
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85Used by:103 104
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:103 104
Symbol 89 GraphicUsed by:90
Symbol 90 MovieClipUses:89Used by:103 104
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:103 104
Symbol 93 GraphicUsed by:98
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:98
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClipUses:96Used by:98
Symbol 98 MovieClipUses:93 95 97Used by:103 104
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:99Used by:103 104
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:103 104
Symbol 103 MovieClipUses:82 84 86 88 90 92 98 100 102Used by:112
Symbol 104 MovieClipUses:82 84 86 88 90 98 92 100 102Used by:112
Symbol 105 GraphicUsed by:108
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:108
Symbol 108 MovieClipUses:105 107Used by:112
Symbol 109 FontUsed by:110
Symbol 110 TextUses:109Used by:111
Symbol 111 MovieClipUses:110Used by:112
Symbol 112 MovieClipUses:52 58 60 45 47 48 69 80 103 104 108 111 50Used by:Timeline
Symbol 113 GraphicUsed by:151
Symbol 114 GraphicUsed by:144
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClipUses:115Used by:144
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:117Used by:144
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClipUses:119Used by:144
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:121Used by:144
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:123Used by:144
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:125Used by:144
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:127Used by:144
Symbol 129 GraphicUsed by:130
Symbol 130 MovieClipUses:129Used by:144
Symbol 131 GraphicUsed by:144
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:132Used by:144
Symbol 134 MovieClipUsed by:144
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:135Used by:144
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:137Used by:144
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:144
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:144
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:114 116 118 120 122 124 126 128 130 131 133 134 136 138 140 142 143Used by:151
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:145Used by:151
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:147Used by:151
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:149Used by:151
Symbol 151 MovieClipUses:113 144 38 146 148 150Used by:Timeline
Symbol 152 GraphicUsed by:155
Symbol 153 GraphicUsed by:154
Symbol 154 MovieClipUses:153Used by:155 160 180 251
Symbol 155 MovieClipUses:152 154Used by:181  Timeline
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:156Used by:160 251
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClipUses:158Used by:160 251
Symbol 160 MovieClipUses:157 159 154Used by:Timeline
Symbol 161 ButtonUses:39Used by:Timeline
Symbol 162 EditableTextUses:2Used by:Timeline
Symbol 163 ButtonUses:39Used by:171 172
Symbol 164 GraphicUsed by:167
Symbol 165 TextUses:46Used by:167
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClipUses:164 165 166Used by:168
Symbol 168 MovieClipUses:167Used by:171
Symbol 169 EditableTextUses:1Used by:171
Symbol 170 TextUses:1Used by:171
Symbol 171 MovieClipUses:163 168 169 170Used by:172
Symbol 172 MovieClipUses:171 163Used by:Timeline
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:177
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClipUses:175Used by:177
Symbol 177 MovieClipUses:174 176Used by:Timeline
Symbol 178 MovieClipUses:39Used by:Timeline
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:179 154Used by:Timeline
Symbol 181 MovieClipUses:155Used by:Timeline
Symbol 182 ButtonUses:39Used by:Timeline
Symbol 183 EditableTextUses:2Used by:Timeline
Symbol 184 EditableTextUses:2Used by:Timeline
Symbol 185 EditableTextUses:2Used by:Timeline
Symbol 186 EditableTextUses:2Used by:Timeline
Symbol 187 EditableTextUses:2Used by:Timeline
Symbol 188 EditableTextUses:2Used by:Timeline
Symbol 189 EditableTextUses:2Used by:Timeline
Symbol 190 EditableTextUses:2Used by:Timeline
Symbol 191 EditableTextUses:2Used by:Timeline
Symbol 192 EditableTextUses:2Used by:Timeline
Symbol 193 EditableTextUses:2Used by:Timeline
Symbol 194 EditableTextUses:2Used by:Timeline
Symbol 195 EditableTextUses:2Used by:Timeline
Symbol 196 EditableTextUses:2Used by:Timeline
Symbol 197 EditableTextUses:2Used by:Timeline
Symbol 198 FontUsed by:199 220 222 223 224 225 226 227 228 229 230 231 232 233 234 243 253 254
Symbol 199 EditableTextUses:1 198Used by:Timeline
Symbol 200 EditableTextUses:2Used by:Timeline
Symbol 201 EditableTextUses:2Used by:Timeline
Symbol 202 EditableTextUses:2Used by:Timeline
Symbol 203 EditableTextUses:2Used by:Timeline
Symbol 204 EditableTextUses:2Used by:Timeline
Symbol 205 EditableTextUses:2Used by:Timeline
Symbol 206 FontUsed by:207
Symbol 207 EditableTextUses:206Used by:Timeline
Symbol 208 GraphicUses:17Used by:218
Symbol 209 GraphicUses:15Used by:218
Symbol 210 GraphicUses:14Used by:218
Symbol 211 GraphicUses:13Used by:218
Symbol 212 GraphicUses:12Used by:218
Symbol 213 GraphicUses:11Used by:218
Symbol 214 GraphicUses:10Used by:218
Symbol 215 GraphicUses:9Used by:218
Symbol 216 GraphicUses:8Used by:218
Symbol 217 GraphicUses:16Used by:218
Symbol 218 MovieClipUses:208 209 210 211 212 213 214 215 216 217Used by:250  Timeline
Symbol 219 GraphicUsed by:Timeline
Symbol 220 EditableTextUses:198Used by:Timeline
Symbol 221 GraphicUsed by:Timeline
Symbol 222 EditableTextUses:198Used by:Timeline
Symbol 223 EditableTextUses:198Used by:Timeline
Symbol 224 EditableTextUses:198Used by:Timeline
Symbol 225 EditableTextUses:198Used by:Timeline
Symbol 226 EditableTextUses:198Used by:Timeline
Symbol 227 EditableTextUses:198Used by:Timeline
Symbol 228 EditableTextUses:198Used by:Timeline
Symbol 229 EditableTextUses:198Used by:Timeline
Symbol 230 EditableTextUses:198Used by:Timeline
Symbol 231 EditableTextUses:198Used by:Timeline
Symbol 232 EditableTextUses:198Used by:Timeline
Symbol 233 EditableTextUses:198Used by:Timeline
Symbol 234 EditableTextUses:198Used by:Timeline
Symbol 235 GraphicUsed by:Timeline
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClipUses:236Used by:Timeline
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClipUses:238Used by:Timeline
Symbol 240 GraphicUsed by:241
Symbol 241 MovieClipUses:240Used by:Timeline
Symbol 242 ButtonUses:39Used by:Timeline
Symbol 243 EditableTextUses:1 198Used by:Timeline
Symbol 244 MovieClipUsed by:Timeline
Symbol 245 GraphicUses:17Used by:250
Symbol 246 GraphicUses:14Used by:250
Symbol 247 GraphicUses:12Used by:250
Symbol 248 GraphicUses:11Used by:250
Symbol 249 GraphicUses:10Used by:250
Symbol 250 MovieClipUses:245 218 246 247 248 249Used by:Timeline
Symbol 251 MovieClipUses:157 159 154Used by:Timeline
Symbol 252 ButtonUses:39Used by:Timeline
Symbol 253 EditableTextUses:1 198Used by:Timeline
Symbol 254 EditableTextUses:198Used by:Timeline
Symbol 255 EditableTextUses:2Used by:Timeline

Instance Names

"playGame_btn"Frame 4Symbol 161 Button
"startGame_txt"Frame 4Symbol 162 EditableText
"sound_btn"Frame 4Symbol 177 MovieClip
"mcLevel1"Frame 11Symbol 181 MovieClip
"mcLevel2"Frame 11Symbol 181 MovieClip
"mcLevel3"Frame 11Symbol 181 MovieClip
"mcLevel4"Frame 11Symbol 181 MovieClip
"mcLevel5"Frame 11Symbol 181 MovieClip
"mcLevel6"Frame 11Symbol 181 MovieClip
"mcLevel7"Frame 11Symbol 181 MovieClip
"mcLevel8"Frame 11Symbol 181 MovieClip
"mcLevel9"Frame 11Symbol 181 MovieClip
"mcLevel10"Frame 11Symbol 181 MovieClip
"mcDiff2"Frame 11Symbol 181 MovieClip
"mcDiff1"Frame 11Symbol 181 MovieClip
"playGame_btn"Frame 11Symbol 182 Button
"continue_txt"Frame 11Symbol 183 EditableText
"mcSize2"Frame 11Symbol 181 MovieClip
"mcSize1"Frame 11Symbol 181 MovieClip
"mcSize3"Frame 11Symbol 181 MovieClip
"sound_btn"Frame 11Symbol 177 MovieClip
"playGame_btn"Frame 18Symbol 182 Button
"startGame_txt"Frame 18Symbol 204 EditableText
"sound_btn"Frame 18Symbol 177 MovieClip
"txtLevel"Frame 25Symbol 228 EditableText
"txtScore"Frame 25Symbol 229 EditableText
"txtToLevel"Frame 25Symbol 230 EditableText
"txtFourLines"Frame 25Symbol 231 EditableText
"txtThreeLines"Frame 25Symbol 232 EditableText
"txtTwoLines"Frame 25Symbol 233 EditableText
"txtOneLine"Frame 25Symbol 234 EditableText
"mcPuzzlePanel3"Frame 25Symbol 237 MovieClip
"mcPuzzlePanel2"Frame 25Symbol 239 MovieClip
"mcPuzzlePanel1"Frame 25Symbol 241 MovieClip
"gameOver_btn"Frame 25Symbol 242 Button
"endGame_txt"Frame 25Symbol 243 EditableText
"mcWorld3"Frame 25Symbol 244 MovieClip
"mcNextBlock"Frame 25Symbol 250 MovieClip
"mcWorld2"Frame 25Symbol 244 MovieClip
"mcWorld1"Frame 25Symbol 244 MovieClip
"mcPrompt"Frame 25Symbol 244 MovieClip
"sound_btn"Frame 25Symbol 177 MovieClip
"restartGame_btn"Frame 32Symbol 252 Button
"restartGame_txt"Frame 32Symbol 253 EditableText
"final_score_txt"Frame 32Symbol 254 EditableText
"sound_btn"Frame 32Symbol 177 MovieClip
"bar"Symbol 44 MovieClip Frame 1Symbol 42 MovieClip
"mcAction"Symbol 112 MovieClip Frame 30Symbol 80 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "customGenericGame1_fnt"
ExportAssets (56)Timeline Frame 1Symbol 2 as "customGenericGame0_fnt"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Rotate"
ExportAssets (56)Timeline Frame 1Symbol 4 as "Music"
ExportAssets (56)Timeline Frame 1Symbol 5 as "LineClear"
ExportAssets (56)Timeline Frame 1Symbol 6 as "Drop"
ExportAssets (56)Timeline Frame 1Symbol 7 as "Bomb"
ExportAssets (56)Timeline Frame 1Symbol 8 as "Tile9"
ExportAssets (56)Timeline Frame 1Symbol 9 as "Tile8"
ExportAssets (56)Timeline Frame 1Symbol 10 as "Tile7"
ExportAssets (56)Timeline Frame 1Symbol 11 as "Tile6"
ExportAssets (56)Timeline Frame 1Symbol 12 as "Tile5"
ExportAssets (56)Timeline Frame 1Symbol 13 as "Tile4"
ExportAssets (56)Timeline Frame 1Symbol 14 as "Tile3"
ExportAssets (56)Timeline Frame 1Symbol 15 as "Tile2"
ExportAssets (56)Timeline Frame 1Symbol 16 as "Tile10"
ExportAssets (56)Timeline Frame 1Symbol 17 as "Tile1"
ExportAssets (56)Timeline Frame 1Symbol 38 as "Ground1"
ExportAssets (56)Timeline Frame 1Symbol 256 as "__Packages.classes.SoundFX"
ExportAssets (56)Timeline Frame 1Symbol 257 as "__Packages.classes.BGM"
ExportAssets (56)Timeline Frame 1Symbol 258 as "__Packages.classes.Keyboard"
ExportAssets (56)Timeline Frame 1Symbol 259 as "__Packages.classes.Weetrix"
ExportAssets (56)Timeline Frame 1Symbol 260 as "__Packages.classes.TilesMapping"
ExportAssets (56)Timeline Frame 1Symbol 261 as "__Packages.classes.TilesLibrary"

Labels

"resetAllFrame"Frame 4
"chooseframe"Frame 11
"instructframe"Frame 18
"gameframe"Frame 25
"gameoverframe"Frame 32
"sendScoreFrame"Frame 40
"gotoIntroFrame"Frame 41
"loaded"Symbol 44 MovieClip Frame 3




http://swfchan.com/10/47199/info.shtml
Created: 2/5 -2019 08:12:57 Last modified: 2/5 -2019 08:12:57 Server time: 22/12 -2024 20:16:44