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

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

twistmesilly.swf

This is the info page for
Flash #246343

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


Text
888

S C O R E

<p align="center"><font face="LCDSH-Regular" size="28" color="#ff0000" letterSpacing="0.000000" kerning="1"><b>0</b></font></p>

<p align="center"><font face="LCDSH-Regular" size="18" color="#ff0000" letterSpacing="0.000000" kerning="1"><b>level 2</b></font></p>

S H U D D E N

8

Time's UP!

Time's UP!

Time's UP!

Level completed

Score

123456789

bonus

12345

Total Score

123456789

______________________________________

click to exit

I

Spela såhär:

Regnsbågsbrickor kan kopplas samman med alla andra färger.

Rotera brickor så minst tre dioder av samma färg kopplas samman.

Game starts in xx seconds

--> click to start <--

like this!

Specialobjekt:

Dyker upp när man gjort en kedja. Spränger runt sig.

Dyker upp när man gjort två kedjor. Spränger i sidled.

Dyker upp när man gjort tre kedjor. Spränger alla brickor i samma färg.

<p align="left"><font face="Times New Roman" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><b>000</b></font></p>

<p align="left"><font face="Times New Roman" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><b>000</b></font></p>

<p align="left"><font face="Times New Roman" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><b>000</b></font></p>

<p align="left"><font face="Times New Roman" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><b>000</b></font></p>

ActionScript [AS3]

Section 1
//BlingStar (com.king.twistmesilly.BlingStar) package com.king.twistmesilly { class BlingStar { public var clip:bling2; private var posX:int; private var posY:int; private var scale:Number; private var show:Boolean; private var animFrame:int; private var inactivated:Boolean; private var hideFrames:int; private var generate:Boolean; public static var MAX_ANIMFRAME:int = 21; public static var OUTER_X1:int = 0; public static var OUTER_X2:int = 754; public static var OUTER_Y1:int = 0; public static var OUTER_Y2:int = 600; public static var INNER_X1:int = 92; public static var INNER_X2:int = 680; public static var INNER_Y1:int = 116; public static var INNER_Y2:int = 449; function BlingStar(){ clip = new bling2(); clip.visible = false; } public function init(){ show = false; animFrame = 1; inactivated = false; generate = true; setRandom(); } public function tick(){ if (!inactivated){ hideFrames--; if (hideFrames < 0){ animFrame++; if (animFrame > MAX_ANIMFRAME){ init(); } else { if (generate){ show = true; }; }; } else { show = false; }; }; } public function render(){ clip.x = posX; clip.y = posY; clip.scaleX = scale; clip.scaleY = scale; clip.visible = show; clip.bling_mc.gotoAndStop(animFrame); } public function inactivate(){ inactivated = true; show = false; animFrame = 1; } public function stopGenerate(){ generate = false; } private function setRandom(){ do { posX = (OUTER_X1 + int(((Math.random() * OUTER_X2) - OUTER_X1))); posY = (OUTER_Y1 + int(((Math.random() * OUTER_Y2) - OUTER_Y1))); } while ((((((((posX >= INNER_X1)) && ((posX <= INNER_X2)))) && ((posY >= INNER_Y1)))) && ((posY <= INNER_Y2)))); scale = (0.8 + (Math.random() * 0.4)); hideFrames = int((Math.random() * 50)); } } }//package com.king.twistmesilly
Section 2
//BlingStars (com.king.twistmesilly.BlingStars) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class BlingStars { private var showStarMax:int; private var blingStars:Array; public static var MAX_NR_STARS:int = 50; function BlingStars(_arg1:MovieClip){ var _local2:BlingStar; super(); blingStars = new Array(); var _local3:int; while (_local3 < MAX_NR_STARS) { _local2 = new BlingStar(); blingStars.push(_local2); _arg1.addChild(_local2.clip); _local3++; }; } public function init(_arg1:int){ showStarMax = _arg1; var _local2:int; while (_local2 < blingStars.length) { if (_local2 < showStarMax){ blingStars[_local2].init(); } else { blingStars[_local2].inactivate(); }; _local2++; }; } public function tick(){ var _local1:int; while (_local1 < blingStars.length) { blingStars[_local1].tick(); _local1++; }; } public function render(){ var _local1:int; while (_local1 < blingStars.length) { blingStars[_local1].render(); _local1++; }; } public function stopGenerate(){ var _local1:int; while (_local1 < blingStars.length) { blingStars[_local1].stopGenerate(); _local1++; }; } public function inactivateAll(){ var _local1:int; while (_local1 < blingStars.length) { blingStars[_local1].inactivate(); _local1++; }; } } }//package com.king.twistmesilly
Section 3
//Board (com.king.twistmesilly.Board) package com.king.twistmesilly { import com.king.twistmesilly.*; class Board { private var relaxOnce:Boolean;// = true private var cols:int; private var rows:int; private var messageCallback:Function; private var startCol:int; private var startRow:int; private var endCol:int; private var endRow:int; private var playFieldStart:int; private var playFieldEnd:int; private var boardArray:Array; public var random:Random; private var matchArrays:Array; private var createBrickRow:int; private var scramble:Boolean; private var scramblePart:int; private var blockScramble:Boolean; private var bricksAreFallingThisTick:Boolean; private var lockedThisTick:Boolean; private var preLockedThisTick:Boolean; private var preBricksAreFallingThisTick:Boolean; private var bricksAreMarked:Boolean; private var nrColors:int; private var colorSet:int; private var twoChains:Boolean; private var threeChains:Boolean; private var fourChains:Boolean; private var makeBombs:int; private var makeSidewayBlasts:int; private var makeColorBlasts:int; private var currentTick:int; private var boardMap:BoardMap; private var newBricks:Boolean; private var nrBricksBlasted:int; private var oneTickPased:Boolean; private var brickOutRowCounter1:int; private var brickOutColCounter1:int; private var lastOverEven:Boolean; private var brickOutRowCounter2:int; private var brickOutColCounter2:int; private var lastUnderEven:Boolean; private var animOutDelayCounter:int; private var counter:int; private var showHintTickCounter:int; private var firstTickOnLevel:Boolean;// = false private var doingScrambling:Boolean; private var brickStopRotation:Boolean; private var brickEndFalling:Boolean; public var refilling:Boolean; private var hintMatch:Array; private var forcedScrambleTest:Boolean; private var oldBrickStopRotation:Boolean; private var oldBrickEndFalling:Boolean; private var chai:int; private var fallingTest:Boolean; public var alwaysMatch:Boolean; var comboArrays:Array; var matcedBricks:Array; var forceRenderBrickCounter:int;// = 0 public static var BRICKS_TO_MATCH:int = 3; public static var SHOW_HIT_AFTER_FRAMES:int = 250; public static var SCRAMBLE_PART1:int = 1; public static var SCRAMBLE_PART2:int = 2; function Board(_arg1:int, _arg2:Function){ createBrickRow = 0; random = new Random(_arg1); boardMap = new BoardMap(); cols = 10; rows = 10; setColorSet(1); this.cols = cols; this.rows = rows; startCol = 0; startRow = rows; endCol = (cols - 1); endRow = ((2 * rows) - 1); playFieldStart = (startRow * cols); playFieldEnd = (((2 * rows) * cols) - 1); scramble = false; blockScramble = false; boardArray = new Array((cols * (rows * 2))); bricksAreFallingThisTick = false; lockedThisTick = false; preLockedThisTick = false; preBricksAreFallingThisTick = false; threeChains = false; fourChains = false; makeBombs = 0; makeSidewayBlasts = 0; makeColorBlasts = 0; nrColors = 3; this.messageCallback = _arg2; matchArrays = new Array(); chai = 0; alwaysMatch = false; comboArrays = new Array(); matcedBricks = new Array(); } public function initParts():Boolean{ if (createBricks()){ setBrickPositions(); return (true); }; return (false); } public function initMap(_arg1:int){ boardMap.setMap(_arg1); cols = boardMap.getNrCols(); rows = boardMap.getNrRows(); startCol = 0; startRow = rows; endCol = (cols - 1); endRow = ((2 * rows) - 1); playFieldStart = (startRow * cols); playFieldEnd = (((2 * rows) * cols) - 1); getSpecialsFromBoard(); makeReady(false); doingScrambling = false; hintMatch = new Array(); forcedScrambleTest = false; oldBrickStopRotation = false; oldBrickEndFalling = false; fallingTest = true; alwaysMatch = false; } public function addBricksToDisplay(){ var _local1:int; while (_local1 < boardArray.length) { boardArray[_local1].addToDisplay(); _local1++; }; } public function forceRender(){ var _local1:int; while (_local1 < 10) { if (++forceRenderBrickCounter >= boardArray.length){ forceRenderBrickCounter = 0; }; boardArray[forceRenderBrickCounter].doForcedRender(); _local1++; }; } private function makeReady(_arg1:Boolean){ scramblePart = SCRAMBLE_PART1; blockScramble = false; initBoard(); setupHoles(); setupBoard(); createSpecilasAtStart(); newBricks = true; oneTickPased = false; bricksAreFallingThisTick = false; bricksAreMarked = false; lockedThisTick = false; preLockedThisTick = false; preBricksAreFallingThisTick = false; } private function createBricks():Boolean{ var _local1 = 10; if (createBrickRow < (2 * _local1)){ createrBrickRows(createBrickRow); createBrickRow++; return (false); }; return (true); } private function createrBrickRows(_arg1:int){ var _local2 = 10; var _local3 = 10; var _local4:int; var _local5 = 9; var _local6:int = _local4; while (_local6 <= _local5) { boardArray[((_arg1 * _local2) + _local6)] = new Brick(messageReciver); initRandomBrick(((_arg1 * _local2) + _local6), false); boardArray[((_arg1 * _local2) + _local6)].setType(Brick.TYPE_EMPTY); _local6++; }; } public function initBoard(){ var _local2:int; var _local1:int; while (_local1 <= endRow) { _local2 = startCol; while (_local2 <= endCol) { initRandomBrick(((_local1 * cols) + _local2), false); if (_local1 >= startRow){ boardArray[((_local1 * cols) + _local2)].setType(Brick.TYPE_EMPTY); }; _local2++; }; _local1++; }; setBrickPositions(); } public function tick(_arg1:int){ var _local2:int; var _local4:Boolean; this.currentTick = _arg1; checkBrickStates(); if ((((newBricks == false)) && ((scramble == false)))){ noMoreMoves(); if (scramble){ getSpecialsFromBoard(); }; showHintTickCounter++; }; if (((scramble) && ((blockScramble == false)))){ fallingTest = true; doingScrambling = true; _local4 = false; switch (scramblePart){ case SCRAMBLE_PART1: checkSpecials(); messageCallback("scrambling", null); _local2 = playFieldStart; while (_local2 <= playFieldEnd) { boardArray[_local2].startScrambleFall(); _local2++; }; counter = 0; scramblePart = SCRAMBLE_PART2; _local4 = true; case SCRAMBLE_PART2: counter++; if (counter <= 25){ _local2 = playFieldStart; while (_local2 <= playFieldEnd) { boardArray[_local2].fall(); boardArray[_local2].tick(); _local2++; }; setBrickPositions(); _local4 = true; } else { makeReady(false); scramblePart = SCRAMBLE_PART1; scramble = false; doingScrambling = false; }; break; }; if (_local4){ return; }; }; brickStopRotation = false; brickEndFalling = false; if (fallingTest){ falling(); }; _local2 = 0; while (_local2 < boardArray.length) { boardArray[_local2].tick(); _local2++; }; if (((((((((brickStopRotation) || (brickEndFalling))) || (oldBrickStopRotation))) || (oldBrickEndFalling))) || (alwaysMatch))){ matching(); }; oldBrickStopRotation = brickStopRotation; oldBrickEndFalling = brickEndFalling; refilling = false; var _local3:Boolean; if (matchArrays.length > 0){ _local3 = removeMatched(); refillBoard(); if (((_local3) && (((((((bricksAreFallingThisTick) || (lockedThisTick))) || (preLockedThisTick))) || (preBricksAreFallingThisTick))))){ chai++; } else { if (((!(bricksAreFallingThisTick)) && (!(lockedThisTick)))){ checkSpecials(); }; }; }; if (!fallTest()){ fallingTest = false; }; if (_local3){ fallingTest = true; }; if (((((((newBricks) && ((bricksAreFallingThisTick == false)))) && ((scramble == false)))) && (oneTickPased))){ newBricks = false; messageCallback("board_ready", null); forcedScrambleTest = true; }; if (showHintTickCounter > SHOW_HIT_AFTER_FRAMES){ _local2 = 0; while (_local2 < hintMatch.length) { hintMatch[_local2].turnOnShowHint(); _local2++; }; }; if (bricksAreFallingThisTick){ showHintTickCounter = 0; removeHint(); }; scramble = false; oneTickPased = true; blockScramble = false; } public function render(_arg1:Number){ var _local2:int; while (_local2 < boardArray.length) { Brick(boardArray[_local2]).render(_arg1); _local2++; }; forceRender(); } public function setBlockScramble(){ if (doingScrambling == false){ blockScramble = true; }; } public function startAnimOutBoard(){ brickOutRowCounter1 = 0; brickOutColCounter1 = 0; lastOverEven = true; brickOutRowCounter2 = 9; brickOutColCounter2 = 9; lastUnderEven = true; animOutDelayCounter = 0; counter = 0; } public function updateAnimOutBoard():Boolean{ var _local3:Boolean; var _local4:Boolean; var _local1:Boolean; var _local2:Boolean; counter++; animOutDelayCounter++; if (animOutDelayCounter == 2){ animOutDelayCounter = 0; do { _local3 = false; if (((brickOutRowCounter1 * 10) + brickOutColCounter1) < 50){ if ((((boardArray[((playFieldStart + (brickOutRowCounter1 * 10)) + brickOutColCounter1)].type == Brick.TYPE_EMPTY)) || (boardArray[((playFieldStart + (brickOutRowCounter1 * 10)) + brickOutColCounter1)].movingOut()))){ _local3 = true; } else { boardArray[((playFieldStart + (brickOutRowCounter1 * 10)) + brickOutColCounter1)].moveOut(true); }; if ((brickOutRowCounter1 % 2) == 0){ if ((((brickOutColCounter1 >= 9)) && (lastOverEven))){ brickOutRowCounter1++; } else { brickOutColCounter1++; }; lastOverEven = true; } else { if ((((brickOutColCounter1 <= 0)) && (!(lastOverEven)))){ brickOutRowCounter1++; } else { brickOutColCounter1--; }; lastOverEven = false; }; } else { _local1 = true; }; } while (((_local3) && ((((brickOutRowCounter1 * 10) + brickOutColCounter1) < 50)))); do { _local4 = false; if (((brickOutRowCounter2 * 10) + brickOutColCounter2) >= 50){ if ((((boardArray[((playFieldStart + (brickOutRowCounter2 * 10)) + brickOutColCounter2)].type == Brick.TYPE_EMPTY)) || (boardArray[((playFieldStart + (brickOutRowCounter2 * 10)) + brickOutColCounter2)].movingOut()))){ _local4 = true; } else { boardArray[((playFieldStart + (brickOutRowCounter2 * 10)) + brickOutColCounter2)].moveOut(false); }; if ((brickOutRowCounter2 % 2) == 0){ if ((((brickOutColCounter2 >= 9)) && (lastUnderEven))){ brickOutRowCounter2--; } else { brickOutColCounter2++; }; lastUnderEven = true; } else { if ((((brickOutColCounter2 <= 0)) && (!(lastUnderEven)))){ brickOutRowCounter2--; } else { brickOutColCounter2--; }; lastUnderEven = false; }; } else { _local2 = true; }; } while (((_local4) && ((((brickOutRowCounter2 * 10) + brickOutColCounter2) >= 50)))); }; if (((_local1) && (_local2))){ return (true); }; return (false); } public function startScramble(){ chai = 0; scramble = true; } public function scrambling():Boolean{ return (doingScrambling); } public function moveFinished():Boolean{ var _local1:Boolean; var _local2:Boolean; var _local3:Boolean; var _local4:int; while (_local4 < boardArray.length) { if (boardArray[_local4].falling){ _local1 = true; }; if (boardArray[_local4].marked){ _local2 = true; }; if (boardArray[_local4].state == Brick.STATE_SWITCHING){ _local3 = true; }; _local4++; }; if (((((((_local1) || (_local2))) || (_local3))) || (refilling))){ return (false); }; return (true); } public function moveFinishedLight():Boolean{ var _local1:Boolean; var _local2:Boolean; var _local3:int; while (_local3 < boardArray.length) { if (boardArray[_local3].falling){ _local1 = true; }; if (boardArray[_local3].marked){ _local2 = true; }; _local3++; }; if (((((_local1) || (_local2))) || (refilling))){ return (false); }; return (true); } public function fallTest():Boolean{ var _local1:Boolean; var _local2:int; while (_local2 < boardArray.length) { if (boardArray[_local2].falling){ _local1 = true; }; _local2++; }; return (_local1); } public function messageReciver(_arg1:String, _arg2:InfoData){ if (_arg1 == "brick_stop_rotation"){ onBrickStopRotation(); }; if (_arg1 == "brick_end_fall"){ onBrickEndFall(); }; messageCallback(_arg1, _arg2); } private function onBrickStopRotation(){ brickStopRotation = true; } private function onBrickEndFall(){ brickEndFalling = true; } public function createBomb(){ makeBombs++; } public function createSidewayBlast(){ makeSidewayBlasts++; } public function createColorBlast(){ makeColorBlasts++; } private function getSpecialsFromBoard(){ var _local2:int; var _local1:int = playFieldStart; while (_local1 <= playFieldEnd) { _local2 = boardArray[_local1].special; switch (_local2){ case Brick.SPECIAL_BOMB: makeBombs++; break; case Brick.SPECIAL_SIDEWAY_BLAST: makeSidewayBlasts++; break; case Brick.SPECIAL_COLOR_BLAST: makeColorBlasts++; break; }; _local1++; }; } public function switchBrickColor(_arg1:int, _arg2:int){ var _local3:int = int(Math.floor((_arg1 / 50))); var _local4:int = int((Math.floor((_arg2 + (50 * rows))) / 50)); var _local5:int = int(((((_arg2 + (50 * rows)) % 50) / 50) * 100)); var _local6:Boolean = detectBrick1(_local3, _local4, _local5); if (_local6){ boardArray[((_local4 * cols) + _local3)].rotate(); SoundManager.playRotate(); return; }; _local6 = detectBrick2(_local3, (_local4 + 1), _local5); if (_local6){ boardArray[((_local4 + (1 * cols)) + _local3)].rotate(); SoundManager.playRotate(); return; }; } public function atNone(){ var _local1:int = playFieldStart; while (_local1 <= playFieldEnd) { boardArray[_local1].unMark(); _local1++; }; } public function atBrick(_arg1:int, _arg2:int){ var _local3:int = int(Math.floor((_arg1 / 50))); var _local4:int = int((Math.floor((_arg2 + (50 * rows))) / 50)); var _local5:int = int(((((_arg2 + (50 * rows)) % 50) / 50) * 100)); var _local6:Boolean = detectBrick1(_local3, _local4, _local5); if (_local6){ boardArray[((_local4 * cols) + _local3)].mark(); return; }; _local6 = detectBrick2(_local3, (_local4 + 1), _local5); if (_local6){ boardArray[((_local4 + (1 * cols)) + _local3)].mark(); return; }; } private function detectBrick1(_arg1:int, _arg2:int, _arg3:int):Boolean{ if ((((((((_arg1 < startCol)) || ((_arg1 > endCol)))) || ((_arg2 < 0)))) || ((_arg2 > endRow)))){ return (false); }; if (boardArray[((_arg2 * cols) + _arg1)].type != Brick.TYPE_NORMAL){ return (false); }; var _local4:int = (boardArray[((_arg2 * cols) + _arg1)].fallingProcent + 100); if (_arg3 <= _local4){ return (true); }; return (false); } private function detectBrick2(_arg1:int, _arg2:int, _arg3:int):Boolean{ if ((((((((_arg1 < startCol)) || ((_arg1 > endCol)))) || ((_arg2 < 0)))) || ((_arg2 > endRow)))){ return (false); }; if (boardArray[((_arg2 * cols) + _arg1)].type != Brick.TYPE_NORMAL){ return (false); }; var _local4:int = (boardArray[((_arg2 * cols) + _arg1)].fallingProcent + 100); if (_arg3 > _local4){ return (true); }; return (false); } private function setBrickPositionsOld(){ var _local2:int; var _local1:int; while (_local1 < (2 * rows)) { _local2 = 0; while (_local2 < cols) { boardArray[((_local1 * cols) + _local2)].setPos(_local2, _local1); _local2++; }; _local1++; }; } private function setBrickPositions(){ var _local2:int; var _local1:int; while (_local1 < (2 * rows)) { _local2 = 0; while (_local2 < cols) { boardArray[((_local1 * cols) + _local2)].colPos = _local2; boardArray[((_local1 * cols) + _local2)].rowPos = _local1; boardArray[((_local1 * cols) + _local2)].graphicBrick.offsetY = int(((50 * boardArray[((_local1 * cols) + _local2)].fallingProcent) * 0.01)); boardArray[((_local1 * cols) + _local2)].graphicBrick.posX = (CoreGame.BOARD_HORIZONTAL_OFFSET + (50 * boardArray[((_local1 * cols) + _local2)].colPos)); boardArray[((_local1 * cols) + _local2)].graphicBrick.posY = (((CoreGame.BOARD_VERTICAL_OFFSET + (50 * boardArray[((_local1 * cols) + _local2)].rowPos)) - (boardArray[((_local1 * cols) + _local2)].graphicBrick.rows * 50)) + boardArray[((_local1 * cols) + _local2)].graphicBrick.offsetY); _local2++; }; _local1++; }; } private function checkBrickStates(){ preBricksAreFallingThisTick = bricksAreFallingThisTick; bricksAreFallingThisTick = false; preLockedThisTick = lockedThisTick; lockedThisTick = false; bricksAreMarked = false; var _local1:int; while (_local1 < boardArray.length) { if (boardArray[_local1].falling){ bricksAreFallingThisTick = true; }; if (boardArray[_local1].marked){ bricksAreMarked = true; }; if (boardArray[_local1].rotateLock){ lockedThisTick = true; }; _local1++; }; } private function showedBricksUnder(_arg1:int, _arg2:int):int{ var _local3:int; var _local4:int = (_arg2 + 1); while (_local4 <= endRow) { if (boardArray[((_local4 * cols) + _arg1)].type != Brick.TYPE_EMPTY){ _local3++; }; _local4++; }; return (_local3); } private function falling(){ var _local3:int; var _local4:int; var _local5:int; var _local6:Brick; var _local7:Boolean; var _local8:Brick; var _local9:Boolean; var _local1:int = showedBricksUnder(startCol, startRow); var _local2:int = endRow; while (_local2 >= 0) { _local3 = startCol; while (_local3 <= endCol) { _local4 = ((_local2 * cols) + _local3); _local5 = (((_local2 + 1) * cols) + _local3); _local6 = boardArray[_local4]; if (_local2 != endRow){ _local7 = false; if ((((((boardArray[_local5].type == Brick.TYPE_EMPTY)) && (!((boardArray[_local4].type == Brick.TYPE_EMPTY))))) && (!(boardArray[_local4].falling)))){ _local7 = true; }; if (_local2 >= (startRow - 1)){ _local1 = showedBricksUnder(_local3, _local2); if (_local1 >= boardMap.map[(_local5 - playFieldStart)]){ _local7 = false; }; }; if (_local7){ _local8 = _local6; boardArray[_local4] = boardArray[_local5]; boardArray[_local5] = _local8; boardArray[_local5].startFall(); boardArray[_local5].delayFrame = 0; boardArray[_local5].rotateLock = false; }; }; if (boardArray[_local4].falling){ boardArray[_local4].fall(); if (_local2 != endRow){ if (((boardArray[_local5].falling) && ((boardArray[_local4].fallingProcent > boardArray[_local5].fallingProcent)))){ boardArray[_local4].fallingProcent = boardArray[_local5].fallingProcent; }; }; if (boardArray[_local4].fallOver()){ if (_local2 != endRow){ _local9 = true; if (_local2 >= (startRow - 1)){ _local1 = showedBricksUnder(_local3, _local2); if (_local1 >= boardMap.map[(_local5 - playFieldStart)]){ _local9 = false; }; }; if (_local9){ if (boardArray[_local5].type == Brick.TYPE_EMPTY){ _local8 = _local6; boardArray[_local4] = boardArray[_local5]; boardArray[_local5] = _local8; boardArray[_local5].continueFall(); } else { boardArray[_local4].endFall(); }; } else { boardArray[_local4].endFall(); }; } else { boardArray[_local4].endFall(); }; }; }; _local3++; }; _local2--; }; setBrickPositions(); } private function matching(){ var _local3:int; var _local4:Brick; var _local5:int; prepareMatching(); matchArrays = new Array(); var _local1:Array = new Array(); var _local2:int = startRow; while (_local2 <= endRow) { _local3 = startCol; while (_local3 <= endCol) { _local4 = boardArray[((_local2 * cols) + _local3)]; _local1.length = 0; _local1 = matchBrick(_local4, _local1); if (_local1.length < BRICKS_TO_MATCH){ _local5 = 0; while (_local5 < _local1.length) { _local1[_local5].marked = false; _local1[_local5].delayFrame = 0; _local1[_local5].rotateLock = false; _local5++; }; } else { _local5 = 0; while (_local5 < _local1.length) { if (_local1[_local5].rotateLock == false){ _local1[_local5].delayFrame = 0; }; _local1[_local5].rotateLock = true; _local5++; }; matchArrays[matchArrays.length] = _local1; _local1 = new Array(); }; _local3++; }; _local2++; }; } private function prepareMatching(){ var _local2:int; var _local1:int; while (_local1 <= endRow) { _local2 = 0; while (_local2 <= endCol) { boardArray[((_local1 * cols) + _local2)].marked = false; boardArray[((_local1 * cols) + _local2)].connectedLeft = false; boardArray[((_local1 * cols) + _local2)].connectedRight = false; boardArray[((_local1 * cols) + _local2)].connectedUp = false; boardArray[((_local1 * cols) + _local2)].connectedDown = false; _local2++; }; _local1++; }; } private function matchBrick(_arg1:Brick, _arg2:Array):Array{ var _local3:Brick; if (_arg1.marked){ return (_arg2); }; _arg1.marked = true; _arg2[_arg2.length] = _arg1; _local3 = matchBrickHorizontalRight(_arg1); if (_local3 != null){ joinArrays(_arg2, matchBrick(_local3, _arg2)); }; _local3 = matchBrickHorizontalLeft(_arg1); if (_local3 != null){ joinArrays(_arg2, matchBrick(_local3, _arg2)); }; _local3 = matchBrickVerticalDown(_arg1); if (_local3 != null){ joinArrays(_arg2, matchBrick(_local3, _arg2)); }; _local3 = matchBrickVerticalUp(_arg1); if (_local3 != null){ joinArrays(_arg2, matchBrick(_local3, _arg2)); }; return (_arg2); } private function joinArrays(_arg1:Array, _arg2:Array){ var _local3:int; while (_local3 < _arg2.length) { _arg1.push(_arg2.pop()); _local3++; }; } private function matchBrickHorizontalRight(_arg1:Brick):Brick{ var _local3:Brick; var _local2:Brick; if (!_arg1.falling){ if (_arg1.colPos < endCol){ _local3 = boardArray[(((_arg1.rowPos * cols) + _arg1.colPos) + 1)]; if (((!(_local3.marked)) && (!(_local3.falling)))){ if (_arg1.horizontalMatching(_local3)){ _local2 = _local3; _arg1.connectedRight = true; _local3.connectedLeft = true; }; }; }; }; return (_local2); } private function matchBrickHorizontalLeft(_arg1:Brick):Brick{ var _local3:Brick; var _local2:Brick; if (!_arg1.falling){ if (_arg1.colPos > startCol){ _local3 = boardArray[(((_arg1.rowPos * cols) + _arg1.colPos) - 1)]; if (((!(_local3.marked)) && (!(_local3.falling)))){ if (_arg1.horizontalMatching(_local3)){ _local2 = _local3; _arg1.connectedLeft = true; _local3.connectedRight = true; }; }; }; }; return (_local2); } private function matchBrickVerticalDown(_arg1:Brick):Brick{ var _local3:Brick; var _local2:Brick; if (!_arg1.falling){ if (_arg1.rowPos < endRow){ _local3 = boardArray[(((_arg1.rowPos + 1) * cols) + _arg1.colPos)]; if (((!(_local3.marked)) && (!(_local3.falling)))){ if (_arg1.verticalMatching(_local3)){ _local2 = _local3; _arg1.connectedDown = true; _local3.connectedUp = true; }; }; }; }; return (_local2); } private function matchBrickVerticalUp(_arg1:Brick):Brick{ var _local3:Brick; var _local2:Brick; if (!_arg1.falling){ if (_arg1.rowPos > startRow){ _local3 = boardArray[(((_arg1.rowPos - 1) * cols) + _arg1.colPos)]; if (((!(_local3.marked)) && (!(_local3.falling)))){ if (_arg1.verticalMatching(_local3)){ _local2 = _local3; _arg1.connectedUp = true; _local3.connectedDown = true; }; }; }; }; return (_local2); } private function removeMatched():Boolean{ var _local1:Boolean; var _local3:Array; var _local6:int; var _local8:int; var _local9:int; var _local10:Boolean; var _local11:int; var _local12:int; var _local13:int; var _local14:Array; var _local15:int; var _local16:int; var _local17:InfoData; var _local18:int; var _local19:int; comboArrays.length = 0; var _local2:* = 0; while (_local2 < matchArrays.length) { _local1 = true; _local12 = 0; while (_local12 < matchArrays[_local2].length) { if (((!((matchArrays[_local2][_local12].state == Brick.STATE_NORMAL))) || ((matchArrays[_local2][_local12].delayFrame < Brick.DELAY_FRAMES)))){ _local1 = false; }; _local12++; }; if (_local1){ comboArrays[comboArrays.length] = matchArrays[_local2]; matchArrays.splice(_local2, 1); }; _local2++; }; if (comboArrays.length == 0){ return (false); }; _local3 = findSpecials(comboArrays); processSpecials(_local3); var _local4:Boolean; var _local5:int; var _local7:Boolean; _local2 = 0; while (_local2 < comboArrays.length) { _local7 = false; _local11 = comboArrays[_local2].length; _local8 = 0; _local9 = 0; _local6 = comboArrays[_local2].length; _local13 = 0; while (_local13 < _local6) { _local14 = comboArrays[_local2]; if (_local14[_local13].marked){ if (_local14[_local13].type == Brick.TYPE_EMPTY){ _local10 = true; } else { _local10 = false; _local14[_local13].inactivate(); _local14[_local13].marked = false; }; _local7 = true; _local4 = true; if (!_local10){ Communicator.sendPlayData2(78, currentTick, _local14[_local13].colPos, _local14[_local13].rowPos); _local15 = _local14[_local13].getGraphicPosX(); _local16 = _local14[_local13].getGraphicPosY(); _local17 = new InfoData(); _local17.data1 = _local15; _local17.data2 = _local16; messageCallback("brick_removed", _local17); }; _local8 = (_local8 + _local14[_local13].getGraphicPosX()); _local9 = (_local9 + _local14[_local13].getGraphicPosY()); }; _local13++; }; if (_local7){ _local5++; _local18 = int((_local8 / _local11)); _local19 = int((_local9 / _local11)); _local17 = new InfoData(); _local17.data1 = _local18; _local17.data2 = _local19; _local17.data3 = _local11; _local17.data4 = chai; messageCallback("match_score", _local17); }; _local2++; }; return (_local7); } public function checkSpecials(){ if (chai >= 4){ messageCallback("chains_four", null); } else { if (chai == 3){ messageCallback("chains_three", null); } else { if (chai == 2){ messageCallback("chains_two", null); }; }; }; chai = 0; } private function findSpecials(_arg1:Array):Array{ var _local4:Array; var _local5:int; var _local2:Array = new Array(); var _local3:int; while (_local3 < _arg1.length) { _local4 = _arg1[_local3]; _local5 = 0; while (_local5 < _local4.length) { if (((_local4[_local5].marked) && (!((_local4[_local5].special == Brick.SPECIAL_NONE))))){ if (_local4[_local5].special == Brick.SPECIAL_COLOR_BLAST){ _local2[_local2.length] = _local4[_local5]; } else { _local2.splice(0, 0, _local4[_local5]); }; }; _local5++; }; _local3++; }; return (_local2); } private function processSpecials(_arg1:Array){ var _local2:Brick; var _local3:Array; if (_arg1.length != 0){ _local2 = _arg1.pop(); if (_local2.isSpecialType(Brick.SPECIAL_BOMB)){ _local3 = blastBomb(_local2); addNewSpecials(_arg1, _local3); } else { if (_local2.isSpecialType(Brick.SPECIAL_SIDEWAY_BLAST)){ _local3 = blastSideway(_local2); addNewSpecials(_arg1, _local3); }; }; if (_local2.isSpecialType(Brick.SPECIAL_COLOR_BLAST)){ _local3 = blastColor(_local2); addNewSpecials(_arg1, _local3); }; }; if (_arg1.length > 0){ processSpecials(_arg1); }; } private function addNewSpecials(_arg1, _arg2){ var _local3:int; while (_local3 < _arg2.length) { if (!brickIsInArray(_arg2[_local3], _arg1)){ if (_arg2[_local3].isSpecialType(Brick.SPECIAL_COLOR_BLAST)){ _arg1[_arg1.length] = _arg2[_local3]; } else { _arg1.splice(0, 0, _arg2[_local3]); }; }; _local3++; }; } private function brickIsInArray(_arg1:Brick, _arg2:Array):Boolean{ var _local3:int; while (_local3 < _arg2.length) { if ((((_arg2[_local3].colPos == _arg1.colPos)) && ((_arg2[_local3].rowPos == _arg1.rowPos)))){ return (true); }; _local3++; }; return (false); } private function blastBomb(_arg1:Brick):Array{ var _local2:Brick; nrBricksBlasted = 0; var _local3:Array = new Array(); var _local4:int = _arg1.colPos; var _local5:int = _arg1.rowPos; _local2 = specialBlastBrick((_local4 - 1), (_local5 - 1), 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; _local2 = specialBlastBrick(_local4, (_local5 - 1), 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; _local2 = specialBlastBrick((_local4 + 1), (_local5 - 1), 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; _local2 = specialBlastBrick((_local4 - 1), _local5, 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; boardArray[((_local5 * cols) + _local4)].setNoSpecial(); specialBlastBrick(_local4, _local5, 1); _local2 = specialBlastBrick((_local4 + 1), _local5, 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; _local2 = specialBlastBrick((_local4 - 1), (_local5 + 1), 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; _local2 = specialBlastBrick(_local4, (_local5 + 1), 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; _local2 = specialBlastBrick((_local4 + 1), (_local5 + 1), 1); if (_local2 != null){ _local3[_local3.length] = _local2; }; var _local6:InfoData = new InfoData(); _local6.data1 = _arg1.getGraphicPosX(); _local6.data2 = _arg1.getGraphicPosY(); _local6.data3 = nrBricksBlasted; messageCallback("blast_bomb", _local6); return (_local3); } private function blastSideway(_arg1:Brick):Array{ var _local2:Brick; nrBricksBlasted = 0; var _local3:Array = new Array(); var _local4:int = _arg1.colPos; var _local5:int = _arg1.rowPos; var _local6:int = startCol; while (_local6 <= endCol) { _local2 = specialBlastBrick(_local6, _local5, 2); if (_local6 == _local4){ boardArray[((_local5 * cols) + _local4)].setNoSpecial(); specialBlastBrick(_local4, _local5, 2); } else { if (_local2 != null){ _local3[_local3.length] = _local2; }; }; _local6++; }; var _local7:InfoData = new InfoData(); _local7.data1 = _arg1.getGraphicPosX(); _local7.data2 = _arg1.getGraphicPosY(); _local7.data3 = nrBricksBlasted; messageCallback("blast_sideway", _local7); return (_local3); } private function blastColor(_arg1:Brick):Array{ var _local2:Brick; var _local9:int; nrBricksBlasted = 0; var _local3:Array = new Array(); var _local4:int = _arg1.colPos; var _local5:int = _arg1.rowPos; var _local6:int = _arg1.getColor(); var _local7:int = startRow; while (_local7 <= endRow) { _local9 = startCol; while (_local9 <= endCol) { if (boardArray[((_local7 * cols) + _local9)].getColor() == _local6){ _local2 = specialBlastBrick(_local9, _local7, 3); if ((((_local9 == _local4)) && ((_local7 == _local5)))){ boardArray[((_local5 * cols) + _local4)].setNoSpecial(); specialBlastBrick(_local4, _local5, 3); } else { if (_local2 != null){ _local3[_local3.length] = _local2; }; }; }; _local9++; }; _local7++; }; var _local8:InfoData = new InfoData(); _local8.data1 = _arg1.getGraphicPosX(); _local8.data2 = _arg1.getGraphicPosY(); _local8.data3 = nrBricksBlasted; messageCallback("blast_color", _local8); return (_local3); } private function specialBlastBrick(_arg1:int, _arg2:int, _arg3:int):Brick{ var _local4:Brick; var _local5:Boolean; if ((((((((_arg1 >= startCol)) && ((_arg1 <= endCol)))) && ((_arg2 >= startRow)))) && ((_arg2 <= endRow)))){ _local4 = boardArray[((_arg2 * cols) + _arg1)]; _local5 = _local4.empty(); if (_local5 == false){ _local4.marked = true; _local4.inactivate(); nrBricksBlasted++; }; sendBlastMsg(_local4, _arg3, !(_local5)); if (_local4.isSpecial()){ return (_local4); }; }; return (null); } private function newSpecialBlastBrick(_arg1:int, _arg2:int):Brick{ var _local3:Brick; if ((((((((_arg1 >= startCol)) && ((_arg1 <= endCol)))) && ((_arg2 >= startRow)))) && ((_arg2 <= endRow)))){ _local3 = boardArray[((_arg2 * cols) + _arg1)]; if (_local3.fallingProcent > -50){ _local3.marked = true; _local3.inactivate(); if (_local3.isSpecial()){ return (_local3); }; return (specialBlastBrickUnder(_arg1, (_arg2 + 1))); }; }; return (specialBlastBrickUnder(_arg1, (_arg2 + 1))); } public function sendBlastMsg(_arg1:Brick, _arg2:int, _arg3:Boolean){ var _local4:int = _arg1.getGraphicPosX(); var _local5:int = _arg1.getGraphicPosY(); var _local6:int = _arg1.getColor(); var _local7:InfoData = new InfoData(); _local7.data1 = _local4; _local7.data2 = _local5; _local7.data3 = _local6; switch (_arg2){ case 0: break; case 1: messageCallback("blast_bomb_brick", _local7); break; case 2: messageCallback("blast_sideway_brick", _local7); break; case 3: if (_arg3){ messageCallback("color_brick_removed", _local7); }; break; }; } private function specialBlastBrickUnder(_arg1:int, _arg2:int):Brick{ var _local3:Brick; if ((((((((_arg1 >= startCol)) && ((_arg1 <= endCol)))) && ((_arg2 >= startRow)))) && ((_arg2 <= endRow)))){ _local3 = boardArray[((_arg2 * cols) + _arg1)]; if (_local3.fallingProcent <= -50){ _local3.marked = true; _local3.inactivate(); if (_local3.isSpecial()){ return (_local3); }; }; }; return (null); } private function db(){ var _local2:int; var _local3:int; var _local1:int = startCol; while (_local1 <= endCol) { _local2 = startRow; while (_local2 <= endRow) { if ((boardArray[((_local2 * cols) + _local1)].type == Brick.TYPE_EMPTY) != boardArray[((_local2 * cols) + _local1)].marked){ _local3 = ((_local2 * cols) + _local1); }; _local2++; }; _local1++; }; } public function refillBoard(){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local1:int = startCol; while (_local1 <= endCol) { _local2 = 0; _local3 = startRow; while (_local3 <= endRow) { if (boardArray[((_local3 * cols) + _local1)].removed){ boardArray[((_local3 * cols) + _local1)].removed = false; _local2++; refilling = true; }; _local3++; }; if (_local2 > 0){ _local3 = (startRow - 1); while (_local3 >= 0) { if (boardArray[((_local3 * cols) + _local1)].type == Brick.TYPE_EMPTY){ break; }; _local3--; }; _local4 = _local3; _local5 = ((_local4 - _local2) + 1); _local3 = _local4; while (_local3 >= _local5) { initRandomBrick(((_local3 * cols) + _local1), true); if (boardArray[(((_local3 + 1) * cols) + _local1)].falling){ boardArray[((_local3 * cols) + _local1)].startFall(); boardArray[((_local3 * cols) + _local1)].fallingProcent = boardArray[(((_local3 + 1) * cols) + _local1)].fallingProcent; boardArray[((_local3 * cols) + _local1)].fallSpeed = boardArray[(((_local3 + 1) * cols) + _local1)].fallSpeed; }; _local3--; }; }; _local1++; }; createSpecials(); } private function initRandomBrick(_arg1:int, _arg2:Boolean){ var _local6:int; var _local3:int = getRandomColor(); var _local4:Boolean; var _local5:Boolean; if (_arg2){ _local6 = random.nextInt(33); if (_local6 == 0){ _local3 = Brick.MULTI_COLOR; }; }; _local6 = random.nextInt(2); if (_local6 == 0){ _local4 = true; }; _local6 = random.nextInt(10); if (_local6 == 0){ _local5 = true; _local4 = true; }; boardArray[_arg1].init(_local3, Brick.TYPE_NORMAL, _local5, _local4, rows); } public function setNrColors(_arg1:int){ nrColors = _arg1; } public function setColorSet(_arg1:int){ this.colorSet = _arg1; } private function getRandomColor():int{ var _local1:int = (random.nextInt(3) + 1); var _local2 = 1; switch (colorSet){ case 1: switch (_local1){ case 1: _local2 = Brick.COLOR_RED; break; case 2: _local2 = Brick.COLOR_GREEN; break; case 3: _local2 = Brick.COLOR_BLUE; break; }; break; case 2: switch (_local1){ case 1: _local2 = Brick.COLOR_RED; break; case 2: _local2 = Brick.COLOR_GREEN; break; case 3: _local2 = Brick.COLOR_CERISE; break; }; break; case 3: switch (_local1){ case 1: _local2 = Brick.COLOR_RED; break; case 2: _local2 = Brick.COLOR_BLUE; break; case 3: _local2 = Brick.COLOR_CERISE; break; }; break; case 4: switch (_local1){ case 1: _local2 = Brick.COLOR_GREEN; break; case 2: _local2 = Brick.COLOR_BLUE; break; case 3: _local2 = Brick.COLOR_CERISE; break; }; break; }; return (_local2); } private function createSpecials(){ var _local1:int; while (_local1 < playFieldStart) { if (makeBombs > 0){ if (boardArray[_local1].setSpecial(Brick.SPECIAL_BOMB)){ makeBombs--; }; }; if (makeSidewayBlasts > 0){ if (boardArray[_local1].setSpecial(Brick.SPECIAL_SIDEWAY_BLAST)){ makeSidewayBlasts--; }; }; if (makeColorBlasts > 0){ if (boardArray[_local1].setSpecial(Brick.SPECIAL_COLOR_BLAST)){ makeColorBlasts--; }; }; _local1++; }; } private function createSpecilasAtStart(){ var _local3:int; var _local1 = 300; var _local2:int; while ((((((((makeBombs > 0)) || ((makeSidewayBlasts > 0)))) || ((makeColorBlasts > 0)))) && ((_local2 < _local1)))) { _local3 = random.nextInt(playFieldStart); if (makeBombs > 0){ if (boardArray[_local3].setSpecial(Brick.SPECIAL_BOMB)){ makeBombs--; }; _local2++; }; _local3 = random.nextInt(playFieldStart); if (makeSidewayBlasts > 0){ if (boardArray[_local3].setSpecial(Brick.SPECIAL_SIDEWAY_BLAST)){ makeSidewayBlasts--; }; _local2++; }; _local3 = random.nextInt(playFieldStart); if (makeColorBlasts > 0){ if (boardArray[_local3].setSpecial(Brick.SPECIAL_COLOR_BLAST)){ makeColorBlasts--; }; _local2++; }; }; } private function noMoreMoves(){ if (((((brickEndFalling) && (!(bricksAreFallingThisTick)))) || (forcedScrambleTest))){ if (relaxOnce == false){ return; }; forcedScrambleTest = false; scramble = scrambleTest(); if (Communicator.isRelaxGame()){ if (((scramble) && (relaxOnce))){ relaxOnce = false; scramble = false; messageCallback("scrambling", null); }; }; }; } private function scrambleTest():Boolean{ var _local3:int; var _local4:Brick; var _local5:Boolean; var _local6:Array; var _local1:Boolean; var _local2:int = startRow; while (_local2 <= endRow) { _local3 = startCol; while (_local3 <= endCol) { _local4 = boardArray[((_local2 * cols) + _local3)]; _local5 = false; _local6 = scrambleMatchBrick(_local4); if (_local6 != null){ _local5 = true; }; if (_local5){ hintMatch = _local6; _local1 = false; break; }; _local3++; }; if (_local1 == false){ break; }; _local2++; }; return (_local1); } private function removeHint(){ var _local1:int = playFieldStart; while (_local1 <= playFieldEnd) { boardArray[_local1].turnOffShowHint(); _local1++; }; } private function scrambleMatchBrick(_arg1:Brick):Array{ var _local5:Brick; var _local2:Boolean = _arg1.isCross(); matcedBricks.length = 0; matcedBricks[matcedBricks.length] = _arg1; var _local3:int = _arg1.colPos; var _local4:int = _arg1.rowPos; if (_local3 < endCol){ _local5 = boardArray[(((_local4 * cols) + _local3) + 1)]; if (_arg1.scrambleMatching(_local5)){ matcedBricks[matcedBricks.length] = _local5; }; }; if (_local3 > startCol){ _local5 = boardArray[(((_local4 * cols) + _local3) - 1)]; if (_arg1.scrambleMatching(_local5)){ matcedBricks[matcedBricks.length] = _local5; }; }; if (matcedBricks.length >= BRICKS_TO_MATCH){ return (matcedBricks); }; if (_local2 == false){ matcedBricks.length = 0; matcedBricks[matcedBricks.length] = _arg1; }; if (_local4 < endRow){ _local5 = boardArray[(((_local4 + 1) * cols) + _local3)]; if (_arg1.scrambleMatching(_local5)){ matcedBricks[matcedBricks.length] = _local5; }; }; if (_local4 > startRow){ _local5 = boardArray[(((_local4 - 1) * cols) + _local3)]; if (_arg1.scrambleMatching(_local5)){ matcedBricks[matcedBricks.length] = _local5; }; }; if (matcedBricks.length >= BRICKS_TO_MATCH){ return (matcedBricks); }; return (null); } public function setupHoles(){ var _local2:int; var _local1:int; while (_local1 < startRow) { _local2 = startCol; while (_local2 <= endCol) { if (boardMap.map[((_local1 * cols) + _local2)] == 0){ boardArray[((_local1 * cols) + _local2)].setType(Brick.TYPE_EMPTY); }; if (_local1 < (rows - 1)){ if (boardMap.map[((_local1 * cols) + _local2)] == boardMap.map[(((_local1 + 1) * cols) + _local2)]){ boardArray[((_local1 * cols) + _local2)].setType(Brick.TYPE_EMPTY); }; }; _local2++; }; _local1++; }; } public function setupPack(){ var _local2:int; var _local3:int; var _local4:Brick; var _local1:int = (startRow - 1); while (_local1 > 0) { _local2 = startCol; while (_local2 <= endCol) { if (boardArray[((_local1 * cols) + _local2)].type == Brick.TYPE_EMPTY){ _local3 = _local1; while (_local3 > 0) { _local4 = boardArray[((_local3 * cols) + _local2)]; boardArray[((_local3 * cols) + _local2)] = boardArray[(((_local3 - 1) * cols) + _local2)]; boardArray[(((_local3 - 1) * cols) + _local2)] = _local4; _local3--; }; }; _local2++; }; _local1--; }; } public function setupBoard(){ var _local3:int; var _local4:Boolean; var _local5:Brick; var _local6:Array; var _local7:int; prepareMatching(); var _local1:int; var _local2:int; while (_local2 < startRow) { _local3 = startCol; while (_local3 <= endCol) { if (boardArray[((_local2 * cols) + _local3)].type != Brick.TYPE_EMPTY){ do { _local4 = false; _local5 = boardArray[((_local2 * cols) + _local3)]; _local6 = new Array(); _local6 = setupMatchBrick(_local5, _local6); if (_local6.length >= BRICKS_TO_MATCH){ initRandomBrick(((_local2 * cols) + _local3), false); if (_local1 < 100){ _local4 = true; _local1++; }; }; _local7 = 0; while (_local7 < _local6.length) { _local6[_local7].marked = false; _local7++; }; } while (_local4); }; _local3++; }; _local2++; }; } private function setupMatchBrick(_arg1:Brick, _arg2:Array):Array{ var _local6:Brick; var _local3:Brick; if (_arg1.marked){ return (_arg2); }; _arg1.marked = true; _arg2[_arg2.length] = _arg1; var _local4:int = _arg1.colPos; var _local5:int = _arg1.rowPos; if (_local4 < endCol){ _local6 = boardArray[(((_local5 * cols) + _local4) + 1)]; if (_arg1.horizontalMatching(_local6)){ setupMatchBrick(_local6, _arg2); }; }; if (_local4 > startCol){ _local6 = boardArray[(((_local5 * cols) + _local4) - 1)]; if (_arg1.horizontalMatching(_local6)){ setupMatchBrick(_local6, _arg2); }; }; if (_local5 < endRow){ _local6 = boardArray[(((_local5 + 1) * cols) + _local4)]; if (_arg1.verticalMatching(_local6)){ setupMatchBrick(_local6, _arg2); }; }; if (_local5 > 0){ _local6 = boardArray[(((_local5 - 1) * cols) + _local4)]; if (_arg1.verticalMatching(_local6)){ setupMatchBrick(_local6, _arg2); }; }; return (_arg2); } private function unMarkMatched(_arg1:Array){ var _local2:Boolean; var _local3:int; while (_local3 < _arg1.length) { _arg1[_local3].marked = false; _local3++; }; } public function debugShow(){ var _local2:String; var _local3:int; var _local1:int; while (_local1 < (2 * rows)) { _local2 = ""; _local3 = 0; while (_local3 < cols) { _local2 = ((_local2 + boardArray[((_local1 * cols) + _local3)].getColor()) + " "); _local3++; }; trace(_local2); _local1++; }; trace("type"); _local1 = 0; while (_local1 < (2 * rows)) { _local2 = ""; _local3 = 0; while (_local3 < cols) { _local2 = ((_local2 + boardArray[((_local1 * cols) + _local3)].special) + " "); _local3++; }; trace(_local2); _local1++; }; } private function debugSetBoard(){ boardArray[9].setColor(Brick.COLOR_RED); boardArray[10].setColor(Brick.COLOR_RED); boardArray[11].setColor(Brick.COLOR_GREEN); boardArray[12].setColor(Brick.COLOR_GREEN); boardArray[13].setColor(Brick.COLOR_RED); boardArray[14].setColor(Brick.COLOR_GREEN); boardArray[15].setColor(Brick.COLOR_BLUE); boardArray[16].setColor(Brick.COLOR_BLUE); boardArray[17].setColor(Brick.COLOR_RED); } } }//package com.king.twistmesilly
Section 4
//BoardMap (com.king.twistmesilly.BoardMap) package com.king.twistmesilly { class BoardMap { public var map:Array; private var map1:Array; private var map2:Array; private var map3:Array; private var map4:Array; private var map5:Array; private var map6:Array; private var map7:Array; private var map8:Array; private var map9:Array; private var map10:Array; private var map11:Array; private var map12:Array; private var map13:Array; private var map14:Array; private var map15:Array; private var map16:Array; private var map17:Array; private var map18:Array; private var map19:Array; private var map20:Array; private var map21:Array; private var map22:Array; private var cols:int; private var rows:int; private var colsMap1:int;// = 10 private var rowsMap1:int;// = 10 function BoardMap(){ map1 = new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); map2 = new Array(4, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6, 4, 3, 5, 5, 5, 5, 5, 5, 5, 5, 3, 2, 4, 4, 4, 4, 4, 4, 4, 4, 2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); map3 = new Array(7, 9, 9, 9, 9, 9, 9, 9, 9, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 7, 6, 7, 7, 7, 7, 7, 7, 7, 7, 6, 5, 6, 6, 6, 6, 6, 6, 6, 6, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0); map4 = new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 8, 8, 8, 7, 7, 8, 8, 8, 0, 0, 7, 7, 7, 6, 6, 7, 7, 7, 0, 0, 6, 6, 6, 5, 5, 6, 6, 6, 0, 0, 5, 5, 5, 4, 4, 5, 5, 5, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 3, 3, 3, 4, 4, 3, 3, 3, 0, 0, 2, 2, 2, 3, 3, 2, 2, 2, 0, 0, 1, 1, 1, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0); map5 = new Array(6, 8, 8, 8, 6, 6, 8, 8, 8, 6, 6, 8, 8, 8, 6, 6, 8, 8, 8, 6, 6, 7, 7, 7, 5, 5, 7, 7, 7, 6, 5, 6, 6, 6, 5, 5, 6, 6, 6, 5, 4, 5, 5, 5, 4, 4, 5, 5, 5, 4, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 2, 3, 3, 3, 2, 2, 3, 3, 3, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); map6 = new Array(10, 10, 10, 10, 10, 9, 9, 9, 9, 5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); map7 = new Array(5, 10, 9, 9, 9, 9, 9, 9, 10, 5, 4, 9, 9, 9, 9, 9, 9, 9, 9, 4, 3, 8, 8, 8, 8, 8, 8, 8, 8, 3, 2, 7, 7, 7, 7, 7, 7, 7, 7, 2, 1, 6, 6, 6, 6, 6, 6, 6, 6, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0); map8 = new Array(0, 10, 8, 10, 10, 10, 10, 8, 10, 0, 0, 9, 7, 9, 9, 9, 9, 7, 9, 0, 0, 8, 6, 8, 8, 8, 8, 6, 8, 0, 0, 7, 5, 7, 7, 7, 7, 5, 7, 0, 0, 6, 5, 6, 6, 6, 6, 5, 6, 0, 0, 5, 4, 5, 5, 5, 5, 4, 5, 0, 0, 4, 3, 4, 4, 4, 4, 3, 4, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0); map9 = new Array(6, 10, 10, 10, 6, 6, 10, 10, 10, 6, 6, 9, 9, 9, 5, 5, 9, 9, 9, 6, 6, 8, 8, 8, 4, 4, 8, 8, 8, 6, 5, 7, 7, 7, 3, 3, 7, 7, 7, 5, 4, 6, 6, 6, 3, 3, 6, 6, 6, 4, 3, 5, 5, 5, 3, 3, 5, 5, 5, 3, 2, 4, 4, 4, 3, 3, 4, 4, 4, 2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0); map10 = new Array(0, 10, 8, 10, 8, 8, 10, 8, 10, 0, 0, 9, 7, 9, 8, 8, 9, 7, 9, 0, 0, 8, 6, 8, 7, 7, 8, 6, 8, 0, 0, 7, 5, 7, 6, 6, 7, 5, 7, 0, 0, 6, 5, 6, 5, 5, 6, 5, 6, 0, 0, 5, 4, 5, 4, 4, 5, 4, 5, 0, 0, 4, 3, 4, 3, 3, 4, 3, 4, 0, 0, 3, 3, 3, 2, 2, 3, 3, 3, 0, 0, 2, 2, 2, 1, 1, 2, 2, 2, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0); map11 = new Array(7, 7, 8, 9, 8, 8, 9, 8, 7, 7, 7, 7, 8, 8, 7, 7, 8, 8, 7, 7, 7, 7, 7, 7, 6, 6, 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 4, 4, 4, 3, 3, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); map12 = new Array(8, 8, 8, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 8, 8, 8, 7, 7, 7, 8, 8, 8, 8, 7, 7, 7, 6, 6, 6, 7, 7, 7, 7, 6, 6, 6, 5, 5, 5, 6, 6, 6, 6, 5, 5, 5, 4, 4, 4, 5, 5, 5, 5, 4, 4, 4, 3, 3, 3, 4, 4, 4, 4, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0); map13 = new Array(8, 10, 10, 10, 10, 10, 10, 10, 10, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 8, 7, 8, 8, 8, 8, 8, 8, 8, 8, 7, 6, 7, 7, 7, 7, 7, 7, 7, 7, 6, 5, 6, 6, 6, 6, 6, 6, 6, 6, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0); map14 = new Array(0, 10, 10, 10, 8, 8, 10, 10, 10, 0, 0, 9, 9, 9, 7, 7, 9, 9, 9, 0, 0, 8, 8, 8, 6, 6, 8, 8, 8, 0, 0, 7, 7, 7, 5, 5, 7, 7, 7, 0, 0, 6, 6, 6, 4, 4, 6, 6, 6, 0, 0, 5, 5, 5, 3, 3, 5, 5, 5, 0, 0, 4, 4, 4, 2, 2, 4, 4, 4, 0, 0, 3, 3, 3, 1, 1, 3, 3, 3, 0, 0, 2, 2, 2, 0, 0, 2, 2, 2, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0); map15 = new Array(10, 10, 9, 10, 9, 9, 10, 9, 10, 10, 9, 9, 8, 9, 8, 8, 9, 8, 9, 9, 8, 8, 7, 8, 7, 7, 8, 7, 8, 8, 7, 7, 7, 7, 6, 6, 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); map16 = new Array(7, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); map17 = new Array(10, 8, 8, 10, 10, 10, 10, 8, 8, 10, 9, 7, 7, 9, 9, 9, 9, 7, 7, 9, 8, 6, 6, 8, 8, 8, 8, 6, 6, 8, 7, 6, 6, 7, 7, 7, 7, 6, 6, 7, 6, 5, 5, 6, 6, 6, 6, 5, 5, 6, 5, 4, 4, 5, 5, 5, 5, 4, 4, 5, 4, 3, 3, 4, 4, 4, 4, 3, 3, 4, 3, 2, 2, 3, 3, 3, 3, 2, 2, 3, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); map18 = new Array(4, 10, 10, 10, 10, 10, 10, 10, 10, 4, 4, 9, 9, 9, 9, 9, 9, 9, 9, 4, 4, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4, 7, 7, 7, 7, 7, 7, 7, 7, 4, 3, 6, 6, 6, 6, 6, 6, 6, 6, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 2, 1, 4, 4, 4, 4, 4, 4, 4, 4, 1, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0); map19 = new Array(8, 8, 10, 10, 10, 10, 10, 10, 8, 8, 7, 7, 9, 9, 9, 9, 9, 9, 7, 7, 6, 6, 8, 8, 8, 8, 8, 8, 6, 6, 5, 5, 7, 7, 7, 7, 7, 7, 5, 5, 4, 4, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); map20 = new Array(10, 8, 8, 10, 8, 8, 10, 8, 8, 10, 9, 7, 7, 9, 7, 7, 9, 7, 7, 9, 8, 7, 7, 8, 6, 6, 8, 7, 7, 8, 7, 7, 7, 7, 5, 5, 7, 7, 7, 7, 6, 6, 6, 6, 4, 4, 6, 6, 6, 6, 5, 5, 5, 5, 3, 3, 5, 5, 5, 5, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 3, 3, 3, 3, 1, 1, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); map21 = new Array(0, 0, 0, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); map22 = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); } public function setMap(_arg1:int){ cols = colsMap1; rows = rowsMap1; switch (_arg1){ case 1: map = map1; break; case 2: map = map2; break; case 3: map = map3; break; case 4: map = map4; break; case 5: map = map5; break; case 6: map = map6; break; case 7: map = map7; break; case 8: map = map8; break; case 9: map = map9; break; case 10: map = map10; break; case 11: map = map11; break; case 12: map = map12; break; case 13: map = map13; break; case 14: map = map14; break; case 15: map = map15; break; case 16: map = map16; break; case 17: map = map17; break; case 18: map = map18; break; case 19: map = map19; break; case 20: map = map20; break; case 21: map = map21; break; case 22: map = map22; break; default: map = map1; break; }; } public function getNrCols():int{ return (cols); } public function getNrRows():int{ return (rows); } } }//package com.king.twistmesilly
Section 5
//Brick (com.king.twistmesilly.Brick) package com.king.twistmesilly { class Brick { private var addToDisplayList:Boolean;// = false private var color:int; public var type:int; private var crossType:Boolean; public var special:int; public var graphicBrick:GraphicBrick; public var colPos:int; public var rowPos:int; public var marked:Boolean; public var horizontalOrientation:Boolean; private var rows:int; private var colorSwitched:Boolean; private var messageCallback:Function; public var state:int; private var frameCounter:int; public var fallingProcent:int; public var falling:Boolean; public var connectedLeft:Boolean; public var connectedRight:Boolean; public var connectedUp:Boolean; public var connectedDown:Boolean; public var delayFrame:int; public var instanceNr:int; public var rotateLock:Boolean; public var fallSpeed:Number; public var removed:Boolean; public static var SWITCHING_FRAMES:int = 5; public static var FALL_SPEED:int = 60; public static var FALL_SPEED_INCREASE:int = 1; public static var FALL_SPEED_MULTI_INCREASE:Number = 1.4; public static var DELAY_FRAMES:int = 5; public static var COLOR_NONE:int = 0; public static var COLOR_RED:int = 1; public static var COLOR_GREEN:int = 2; public static var COLOR_BLUE:int = 3; public static var COLOR_CERISE:int = 4; public static var MULTI_COLOR:int = 5; public static var TYPE_EMPTY:int = 0; public static var TYPE_NORMAL:int = 1; public static var SPECIAL_NONE:int = 0; public static var SPECIAL_BOMB:int = 1; public static var SPECIAL_SIDEWAY_BLAST:int = 2; public static var SPECIAL_COLOR_BLAST:int = 3; public static var STATE_NORMAL:int = 0; public static var STATE_SWITCHING:int = 1; public static var STATE_FALLING:int = 2; public static var STATE_MOVE_OUT:int = 3; public static var STATE_HIDE:int = 4; private static var instances:int = 0; function Brick(_arg1:Function){ this.messageCallback = _arg1; graphicBrick = new GraphicBrick(); } public function init(_arg1:int, _arg2:int, _arg3:Boolean, _arg4:Boolean, _arg5:int){ setCross(_arg3); setColor(_arg1); setOrientation(_arg4); this.rows = _arg5; setType(_arg2); graphicBrick.init(_arg5); special = SPECIAL_NONE; fallingProcent = 0; falling = false; connectedLeft = false; connectedRight = false; connectedUp = false; connectedDown = false; state = STATE_NORMAL; delayFrame = 0; rotateLock = false; instanceNr = instances++; marked = false; removed = false; } public function addToDisplay(){ graphicBrick.addToDisplay(); } public function inactivate(){ type = TYPE_EMPTY; rotateLock = false; removed = true; var _local1:InfoData = new InfoData(); _local1.data1 = getGraphicPosX(); _local1.data2 = getGraphicPosY(); _local1.data3 = color; if (horizontalOrientation){ _local1.data4 = 1; } else { _local1.data4 = 0; }; if (crossType){ _local1.data5 = 1; } else { _local1.data5 = 0; }; messageCallback("fade_brick", _local1); } public function tick(){ if (addToDisplayList){ graphicBrick.addToDisplay(); addToDisplayList = false; }; switch (state){ case STATE_NORMAL: break; case STATE_SWITCHING: if (frameCounter == SWITCHING_FRAMES){ messageCallback("brick_stop_rotation", null); state = STATE_NORMAL; }; break; case STATE_FALLING: break; case STATE_MOVE_OUT: if (frameCounter == 2){ graphicBrick.hide(); state = STATE_HIDE; }; break; case STATE_HIDE: break; }; if (type == TYPE_EMPTY){ graphicBrick.hide(); } else { if (state != STATE_HIDE){ graphicBrick.show(); }; }; if (((((((connectedRight) || (connectedLeft))) || (connectedUp))) || (connectedDown))){ graphicBrick.turnOnLights(); if (crossType){ graphicBrick.hideLightningLeft(); graphicBrick.hideLightningRight(); graphicBrick.hideCrossLightningUp(); graphicBrick.hideCrossLightningDown(); if (connectedLeft){ graphicBrick.showLightningLeft(); } else { if (connectedRight){ graphicBrick.showLightningRight(); } else { if (connectedUp){ graphicBrick.showCrossLightningUp(); } else { if (connectedDown){ graphicBrick.showCrossLightningDown(); }; }; }; }; } else { if (((connectedLeft) || (connectedDown))){ graphicBrick.showLightningLeft(); } else { graphicBrick.hideLightningLeft(); }; if (((connectedRight) || (connectedUp))){ graphicBrick.showLightningRight(); } else { graphicBrick.hideLightningRight(); }; }; } else { graphicBrick.turnOffLights(); graphicBrick.hideLightningLeft(); graphicBrick.hideLightningRight(); graphicBrick.hideCrossLightningUp(); graphicBrick.hideCrossLightningDown(); }; graphicBrick.setOffsetY(fallingProcent); graphicBrick.tick(); frameCounter++; if (rotateLock){ delayFrame++; }; } public function render(_arg1:Number){ graphicBrick.render(_arg1); } public function doForcedRender():void{ graphicBrick.doForcedRender(); } public function turnOnShowHint(){ graphicBrick.turnOnShowHint(); } public function turnOffShowHint(){ graphicBrick.turnOffShowHint(); } public function moveOut(_arg1:Boolean){ frameCounter = 0; state = STATE_MOVE_OUT; var _local2:InfoData = new InfoData(); _local2.data1 = getGraphicPosX(); _local2.data2 = getGraphicPosY(); _local2.data3 = color; if (horizontalOrientation){ _local2.data4 = 1; } else { _local2.data4 = 0; }; if (crossType){ _local2.data5 = 1; } else { _local2.data5 = 0; }; if (_arg1){ _local2.data6 = 1; } else { _local2.data6 = 0; }; messageCallback("brick_move_out", _local2); } public function movingOut():Boolean{ if ((((state == STATE_MOVE_OUT)) || ((state == STATE_HIDE)))){ return (true); }; return (false); } public function lock(){ rotateLock = true; } public function setPos(_arg1:int, _arg2:int){ this.colPos = _arg1; this.rowPos = _arg2; graphicBrick.setOffsetY(fallingProcent); graphicBrick.setPos(_arg1, _arg2); } public function getGraphicPosX():int{ return (graphicBrick.getPosX()); } public function getGraphicPosY():int{ return (graphicBrick.getPosY()); } public function setCross(_arg1:Boolean){ crossType = _arg1; graphicBrick.setCross(crossType); } public function isCross():Boolean{ return (crossType); } public function setOrientation(_arg1:Boolean){ this.horizontalOrientation = _arg1; if (this.horizontalOrientation){ graphicBrick.setHorizontal(); } else { graphicBrick.setVertical(); }; } public function setColor(_arg1:int){ this.color = _arg1; graphicBrick.setColor(_arg1); } public function setType(_arg1:int){ this.type = _arg1; } public function getColor():int{ return (color); } public function getType():int{ return (type); } public function setNoSpecial(){ special = SPECIAL_NONE; } public function setSpecial(_arg1:int):Boolean{ if ((((((this.special == SPECIAL_NONE)) && ((type == TYPE_NORMAL)))) && (!((color == MULTI_COLOR))))){ this.special = _arg1; graphicBrick.setSpecial(this.special); return (true); }; return (false); } public function isSpecialType(_arg1:int):Boolean{ if (this.special == _arg1){ return (true); }; return (false); } public function isSpecial():Boolean{ if (special == SPECIAL_NONE){ return (false); }; return (true); } public function scrambleMatching(_arg1:Brick):Boolean{ var _local2:int = color; var _local3:int = _arg1.color; if (((!((type == TYPE_NORMAL))) || (!((_arg1.type == TYPE_NORMAL))))){ return (false); }; if ((((((_local2 == _local3)) || ((_local2 == MULTI_COLOR)))) || ((_local3 == MULTI_COLOR)))){ return (true); }; return (false); } public function horizontalMatching(_arg1:Brick):Boolean{ if ((((state == STATE_SWITCHING)) || ((_arg1.state == STATE_SWITCHING)))){ return (false); }; if (((!((type == TYPE_NORMAL))) || (!((_arg1.type == TYPE_NORMAL))))){ return (false); }; if ((((((horizontalOrientation == true)) && ((_arg1.horizontalOrientation == true)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; if ((((((crossType == true)) && ((_arg1.horizontalOrientation == true)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; if ((((((horizontalOrientation == true)) && ((_arg1.crossType == true)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; return (false); } public function verticalMatching(_arg1:Brick):Boolean{ if ((((state == STATE_SWITCHING)) || ((_arg1.state == STATE_SWITCHING)))){ return (false); }; if (((!((type == TYPE_NORMAL))) || (!((_arg1.type == TYPE_NORMAL))))){ return (false); }; if ((((((horizontalOrientation == false)) && ((_arg1.horizontalOrientation == false)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; if ((((((crossType == true)) && ((_arg1.horizontalOrientation == false)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; if ((((((horizontalOrientation == false)) && ((_arg1.crossType == true)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; if ((((((crossType == true)) && ((_arg1.crossType == true)))) && ((((((color == _arg1.color)) || ((color == MULTI_COLOR)))) || ((_arg1.color == MULTI_COLOR)))))){ return (true); }; return (false); } public function empty():Boolean{ if (type == TYPE_EMPTY){ return (true); }; return (false); } public function startFall(){ fallSpeed = 1; falling = true; fallingProcent = -100; } public function startScrambleFall(){ fallSpeed = 1; falling = true; } public function endFall(){ fallSpeed = 0; fallingProcent = 0; falling = false; messageCallback("brick_end_fall", null); } public function continueFall(){ fallingProcent = (-100 + fallingProcent); } public function fall(){ fallSpeed = (fallSpeed * FALL_SPEED_MULTI_INCREASE); if (fallSpeed > FALL_SPEED){ fallSpeed = FALL_SPEED; }; fallingProcent = Math.round((fallingProcent + fallSpeed)); } public function isFalling():Boolean{ return (falling); } public function fallOver():Boolean{ if (fallingProcent >= 0){ return (true); }; return (false); } public function setFallingProcent(_arg1:int){ this.fallingProcent = _arg1; } public function getFallingProcent():int{ return (fallingProcent); } public function adjustFallSwitch(){ fallingProcent = -100; } public function rotate(){ if (((rotateLock) || (falling))){ return; }; if (crossType){ return; }; if (state != STATE_NORMAL){ return; }; if (horizontalOrientation){ horizontalOrientation = false; graphicBrick.rotateToVertical(); } else { horizontalOrientation = true; graphicBrick.rotateToHorizontal(); }; frameCounter = 1; state = STATE_SWITCHING; } public function mark(){ graphicBrick.onTop(); graphicBrick.showMouseOver(); } public function unMark(){ graphicBrick.hideMouseOver(); } public function debugShow(){ } } }//package com.king.twistmesilly
Section 6
//Communicator (com.king.twistmesilly.Communicator) package com.king.twistmesilly { import com.king.twistmesilly.*; import flash.system.*; import flash.xml.*; class Communicator { private static var NORMAL:Boolean = true; private static var moneyGame:Boolean = false; private static var freeGame:Boolean = false; private static var relaxGame:Boolean = false; public static var randomSeed:Number; public static var lang; public static function setMoneyGame(_arg1:Boolean){ moneyGame = _arg1; } public static function isFreeGame():Boolean{ return (freeGame); } public static function isRelaxGame():Boolean{ return (relaxGame); } public static function gameStarted(){ if (NORMAL){ fscommand("gameStart"); }; } public static function gameEnd(_arg1){ if (NORMAL){ fscommand("gameEnd", _arg1); }; } public static function gameQuit(){ if (NORMAL){ fscommand("gameQuit"); }; } public static function sendPlayData(_arg1:int, _arg2:int, _arg3:int){ if (moneyGame){ fscommand("playData", (((((_arg1 + ",") + _arg2) + ",") + _arg3) + ",0=0")); }; } public static function sendPlayData2(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ if (moneyGame){ fscommand("playData", (((((((_arg1 + ",") + _arg2) + ",") + _arg3) + ",") + _arg4) + ",0=0")); }; } public static function sendPlayData3(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){ if (moneyGame){ fscommand("playData", (((((((((_arg1 + ",") + _arg2) + ",") + _arg3) + ",") + _arg4) + ",") + _arg5) + ",0=0")); }; } public static function parseGameData(_arg1:String){ var _local6:String; var _local7:String; var _local2:XMLDocument = new XMLDocument(_arg1); var _local3:* = _local2.childNodes[0].childNodes; randomSeed = new Number(_local2.childNodes[0].attributes.randomseed).valueOf(); lang = _local2.childNodes[0].attributes.lang.valueOf(); var _local4:String = _local2.childNodes[0].attributes.relaxMode; if (_local4 == "true"){ relaxGame = true; } else { relaxGame = false; }; var _local5:* = 0; while (_local5 < _local3.length) { if (_local3[_local5].nodeName == "text"){ if (_local3[_local5].attributes.id == "instruction_text_1"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INSTRUCTION_TEXT1 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_heading1"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_HEADING1 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_text1"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_TEXT1 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_text2"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_TEXT2 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_heading2"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_HEADING2 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_text3"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_TEXT3 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_text4"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_TEXT4 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_text5"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_TEXT5 = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_starts_in"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_GAME_STARTS_IN = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_click_to_start"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_CLICK_TO_START = fixStr(_local6); }; if (_local3[_local5].attributes.id == "intro_like_this"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.INTRO_LIKE_THIS = fixStr(_local6); }; if (_local3[_local5].attributes.id == "level_sign_heading"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.LEVEL_SIGN_HEADING = fixStr(_local6); }; if (_local3[_local5].attributes.id == "level_sign_score"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.LEVEL_SIGN_SCORE_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "level_sign_bonus"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.LEVEL_SIGN_BONUS_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "level_sign_totalscore"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.LEVEL_SIGN_TOTAL_SCORE_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "level_sign_click_to_continue"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.LEVEL_SIGN_CLICK_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "led_sign_times_up"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.TIMES_UP = fixStr(_local6); }; if (_local3[_local5].attributes.id == "led_sign_scramble"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.SCRAMBLE = fixStr(_local6); }; if (_local3[_local5].attributes.id == "ends_in"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.ENDS_IN = fixStr(_local6); }; if (_local3[_local5].attributes.id == "game_ends"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.GAME_ENDS = fixStr(_local6); }; if (_local3[_local5].attributes.id == "scramble_button_text"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.SCRAMBLE_BUTTON_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "gui_score_text"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.GUI_SCORE_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "gui_level_text"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.GUI_LEVEL_TEXT = fixStr(_local6); }; if (_local3[_local5].attributes.id == "the_end"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.THE_END = fixStr(_local6); } else { if (_local3[_local5].attributes.id == "free_game_text"){ _local6 = new String(_local3[_local5].firstChild.nodeValue); TextProperties.FREE_GAME_TEXT = fixStr(_local6); }; }; }; if (_local3[_local5].nodeName == "userType"){ _local7 = new String(_local3[_local5].firstChild.nodeValue); if (_local7 == "0"){ freeGame = true; } else { freeGame = false; }; }; _local5++; }; } private static function fixStr(_arg1:String):String{ var _local2:String = _arg1.split("\r\n").join("\n"); return (_local2); } } }//package com.king.twistmesilly
Section 7
//CoreGame (com.king.twistmesilly.CoreGame) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; import flash.system.*; import flash.ui.*; class CoreGame { private var seed:int; private var input:Input; private var messageCallback:Function; private var board:Board; public var gameGUI:GameGUI; private var dynamicObjects:Array; private var leftFlash:Flash; private var rightFlash:Flash; private var currentTick:int; private var levelTick:int; private var score:int; private var level:int; private var time:int; private var brickToBlastOnLevel:int; private var nrRemovedBricksThisLevel:int; private var nrRemovedBricksThisTick:int; private var scoreThisTick:int; private var nrNormalExplosions:int; private var inputEnabled:Boolean; private var countTime:Boolean; private var levelFinish:Boolean; private var timesUp:Boolean; private var exitGame:Boolean; private var playMatchSoundOnce:Boolean; private var random:Random; private var lightningSoundCounter:int; private var ledJumping:Boolean; private var alwaysMatchCounter:int; var levelTime:int; public static var DEMO_LEVEL_TIME_LIMIT:int = 125; public static var TIME_LIMIT:int = 6000; public static var SCRAMBLE_TIME_PENALTY_FRAMES:int = 250; public static var START_LED_JUMPING:int = 250; public static var MAP_NR:int = 1; public static var BOARD_HORIZONTAL_OFFSET:int = 47; public static var BOARD_VERTICAL_OFFSET:int = 60; public static var LEVEL_EXTRA:int = 20; public static var BOMB_SCORE:int = 150; public static var SIDEWAY_SCORE:int = 200; public static var COLOR_SCORE_PER_BRICK:int = 20; function CoreGame(_arg1:int, _arg2:Input, _arg3:Function){ this.seed = _arg1; this.input = _arg2; this.messageCallback = _arg3; random = new Random(_arg1); board = new Board(_arg1, messageReciver); gameGUI = new GameGUI(Global.defaultDisplayObject); dynamicObjects = new Array(); leftFlash = new Flash(37, 565); rightFlash = new Flash(0x0202, 565); gameGUI.render(1); leftFlash.setGoalPos(0, 0); rightFlash.setGoalPos(0, 0); score = 0; time = 0; levelTime = 0; level = 1; gameGUI.setLevel(level); nrRemovedBricksThisLevel = 0; brickToBlastOnLevel = 0; enableInput(false); timesUp = false; exitGame = false; enableCountTime(false); alwaysMatchCounter = 0; } public function initParts():Boolean{ if (board.initParts()){ return (true); }; return (false); } public function tick(_arg1:int):void{ playMatchSoundOnce = true; if (inputEnabled == false){ input.reset(); input.setMousePos(1000, 1000); }; nrRemovedBricksThisTick = 0; scoreThisTick = 0; nrNormalExplosions = 0; if (input.mouseIsPressed){ board.switchBrickColor(((input.xMouse - BOARD_HORIZONTAL_OFFSET) + 25), ((input.yMouse - BOARD_VERTICAL_OFFSET) + 25)); }; board.atNone(); board.atBrick(((input.xMouse - BOARD_HORIZONTAL_OFFSET) + 25), ((input.yMouse - BOARD_VERTICAL_OFFSET) + 25)); currentTick = _arg1; if ((((nrRemovedBricksThisLevel >= brickToBlastOnLevel)) || ((time >= (TIME_LIMIT - 1))))){ board.setBlockScramble(); }; if (time >= TIME_LIMIT){ enableInput(false); enableCountTime(false); }; if (exitGame == true){ enableInput(false); enableCountTime(false); }; board.alwaysMatch = false; if ((((nrRemovedBricksThisLevel >= brickToBlastOnLevel)) || ((time >= TIME_LIMIT)))){ if (alwaysMatchCounter < 8){ board.alwaysMatch = true; alwaysMatchCounter++; }; }; board.tick(currentTick); updateDynamicObjects(); removeDynamicObjects(); nrRemovedBricksThisLevel = (nrRemovedBricksThisLevel + nrRemovedBricksThisTick); gameGUI.setProgress(nrRemovedBricksThisLevel, brickToBlastOnLevel); if (nrRemovedBricksThisLevel >= brickToBlastOnLevel){ enableInput(false); }; if ((((((((time >= (TIME_LIMIT - START_LED_JUMPING))) && (!(ledJumping)))) && (inputEnabled))) && ((board.scrambling() == false)))){ ledJumping = true; gameGUI.startLedJumping(); messageCallback("little_time_left", null); }; var _local2:Boolean = board.moveFinished(); if ((((((((time >= TIME_LIMIT)) && ((levelFinish == false)))) && ((timesUp == false)))) && ((board.scrambling() == false)))){ if (_local2 == true){ timesUp = true; gameGUI.stopLedJumping(); messageCallback("finish_game", null); }; }; if (Communicator.isFreeGame()){ if ((((((((((level >= 2)) && ((levelTime >= DEMO_LEVEL_TIME_LIMIT)))) && ((levelFinish == false)))) && ((timesUp == false)))) && ((board.scrambling() == false)))){ if (_local2 == true){ timesUp = true; gameGUI.stopLedJumping(); messageCallback("demo_finish_game", null); }; }; }; if ((((((((levelFinish == false)) && ((timesUp == false)))) && ((nrRemovedBricksThisLevel >= brickToBlastOnLevel)))) && ((_local2 == true)))){ board.checkSpecials(); board.setBlockScramble(); levelFinish = true; gameGUI.stopLedJumping(); enableInput(false); enableCountTime(false); messageCallback("level_finished", null); }; if ((((((((levelFinish == false)) && ((timesUp == false)))) && ((exitGame == true)))) && ((((_local2 == true)) && ((levelTick > 35)))))){ board.setBlockScramble(); enableInput(false); messageCallback("exit_game", null); }; gameGUI.setTime((TIME_LIMIT - time)); gameGUI.tick(); leftFlash.tick(); rightFlash.tick(); if (countTime){ if (Communicator.isRelaxGame() == false){ time++; }; levelTime++; }; levelTick++; } public function render(_arg1:Number):void{ board.render(_arg1); renderDynamicObjects(); gameGUI.render(_arg1); leftFlash.render(); rightFlash.render(); } public function initEndLevelAnim(){ board.startAnimOutBoard(); leftFlash.showFlash(); rightFlash.showFlash(); } public function updateEndLevelAnim():Boolean{ var _local1:Boolean = board.updateAnimOutBoard(); if (_local1){ leftFlash.hideFlash(); rightFlash.hideFlash(); return (true); }; return (false); } public function enableInput(_arg1:Boolean){ inputEnabled = _arg1; } public function enableCountTime(_arg1:Boolean){ countTime = _arg1; } public function ledsAreJumping(){ return (ledJumping); } public function setupLevel(_arg1:int){ this.level = _arg1; var _local2:int = (board.random.nextInt(4) + 1); board.setColorSet(_local2); var _local3:int = (board.random.nextInt(20) + 1); board.initMap(_local3); levelFinish = false; gameGUI.setLevel(_arg1); nrRemovedBricksThisLevel = 0; ledJumping = false; setTarget(_arg1); levelTick = 0; lightningSoundCounter = 0; enableCountTime(false); levelTime = 0; alwaysMatchCounter = 0; } public function scramble(){ if (((inputEnabled) && (board.moveFinishedLight()))){ board.startScramble(); time = (time + SCRAMBLE_TIME_PENALTY_FRAMES); if (time > TIME_LIMIT){ time = TIME_LIMIT; }; }; } public function tryToExitGame(){ exitGame = true; } private function setTarget(_arg1:int){ if (_arg1 < 4){ brickToBlastOnLevel = (25 + (25 * _arg1)); } else { brickToBlastOnLevel = (50 * _arg1); }; } public function messageReciver(_arg1:String, _arg2:InfoData){ if (_arg1 == "chains_two"){ onChainsTwo(); } else { if (_arg1 == "chains_three"){ onChainsThree(); } else { if (_arg1 == "chains_four"){ onChainsFour(); } else { if (_arg1 == "brick_removed"){ onBrickRemoved(_arg2); } else { if (_arg1 == "blast_bomb_brick"){ onBlastBombBrick(_arg2); } else { if (_arg1 == "blast_sideway_brick"){ onBlastSidewayBrick(_arg2); } else { if (_arg1 == "color_brick_removed"){ onColorBrickRemoved(_arg2); } else { if (_arg1 == "match_score"){ onMatchScore(_arg2); } else { if (_arg1 == "blast_bomb"){ onBlastBomb(_arg2); } else { if (_arg1 == "blast_sideway"){ onBlastSideway(_arg2); } else { if (_arg1 == "blast_color"){ onBlastColor(_arg2); } else { if (_arg1 == "fade_brick"){ onFadeBrick(_arg2); } else { if (_arg1 == "board_ready"){ onBoardReady(); } else { if (_arg1 == "enable_input"){ onEnableInput(); } else { if (_arg1 == "scrambling"){ onScrambling(); } else { if (_arg1 == "brick_move_out"){ onBrickMoveOut(_arg2); }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; } private function onChainsTwo(){ board.createBomb(); } private function onChainsThree(){ board.createSidewayBlast(); } private function onChainsFour(){ board.createColorBlast(); } private function onBrickRemoved(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:DynamicObject = new DynamicObject(new normal_explosion(), _local2, _local3, 7, DynamicObject.TINT_COLOR_NONE, 1); dynamicObjects.push(_local4); nrNormalExplosions++; } private function onBlastBombBrick(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:DynamicObject = new DynamicObject(new explosion_bitmap(), _local2, _local3, 17, DynamicObject.TINT_COLOR_NONE, 1); dynamicObjects.push(_local4); } private function onBlastSidewayBrick(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:DynamicObject = new DynamicObject(new normal_explosion(), _local2, _local3, 7, DynamicObject.TINT_COLOR_NONE, 1); dynamicObjects.push(_local4); } private function onColorBrickRemoved(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; if (_local4 == Brick.MULTI_COLOR){ _local4 = DynamicObject.TINT_COLOR_NONE; }; var _local5:DynamicObject = new DynamicObject(new explosion_bitmap(), _local2, _local3, 17, _local4, 1); dynamicObjects.push(_local5); } private function onMatchScore(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; var _local5:int = _arg1.data4; var _local6:int = calculateMatchScore(_local4, _local5, level); addScore(_local6); Communicator.sendPlayData3(50, currentTick, getTime(), _local6, score); var _local7:* = new score_animation(); _local7.score_mc.score_txt.text = _local6; var _local8:DynamicObject = new DynamicObject(_local7, _local2, _local3, 15, DynamicObject.TINT_COLOR_NONE, 2); _local8.setDelay(4); dynamicObjects.push(_local8); playMatchSound(_local5); } private function playMatchSound(_arg1:int){ if (playMatchSoundOnce){ switch (_arg1){ case 0: SoundManager.playMatch1(); break; case 1: SoundManager.playMatch2(); break; case 2: SoundManager.playMatch3(); break; case 3: SoundManager.playMatch4(); break; case 4: SoundManager.playMatch5(); break; default: SoundManager.playMatch6(); break; }; }; playMatchSoundOnce = false; } private function onBlastBomb(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; var _local5:* = new score_animation(); _local5.score_mc.score_txt.text = BOMB_SCORE; var _local6:DynamicObject = new DynamicObject(_local5, _local2, _local3, 15, DynamicObject.TINT_COLOR_NONE, 2); _local6.setDelay(4); dynamicObjects.push(_local6); addScore(BOMB_SCORE); Communicator.sendPlayData3(51, currentTick, getTime(), BOMB_SCORE, score); SoundManager.playBomb(); } private function onBlastSideway(_arg1:InfoData){ var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; var _local5:DynamicObject = new DynamicObject(new sideway_explosion_bitmap(), _local2, _local3, 18, DynamicObject.TINT_COLOR_NONE, 1); dynamicObjects.push(_local5); _local5 = new DynamicObject(new sideway_explosion_bitmap(), _local2, _local3, 18, DynamicObject.TINT_COLOR_NONE, 0); _local5.setMirrorMode(); dynamicObjects.push(_local5); var _local6:* = new score_animation(); _local6.score_mc.score_txt.text = SIDEWAY_SCORE; _local5 = new DynamicObject(_local6, _local2, _local3, 15, DynamicObject.TINT_COLOR_NONE, 1); _local5.setDelay(4); dynamicObjects.push(_local5); addScore(SIDEWAY_SCORE); Communicator.sendPlayData3(52, currentTick, getTime(), SIDEWAY_SCORE, score); SoundManager.playLineBlast(); } private function onBlastColor(_arg1:InfoData){ var _local5:int; var _local6:*; var _local7:DynamicObject; var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; if (_local4 > 0){ _local5 = (_local4 * 20); _local6 = new score_animation(); _local6.score_mc.score_txt.text = _local5; _local7 = new DynamicObject(_local6, _local2, _local3, 15, DynamicObject.TINT_COLOR_NONE, 2); _local7.setDelay(4); dynamicObjects.push(_local7); addScore(_local5); Communicator.sendPlayData3(53, currentTick, getTime(), _local5, score); SoundManager.playColorBomb(); }; } private function onFadeBrick(_arg1:InfoData){ var _local7:*; var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; var _local5:int = _arg1.data4; var _local6:int = _arg1.data5; switch (_local4){ case Brick.COLOR_RED: if (_local6 == 0){ _local7 = new red3(); } else { _local7 = new red5(); }; break; case Brick.COLOR_GREEN: if (_local6 == 0){ _local7 = new green3(); } else { _local7 = new green5(); }; break; case Brick.COLOR_BLUE: if (_local6 == 0){ _local7 = new blue3(); } else { _local7 = new blue5(); }; break; case Brick.COLOR_CERISE: if (_local6 == 0){ _local7 = new cerise3(); } else { _local7 = new cerise5(); }; break; case Brick.MULTI_COLOR: if (_local6 == 0){ _local7 = new rainbow3(); } else { _local7 = new rainbow5(); }; break; }; var _local8:DynamicObject = new DynamicObject(_local7, _local2, _local3, 5, DynamicObject.TINT_COLOR_NONE, 0); _local8.setZoomOut(); if (_local5 == 0){ _local8.setRotated(); }; dynamicObjects.push(_local8); nrRemovedBricksThisTick++; } private function onBoardReady(){ enableInput(true); enableCountTime(true); messageCallback("level_ready", null); } private function onBoardFinish(){ messageCallback("level_finish", null); } private function onEnableInput(){ enableInput(true); } private function onScrambling(){ enableInput(false); enableCountTime(false); messageCallback("scrambling", null); } private function onBrickMoveOut(_arg1:InfoData){ var _local7:Boolean; var _local8:*; var _local2:int = _arg1.data1; var _local3:int = _arg1.data2; var _local4:int = _arg1.data3; var _local5:int = _arg1.data4; var _local6:int = _arg1.data5; if (_arg1.data6 == 1){ _local7 = true; } else { _local7 = false; }; switch (_local4){ case Brick.COLOR_RED: if (_local6 == 0){ _local8 = new red3(); } else { _local8 = new red5(); }; break; case Brick.COLOR_GREEN: if (_local6 == 0){ _local8 = new green3(); } else { _local8 = new green5(); }; break; case Brick.COLOR_BLUE: if (_local6 == 0){ _local8 = new blue3(); } else { _local8 = new blue5(); }; break; case Brick.COLOR_CERISE: if (_local6 == 0){ _local8 = new cerise3(); } else { _local8 = new cerise5(); }; break; case Brick.MULTI_COLOR: if (_local6 == 0){ _local8 = new rainbow3(); } else { _local8 = new rainbow5(); }; break; }; var _local9:DynamicObject = new DynamicObject(_local8, _local2, _local3, 100, DynamicObject.TINT_COLOR_NONE, 0); _local9.setMoveOut(); if (_local5 == 0){ _local9.setRotated(); }; dynamicObjects.push(_local9); if (_local7){ rightFlash.setGoalPos(_local2, _local3); } else { leftFlash.setGoalPos(_local2, _local3); }; if (lightningSoundCounter == 0){ SoundManager.playLightning(); }; lightningSoundCounter++; if (lightningSoundCounter >= 10){ lightningSoundCounter = 0; }; } public function addBoardToDisplay(){ board.addBricksToDisplay(); } private function updateDynamicObjects(){ var _local1:* = 0; while (_local1 < dynamicObjects.length) { dynamicObjects[_local1].tick(); _local1++; }; } private function renderDynamicObjects(){ var _local1:* = 0; while (_local1 < dynamicObjects.length) { dynamicObjects[_local1].render(); _local1++; }; } private function removeDynamicObjects(){ var _local2:DynamicObject; var _local3:*; var _local1:Number = 0; while (_local1 < dynamicObjects.length) { if (dynamicObjects[_local1].toBeRemoved){ if (_local1 == (dynamicObjects.length - 1)){ _local2 = dynamicObjects.pop(); _local2.deleting(); _local2 = null; } else { _local3 = dynamicObjects.pop(); _local2 = dynamicObjects[_local1]; _local2.deleting(); _local2 = null; dynamicObjects[_local1] = _local3; _local1--; }; }; _local1++; }; } private function calculateMatchScore(_arg1:int, _arg2:int, _arg3:int):int{ var _local4:int; switch (_arg1){ case 3: _local4 = (50 + ((_arg3 - 1) * LEVEL_EXTRA)); break; case 4: _local4 = (100 + ((_arg3 - 1) * LEVEL_EXTRA)); break; case 5: _local4 = (150 + ((_arg3 - 1) * LEVEL_EXTRA)); break; case 6: _local4 = (250 + ((_arg3 - 1) * LEVEL_EXTRA)); break; case 7: default: _local4 = (500 + ((_arg3 - 1) * LEVEL_EXTRA)); break; }; var _local5:Number = (1 + (_arg2 * 0.5)); _local4 = int((_local4 * _local5)); return (_local4); } public function addScore(_arg1:int){ scoreThisTick = (scoreThisTick + _arg1); score = (score + _arg1); gameGUI.setScore(score); } public function getScore():int{ return (score); } public function getTime():int{ return (time); } public function littleTimeLeft():Boolean{ if (time >= (TIME_LIMIT - START_LED_JUMPING)){ return (true); }; return (false); } } }//package com.king.twistmesilly
Section 8
//DynamicObject (com.king.twistmesilly.DynamicObject) package com.king.twistmesilly { import flash.display.*; import flash.geom.*; class DynamicObject { private var posX:Number; private var posY:Number; private var frames:int; private var clip:MovieClip; private var animFrame;// = 0 private var mirror:Boolean; private var zoomOut:Boolean; private var movingOut:Boolean; private var delayFrames:int; private var visible:Boolean; public var toBeRemoved:Boolean; private var rotation:Number; private var deltaRotation:int; private var movingOutSpeed:Number; private var scale:Number; private var renderLevel:int; private var counter:int;// = 0 public static var MAX_MOVING_OUT_SPEED:int = 30; public static var MOVING_OUT_SPEED_FACTOR:Number = 3; public static var MOVING_OUT_MAX_DELTA_ROTATION:int = 30; public static var TINT_COLOR_NONE:int = 0; public static var TINT_COLOR_RED:int = 1; public static var TINT_COLOR_GREEN:int = 2; public static var TINT_COLOR_BLUE:int = 3; public static var TINT_COLOR_CERISE:int = 4; function DynamicObject(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int){ this.clip = _arg1; this.posX = _arg2; this.posY = _arg3; this.frames = _arg4; this.renderLevel = _arg6; mirror = false; zoomOut = false; movingOut = false; delayFrames = 0; rotation = 0; deltaRotation = 0; movingOutSpeed = 0; visible = false; toBeRemoved = false; tint(_arg5); if (_arg6 == 0){ Global.playFieldClip0.addChild(_arg1); }; if (_arg6 == 1){ Global.playFieldClip2.addChild(_arg1); } else { if (_arg6 == 2){ Global.playFieldClip3.addChild(_arg1); }; }; } public function tick(){ counter++; if (delayFrames > 0){ delayFrames--; return; }; visible = true; animFrame++; if (animFrame > frames){ animFrame = frames; toBeRemoved = true; }; if (zoomOut){ switch (animFrame){ case 1: scale = 1; break; case 2: scale = 1.15; break; case 3: scale = 1.34; break; case 4: scale = 1; break; case 5: scale = 0.75; break; }; }; if (movingOut){ movingOutSpeed = (movingOutSpeed * MOVING_OUT_SPEED_FACTOR); if (movingOutSpeed > MAX_MOVING_OUT_SPEED){ movingOutSpeed = MAX_MOVING_OUT_SPEED; }; posY = (posY + movingOutSpeed); rotation = (rotation + deltaRotation); if (posY > 650){ toBeRemoved = true; }; }; } public function render(){ clip.visible = visible; clip.x = posX; clip.y = posY; if (mirror){ clip.scaleX = -1; }; if (zoomOut){ clip.scaleX = scale; clip.scaleY = scale; }; clip.rotation = rotation; clip.gotoAndStop(animFrame); } public function setMirrorMode(){ mirror = true; } public function setRotated(){ rotation = (rotation + 90); } public function setMoveOut(){ movingOut = true; movingOutSpeed = 1; deltaRotation = (int((Math.random() * MAX_MOVING_OUT_SPEED)) - int((MAX_MOVING_OUT_SPEED / 2))); } public function setZoomOut(){ zoomOut = true; } public function setDelay(_arg1:int){ this.delayFrames = _arg1; } public function setToBeRemoved(){ visible = false; toBeRemoved = true; } public function deleting(){ if (renderLevel == 0){ Global.playFieldClip0.removeChild(clip); } else { if (renderLevel == 1){ Global.playFieldClip2.removeChild(clip); } else { if (renderLevel == 2){ Global.playFieldClip3.removeChild(clip); }; }; }; clip = null; } private function tint(_arg1:int){ switch (_arg1){ case TINT_COLOR_NONE: break; case TINT_COLOR_RED: this.clip.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 128, 0, 0, 0); break; case TINT_COLOR_GREEN: this.clip.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 0, 77, 0, 0); break; case TINT_COLOR_BLUE: this.clip.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 12, 54, 124, 0); break; case TINT_COLOR_CERISE: this.clip.transform.colorTransform = new ColorTransform(1, 0.25, 0.25, 1, 249, 108, 15, 0); break; }; } } }//package com.king.twistmesilly
Section 9
//Flash (com.king.twistmesilly.Flash) package com.king.twistmesilly { import flash.display.*; class Flash { private var clip:MovieClip; private var posX:int; private var posY:int; private var length:Number; private var rotation:Number; private var frame:int; private var scale:Number; private var visible:Boolean; private var countDown:int; function Flash(_arg1:int, _arg2:int){ this.posX = _arg1; this.posY = _arg2; countDown = -1; clip = new blixt(); clip.visible = false; Global.playFieldClip3.addChild(clip); frame = 1; hideFlash(); } public function tick(){ frame++; if (frame == 5){ frame = 1; }; if (countDown > -1){ countDown--; }; if (countDown == 1){ length = (length - 45); scale = (length / 715); }; if (countDown == 0){ scale = 0.015; }; } public function render(){ clip.gotoAndStop(frame); clip.x = posX; clip.y = posY; clip.scaleX = scale; clip.rotation = rotation; clip.visible = visible; } public function showFlash(){ visible = true; } public function hideFlash(){ visible = false; scale = 0.015; } public function setGoalPos(_arg1:int, _arg2:int){ var _local3:int = (posX - _arg1); var _local4:int = (posY - _arg2); var _local5:Number = Math.atan2(_local4, _local3); rotation = ((_local5 * 180) / Math.PI); length = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); scale = (length / 715); countDown = 3; } } }//package com.king.twistmesilly
Section 10
//GameGUI (com.king.twistmesilly.GameGUI) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class GameGUI { private var clip:MovieClip; private var score:int; private var level:int; private var progressFrame:int; private var wantedProgressFrame:int; private var progressBlink:Boolean; private var time1:String;// = "" private var time2:String;// = "" private var time3:String;// = "" private var time1LedBlink:Boolean; private var time1LedAnimFrame; private var time2LedBlink:Boolean; private var time2LedAnimFrame; private var time2Visible:Boolean; private var time3LedBlink:Boolean; private var time3LedAnimFrame; private var ledJump:Boolean; function GameGUI(_arg1:MovieClip){ this.clip = _arg1; progressFrame = 1; progressBlink = false; showMiddleLedTime(); time1LedAnimFrame = 1; time1LedBlink = false; time2LedAnimFrame = 1; time2LedBlink = false; time3LedAnimFrame = 1; time3LedBlink = false; stopLedJumping(); if (Communicator.isRelaxGame()){ _arg1.scramble_mc.visible = false; _arg1.scramble_button_txt.visible = false; }; } public function init(){ level = 0; score = 0; } public function tick(){ var _local1:int; if (Communicator.isRelaxGame()){ TextProperties.SCRAMBLE = TextProperties.THE_END; }; if (progressBlink){ progressFrame++; if (progressFrame > 80){ progressFrame = 60; }; } else { if (progressFrame < wantedProgressFrame){ progressFrame++; }; }; if (ledJump){ time1LedAnimFrame++; if (time1LedAnimFrame > 22){ time1LedAnimFrame = 8; }; time2LedAnimFrame++; if (time2LedAnimFrame > 22){ time2LedAnimFrame = 8; }; time3LedAnimFrame++; if (time3LedAnimFrame > 22){ time3LedAnimFrame = 8; }; } else { if (time1LedBlink == false){ _local1 = Math.round((Math.random() * 100)); if (_local1 == 0){ time1LedAnimFrame = 1; time1LedBlink = true; }; }; if (time1LedBlink){ time1LedAnimFrame++; }; if (time1LedAnimFrame > 7){ time1LedAnimFrame = 1; time1LedBlink = false; }; if (time2LedBlink == false){ _local1 = Math.round((Math.random() * 100)); if (_local1 == 0){ time2LedAnimFrame = 1; time2LedBlink = true; }; }; if (time2LedBlink){ time2LedAnimFrame++; }; if (time2LedAnimFrame > 7){ time2LedAnimFrame = 1; time2LedBlink = false; }; if (time3LedBlink == false){ _local1 = Math.round((Math.random() * 100)); if (_local1 == 0){ time3LedAnimFrame = 1; time3LedBlink = true; }; }; if (time3LedBlink){ time3LedAnimFrame++; }; if (time3LedAnimFrame > 7){ time3LedAnimFrame = 1; time3LedBlink = false; }; }; } public function render(_arg1:Number){ var _local2:String; if (clip.score_mc.score_txt.text){ if (clip.score_mc.score_txt.text != score){ clip.score_mc.score_txt.text = score; }; }; if (clip.level_mc.level_txt){ _local2 = ((TextProperties.GUI_LEVEL_TEXT + " ") + level); if (clip.level_mc.level_txt.text != _local2){ clip.level_mc.level_txt.text = _local2; }; }; if (clip.progress_mc){ clip.progress_mc.gotoAndStop(progressFrame); }; if (clip.time1_mc){ if (clip.time1_mc.timeLed_mc.time_txt.text != time1){ clip.time1_mc.timeLed_mc.time_txt.text = time1; if (Communicator.isRelaxGame()){ clip.time1_mc.timeLed_mc.time_txt.text = ""; }; }; clip.time1_mc.gotoAndStop(time1LedAnimFrame); }; if (clip.time2_mc){ clip.time2_mc.visible = time2Visible; if (clip.time2_mc.timeLed_mc.time_txt.text != time2){ clip.time2_mc.timeLed_mc.time_txt.text = time2; if (Communicator.isRelaxGame()){ clip.time2_mc.timeLed_mc.time_txt.text = ""; }; }; clip.time2_mc.gotoAndStop(time2LedAnimFrame); }; if (clip.time3_mc){ if (clip.time3_mc.timeLed_mc.time_txt.text != time3){ clip.time3_mc.timeLed_mc.time_txt.text = time3; if (Communicator.isRelaxGame()){ clip.time3_mc.timeLed_mc.time_txt.text = ""; }; }; clip.time3_mc.gotoAndStop(time3LedAnimFrame); }; if (clip.scramble_button_txt){ if (clip.scramble_button_txt.text != TextProperties.SCRAMBLE_BUTTON_TEXT){ clip.scramble_button_txt.text = TextProperties.SCRAMBLE_BUTTON_TEXT; }; }; if (clip.score_mc.score_inner_mc){ if (clip.score_mc.score_inner_mc.gui_score_text_txt.text != TextProperties.GUI_SCORE_TEXT){ clip.score_mc.score_inner_mc.gui_score_text_txt.text = TextProperties.GUI_SCORE_TEXT; }; }; } public function setScore(_arg1:int){ this.score = _arg1; } public function setLevel(_arg1:int){ this.level = _arg1; } public function setProgress(_arg1:int, _arg2:int){ if (_arg1 > _arg2){ _arg1 = _arg2; }; if (_arg1 == 0){ progressFrame = 1; }; var _local3:Number = (_arg1 / _arg2); wantedProgressFrame = int((41 * _local3)); if ((((((_arg1 == _arg2)) && ((wantedProgressFrame >= 40)))) && ((progressBlink == false)))){ progressFrame = 60; progressBlink = true; } else { if (wantedProgressFrame == 0){ progressBlink = false; }; }; } public function setTime(_arg1:int){ var _local2:int = (_arg1 / 25); var _local3:int = (_local2 / 60); _local2 = (_local2 - (_local3 * 60)); var _local4:int = int((_local2 / 10)); time1 = String(_local3); time2 = String(_local4); time3 = String(int((_local2 - (_local4 * 10)))); } public function showMiddleLedTime(){ time2Visible = true; } public function hideMiddleLedTime(){ time2Visible = false; } public function startLedJumping(){ time1LedAnimFrame = 8; time2LedAnimFrame = 1; time3LedAnimFrame = 3; ledJump = true; } public function stopLedJumping(){ ledJump = false; } } }//package com.king.twistmesilly
Section 11
//GameHandler (com.king.twistmesilly.GameHandler) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; import flash.system.*; import flash.ui.*; class GameHandler { public var coreGame:CoreGame; private var input:Input; private var messageCallback:Function; private var ghState:int; private var level:int; public var currentTick:int; private var tickCounter:int; private var tickCounter2:int; private var delay:Boolean; public var moviePlayer:MoviePlayer; private var logoPlayer2:LogoPlayer; private var scrambling:Boolean; private var gameStarted:Boolean; private var endLevelCounter:int; private var blingStars:BlingStars; private var normalGameLoopVolume:Boolean; public static var GAME_ENDS_IN_TICKS:int = 250; public static var SHOW_LEVEL_SIGN_TICKS:int = 125; public static var STATE_START = 10; public static var STATE_PAUSE = 0; public static var INIT_GAME:int = 1; public static var PRE_LEVEL:int = 2; public static var NEXT_LEVEL:int = 9; public static var LEVEL_INTRO:int = 8; public static var STATE_PLAY = 3; public static var END_LEVEL:int = 4; public static var SHOW_LEVEL_SIGN:int = 13; public static var STATE_TIMESUP:int = 11; public static var STATE_GAME_OVER:int = 5; public static var STATE_GAME_OVER_FREE:int = 6; public static var STATE_END:int = 7; public static var STATE_SCRAMBLE:int = 12; function GameHandler(_arg1:int, _arg2:Input, _arg3:Function){ this.input = _arg2; this.messageCallback = _arg3; moviePlayer = new MoviePlayer(Global.defaultDisplayObject); coreGame = new CoreGame(_arg1, _arg2, messageReciver); currentTick = 0; level = 0; ghState = STATE_START; logoPlayer2 = new LogoPlayer(Global.defaultDisplayObject.GameLogo_mc); scrambling = false; gameStarted = false; blingStars = new BlingStars(Global.defaultDisplayObject.blingStarsHolder_mc); normalGameLoopVolume = true; } public function tick():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int; if ((((ghState == STATE_PLAY)) && (input.mouseIsPressed))){ Communicator.sendPlayData3(20, currentTick, coreGame.getTime(), input.xMouse, input.yMouse); }; scrambleButton(); switch (ghState){ case STATE_START: break; case STATE_PAUSE: break; case INIT_GAME: if (coreGame.initParts()){ coreGame.addBoardToDisplay(); ghState = STATE_PAUSE; coreGame.render(1); }; break; case PRE_LEVEL: level++; coreGame.setupLevel(level); tickCounter = 99; ghState = LEVEL_INTRO; break; case NEXT_LEVEL: if (tickCounter == 10){ level++; coreGame.setupLevel(level); tickCounter = 0; SoundManager.playLevelStart(); ghState = LEVEL_INTRO; blingStars.inactivateAll(); }; coreGame.tick(currentTick); currentTick++; blingStars.tick(); break; case LEVEL_INTRO: if (tickCounter == 10){ normalGameLoopVolume = true; }; coreGame.tick(currentTick); currentTick++; break; case STATE_PLAY: coreGame.tick(currentTick); currentTick++; break; case STATE_SCRAMBLE: coreGame.tick(currentTick); currentTick++; if (tickCounter == 40){ moviePlayer.hideScramble(); }; if (tickCounter == 46){ coreGame.gameGUI.showMiddleLedTime(); ghState = STATE_PLAY; if (Communicator.isRelaxGame()){ tryToExitGame(); }; if (coreGame.littleTimeLeft()){ SoundManager.playTimeOutLoop(); }; }; break; case END_LEVEL: if (coreGame.updateEndLevelAnim()){ tickCounter = 0; _local1 = coreGame.getScore(); _local2 = 1000; coreGame.addScore(_local2); _local3 = coreGame.getScore(); moviePlayer.setLevelSignScore(_local1, _local2, _local3); if (level >= 3){ moviePlayer.animInLevelSign(2); } else { moviePlayer.animInLevelSign(1); }; SoundManager.playLevelEnd(); ghState = SHOW_LEVEL_SIGN; _local4 = (7 * level); if (_local4 > 56){ _local4 = 56; }; blingStars.init(_local4); }; coreGame.tick(currentTick); currentTick++; endLevelCounter++; break; case SHOW_LEVEL_SIGN: if ((((tickCounter == SHOW_LEVEL_SIGN_TICKS)) || ((((tickCounter >= 31)) && (input.mouseIsPressed))))){ nextLevel(); }; coreGame.tick(currentTick); currentTick++; blingStars.tick(); break; case STATE_TIMESUP: coreGame.tick(currentTick); currentTick++; if (tickCounter > (2 * 25)){ tickCounter = 0; moviePlayer.hideTimesup(); coreGame.gameGUI.showMiddleLedTime(); if (level >= 4){ moviePlayer.animInLevelSign(2); } else { moviePlayer.animInLevelSign(1); }; SoundManager.playLevelEnd(); Communicator.sendPlayData2(15, currentTick, coreGame.getTime(), coreGame.getScore()); Communicator.gameEnd(coreGame.getScore()); ghState = STATE_GAME_OVER; _local4 = (7 * level); if (_local4 > 56){ _local4 = 56; }; blingStars.init(_local4); }; break; case STATE_GAME_OVER: moviePlayer.setGameEndsIn((GAME_ENDS_IN_TICKS - tickCounter)); if (tickCounter == 20){ SoundManager.playEndLoop(); }; if ((((tickCounter == GAME_ENDS_IN_TICKS)) || ((((tickCounter >= 30)) && (input.mouseIsPressed))))){ Communicator.sendPlayData2(17, currentTick, coreGame.getTime(), coreGame.getScore()); Communicator.gameQuit(); ghState = STATE_END; blingStars.inactivateAll(); }; blingStars.tick(); break; case STATE_GAME_OVER_FREE: moviePlayer.setGameEndsIn((GAME_ENDS_IN_TICKS - tickCounter)); if (tickCounter == 20){ SoundManager.playEndLoop(); }; if ((((tickCounter == GAME_ENDS_IN_TICKS)) || ((((tickCounter >= 30)) && (input.mouseIsPressed))))){ Communicator.sendPlayData2(17, currentTick, coreGame.getTime(), coreGame.getScore()); Communicator.gameQuit(); ghState = STATE_END; blingStars.inactivateAll(); }; blingStars.tick(); break; case STATE_END: break; }; moviePlayer.tick(); logoPlayer2.tick(); tickCounter++; tickCounter2++; } public function render(_arg1:Number):void{ switch (ghState){ case STATE_START: break; case STATE_PAUSE: break; case INIT_GAME: break; case PRE_LEVEL: coreGame.render(_arg1); break; case NEXT_LEVEL: coreGame.render(_arg1); blingStars.render(); break; case LEVEL_INTRO: coreGame.render(_arg1); blingStars.render(); break; case STATE_PLAY: coreGame.render(_arg1); break; case STATE_SCRAMBLE: coreGame.render(_arg1); break; case END_LEVEL: coreGame.render(_arg1); break; case SHOW_LEVEL_SIGN: coreGame.render(_arg1); blingStars.render(); break; case STATE_TIMESUP: coreGame.render(_arg1); break; case STATE_GAME_OVER: blingStars.render(); break; case STATE_GAME_OVER_FREE: blingStars.render(); break; case STATE_END: blingStars.render(); break; }; moviePlayer.render(_arg1); logoPlayer2.render(_arg1); } public function initGame(){ ghState = INIT_GAME; } public function startGame(){ gameStarted = true; ghState = PRE_LEVEL; Communicator.sendPlayData2(10, currentTick, coreGame.getTime(), coreGame.getScore()); Communicator.gameStarted(); SoundManager.stopIntroLoop(); SoundManager.playGameLoop(); } public function gameIsPaused():Boolean{ if (ghState == STATE_PAUSE){ return (true); }; return (false); } public function tryToExitGame(){ Communicator.sendPlayData(40, currentTick, coreGame.getTime()); coreGame.tryToExitGame(); } public function messageReciver(_arg1:String, _arg2:InfoData){ if (_arg1 == "level_finished"){ onLevelFinished(); } else { if (_arg1 == "level_ready"){ onLevelReady(); } else { if (_arg1 == "finish_game"){ onFinishGame(); } else { if (_arg1 == "exit_game"){ onExitGame(); } else { if (_arg1 == "little_time_left"){ onLittleTimeLeft(); } else { if (_arg1 == "scrambling"){ onScrambling(); } else { if (_arg1 == "demo_finish_game"){ onDemoFinishGame(); }; }; }; }; }; }; }; } private function onLevelFinished(){ tickCounter = 0; normalGameLoopVolume = false; SoundManager.stopTimeOutLoop(); coreGame.initEndLevelAnim(); Communicator.sendPlayData2(12, currentTick, coreGame.getTime(), coreGame.getScore()); endLevelCounter = 0; ghState = END_LEVEL; } private function onLevelReady(){ Communicator.sendPlayData2(11, currentTick, coreGame.getTime(), level); ghState = STATE_PLAY; } private function onFinishGame(){ moviePlayer.showTimesup(); SoundManager.playTimeSign(); coreGame.gameGUI.hideMiddleLedTime(); var _local1:int = coreGame.getScore(); moviePlayer.setLevelSignScore(_local1, 0, _local1); moviePlayer.setGameEnds(); tickCounter = 0; ghState = STATE_TIMESUP; SoundManager.stopGameLoop(); SoundManager.stopTimeOutLoop(); } private function onDemoFinishGame(){ var _local1:int = coreGame.getScore(); moviePlayer.setLevelSignScore(_local1, 0, _local1); moviePlayer.setGameEnds(); tickCounter = 0; SoundManager.stopGameLoop(); SoundManager.stopTimeOutLoop(); coreGame.tick(currentTick); currentTick++; tickCounter = 0; if (level >= 4){ moviePlayer.animInLevelSign(2); } else { moviePlayer.animInLevelSign(1); }; moviePlayer.showFreeGameText(); SoundManager.playLevelEnd(); Communicator.sendPlayData2(15, currentTick, coreGame.getTime(), coreGame.getScore()); Communicator.gameEnd(coreGame.getScore()); ghState = STATE_GAME_OVER_FREE; var _local2:int = (7 * level); if (_local2 > 56){ _local2 = 56; }; blingStars.init(_local2); } private function onExitGame(){ tickCounter = 0; moviePlayer.animInLevelSign(3); SoundManager.stopGameLoop(); SoundManager.stopTimeOutLoop(); SoundManager.playLevelEnd(); var _local1:int = coreGame.getScore(); moviePlayer.setLevelSignScore(_local1, 0, _local1); moviePlayer.setGameEnds(); Communicator.sendPlayData2(16, currentTick, coreGame.getTime(), coreGame.getScore()); Communicator.gameEnd(coreGame.getScore()); ghState = STATE_GAME_OVER; var _local2:int = (7 * level); if (_local2 > 56){ _local2 = 56; }; blingStars.init(_local2); } private function onLittleTimeLeft(){ SoundManager.playTimeOutLoop(); } private function onScrambling(){ moviePlayer.showScramble(); coreGame.gameGUI.hideMiddleLedTime(); tickCounter = 0; ghState = STATE_SCRAMBLE; SoundManager.stopTimeOutLoop(); SoundManager.playNoMoreMoves(); Communicator.sendPlayData(19, currentTick, coreGame.getTime()); } private function scrambleButton(){ if (Communicator.isRelaxGame() == false){ if ((((((((((input.xMouse >= 592)) && ((input.xMouse <= 654)))) && ((input.yMouse >= 324)))) && ((input.yMouse <= 385)))) && (input.mouseIsPressed))){ moviePlayer.scrambleButtonPressed(); if (ghState == STATE_PLAY){ coreGame.scramble(); }; }; }; } public function soundOff(){ SoundManager.soundOff(); } public function soundOn(){ SoundManager.soundOn(); if ((((((((ghState == STATE_TIMESUP)) || ((ghState == STATE_GAME_OVER)))) || ((ghState == STATE_GAME_OVER_FREE)))) || ((ghState == STATE_END)))){ SoundManager.playEndLoop(); } else { SoundManager.playGameLoop(); if (coreGame.ledsAreJumping()){ SoundManager.playTimeOutLoop(); }; }; } private function nextLevel(){ Communicator.sendPlayData(13, currentTick, coreGame.getTime()); moviePlayer.animOutLevelSign(); tickCounter = 0; ghState = NEXT_LEVEL; blingStars.stopGenerate(); } } }//package com.king.twistmesilly
Section 12
//Global (com.king.twistmesilly.Global) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class Global { public static var defaultDisplayObject:MovieClip; public static var gameHolder:MovieClip; public static var playFieldClip0:MovieClip; public static var playFieldClip1:MovieClip; public static var playFieldClip2:MovieClip; public static var playFieldClip3:MovieClip; public static function CreateClips(){ gameHolder = defaultDisplayObject.game_holder_mc; playFieldClip1 = new MovieClip(); gameHolder.addChild(playFieldClip1); playFieldClip0 = new MovieClip(); gameHolder.addChild(playFieldClip0); playFieldClip2 = new MovieClip(); gameHolder.addChild(playFieldClip2); playFieldClip3 = new MovieClip(); gameHolder.addChild(playFieldClip3); } } }//package com.king.twistmesilly
Section 13
//GraphicBrick (com.king.twistmesilly.GraphicBrick) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class GraphicBrick { public var clip:MovieClip; private var showClip:Boolean; public var posX:int; public var posY:int; public var offsetY:int; public var rows:int; private var horizontalOrientation:Boolean; public var toBeRemoved:Boolean; private var state:int; private var fading:Boolean; private var scale:Number; private var fadingFrameCounter:int; private var rotationAngle:Number; private var rotationDeltaAngle:Number; private var rotationDeltaAngle2:Number; private var rotationAngle2:Number; private var oldRotationAngle:Number;// = 0 private var color:int; private var lightsFrame:int; private var mouseOverFrame:int; private var mouseOverBrick:Boolean; private var specialFrame:int; private var specialEndFrame:int; private var lightFrame:int; private var turnOn:Boolean; private var turnOff:Boolean; private var lightOffFrame:int; private var lightOnFrame:int; private var lightState:int; private var lightningFrame:int; private var lightningLeft:Boolean; private var lightningRight:Boolean; private var lightningCrossUp:Boolean; private var lightningCrossDown:Boolean; private var crossType:Boolean; private var showSpecialBomb:Boolean; private var showSpecialSidewayBlast:Boolean; private var showSpecialColorBlast:Boolean; private var instanceNr:int; private var iFloatY:IFloat; private var showHint:Boolean; private var hintFrame:int; private var forceRender:Boolean;// = false private var forceRenderValue:Number;// = 1 private static var OFFSET_X:int = 100; private static var OFFSET_Y:int = 100; public static var FADING_FRAMES:int = 15; private static var ROTATION_FRAMES:int = Brick.SWITCHING_FRAMES; private static var STATE_NORMAL:int = 0; private static var STATE_ROTATE:int = 1; public static var MOVSE_OVER_FRAMES:int = 32; public static var SPECIAL_BOMB_END_FRAME:int = 9; public static var SPECIAL_SIDEWAY_END_FRAME:int = 17; public static var SPECIAL_COLOR_BLAST_END_FRAME:int = 20; public static var RED_LIGHTS_OFF:int = 21; public static var RED_LIGHTS_ON:int = 25; public static var GREEN_LIGHTS_OFF:int = 11; public static var GREEN_LIGHTS_ON:int = 15; public static var BLUE_LIGHTS_OFF:int = 41; public static var BLUE_LIGHTS_ON:int = 45; public static var CERISE_LIGHTS_OFF:int = 31; public static var CERISE_LIGHTS_ON:int = 35; public static var MULTI_COLOR_LIGHTS_OFF:int = 1; public static var MULTI_COLOR_LIGHTS_ON:int = 5; public static var LIGHT_STATE_TURN_ON = 0; public static var LIGHT_STATE_TURN_OFF = 1; private static var nrGraphicBricks:int = 0; function GraphicBrick(){ crossType = false; this.clip = new BrickC(); clip.visible = false; clip.cacheAsBitmap = true; clip.lights_mc.cacheAsBitmap = true; clip.mouse_over_mc.cacheAsBitmap = true; clip.lights_mc.cacheAsBitmap = true; clip.special_mc.cacheAsBitmap = true; show(); posX = 0; posY = 0; offsetY = 0; toBeRemoved = false; scale = 1; setHorizontal(); fading = false; state = STATE_NORMAL; nrGraphicBricks++; iFloatY = new IFloat(0); instanceNr = nrGraphicBricks; showHint = false; } public function init(_arg1:int){ this.rows = _arg1; mouseOverFrame = 1; specialFrame = 1; lightningFrame = 1; hideMouseOver(); turnOn = false; turnOff = false; lightsOff(); hideLightningLeft(); hideLightningRight(); hideCrossLightningUp(); hideCrossLightningDown(); showSpecialBomb = false; showSpecialSidewayBlast = false; showSpecialColorBlast = false; lightState = LIGHT_STATE_TURN_OFF; showHint = false; } public function addToDisplay(){ Global.playFieldClip1.addChild(clip); } public function onTop(){ Global.playFieldClip1.setChildIndex(clip, (nrGraphicBricks - 1)); } public function tick(){ if (fading){ scale = (1 - (fadingFrameCounter / (FADING_FRAMES * 1))); if (fadingFrameCounter == FADING_FRAMES){ hide(); toBeRemoved = true; }; fadingFrameCounter++; return; }; switch (state){ case STATE_NORMAL: break; case STATE_ROTATE: rotationAngle = (rotationAngle + rotationDeltaAngle); rotationAngle2 = (rotationAngle2 + rotationDeltaAngle2); if (rotationAngle >= 0){ rotationAngle = 0; horizontalOrientation = true; state = STATE_NORMAL; } else { if (rotationAngle <= -90){ rotationAngle = -90; horizontalOrientation = false; state = STATE_NORMAL; }; }; if (rotationAngle2 >= 0){ rotationAngle2 = 0; } else { if (rotationAngle2 <= -90){ rotationAngle2 = -90; }; }; break; }; mouseOverFrame = (mouseOverFrame + 1); if (mouseOverFrame > MOVSE_OVER_FRAMES){ mouseOverFrame = 1; }; switch (lightState){ case LIGHT_STATE_TURN_ON: lightFrame = (lightFrame + 1); if (lightFrame > lightOnFrame){ lightFrame = lightOnFrame; }; break; case LIGHT_STATE_TURN_OFF: lightFrame = (lightFrame - 1); if (lightFrame < lightOffFrame){ lightFrame = lightOffFrame; }; break; }; lightningFrame = (lightningFrame + 1); if (lightningFrame > 49){ lightningFrame = 1; }; lightningFrame = 1; specialFrame = (specialFrame + 1); if (specialFrame > specialEndFrame){ specialFrame = 1; }; if (showHint){ hintFrame++; if (hintFrame > 30){ hintFrame = 1; }; }; iFloatY.set(posY); } public function initRender(){ clip.visible = false; clip.scaleX = scale; clip.scaleY = scale; clip.sidewayblast_mc.visible = false; clip.special_mc.colourbomb_green_mc.visible = false; clip.special_mc.colourbomb_red_mc.visible = false; clip.special_mc.colourbomb_blue_mc.visible = false; clip.special_mc.colourbomb_cerise_mc.visible = false; clip.special_mc.sparkle_mc.visible = false; clip.mouse_over_mc.visible = false; clip.mouse_over_mc.gotoAndStop(1); clip.lights_mc.gotoAndStop(lightFrame); if (clip.lights_mc.left_lightning_mc){ clip.lights_mc.left_lightning_mc.visible = false; clip.lights_mc.left_lightning_mc.gotoAndStop(1); }; if (clip.lights_mc.right_lightning_mc){ clip.lights_mc.right_lightning_mc.visible = false; clip.lights_mc.right_lightning_mc.gotoAndStop(1); }; if (clip.lights_mc.up_lightning_mc){ clip.lights_mc.up_lightning_mc.visible = false; clip.lights_mc.up_lightning_mc.gotoAndStop(1); }; if (clip.lights_mc.down_lightning_mc){ clip.lights_mc.down_lightning_mc.visible = false; clip.lights_mc.down_lightning_mc.gotoAndStop(1); }; clip.special_mc.sparkle_mc.visible = false; clip.special_mc.sparkle_mc.gotoAndStop(1); clip.sidewayblast_mc.visible = true; clip.sidewayblast_mc.gotoAndStop(1); clip.special_mc.colourbomb_red_mc.visible = true; clip.special_mc.colourbomb_red_mc.gotoAndStop(1); clip.special_mc.colourbomb_green_mc.visible = true; clip.special_mc.colourbomb_green_mc.gotoAndStop(1); clip.special_mc.colourbomb_blue_mc.visible = true; clip.special_mc.colourbomb_blue_mc.gotoAndStop(1); clip.special_mc.colourbomb_cerise_mc.visible = true; clip.special_mc.colourbomb_cerise_mc.gotoAndStop(1); clip.special_mc.colourbomb_cerise_mc.visible = true; clip.special_mc.colourbomb_cerise_mc.gotoAndStop(1); clip.card2_mc.gotoAndStop(1); clip.hint_mc.visible = false; clip.hint_mc.gotoAndStop(1); clip.x = posX; clip.y = posY; } public function render(_arg1:Number){ if (((showClip) && ((posY > -50)))){ clip.visible = true; } else { clip.visible = false; }; clip.scaleX = scale; clip.scaleY = scale; clip.sidewayblast_mc.visible = false; clip.special_mc.colourbomb_green_mc.visible = false; clip.special_mc.colourbomb_red_mc.visible = false; clip.special_mc.colourbomb_blue_mc.visible = false; clip.special_mc.colourbomb_cerise_mc.visible = false; clip.special_mc.sparkle_mc.visible = false; clip.mouse_over_mc.visible = mouseOverBrick; if (mouseOverBrick){ clip.mouse_over_mc.gotoAndStop(mouseOverFrame); }; clip.lights_mc.gotoAndStop(lightFrame); if (clip.lights_mc.left_lightning_mc){ if (lightningLeft){ clip.lights_mc.left_lightning_mc.visible = true; clip.lights_mc.left_lightning_mc.gotoAndStop(lightningFrame); } else { clip.lights_mc.left_lightning_mc.visible = false; clip.lights_mc.left_lightning_mc.gotoAndStop(1); }; }; if (clip.lights_mc.right_lightning_mc){ if (lightningRight){ clip.lights_mc.right_lightning_mc.visible = true; clip.lights_mc.right_lightning_mc.gotoAndStop(lightningFrame); } else { clip.lights_mc.right_lightning_mc.visible = false; clip.lights_mc.right_lightning_mc.gotoAndStop(1); }; }; if (clip.lights_mc.up_lightning_mc){ if (lightningCrossUp){ clip.lights_mc.up_lightning_mc.visible = true; clip.lights_mc.up_lightning_mc.gotoAndStop(lightningFrame); } else { clip.lights_mc.up_lightning_mc.visible = false; clip.lights_mc.up_lightning_mc.gotoAndStop(1); }; }; if (clip.lights_mc.down_lightning_mc){ if (lightningCrossDown){ clip.lights_mc.down_lightning_mc.visible = true; clip.lights_mc.down_lightning_mc.gotoAndStop(lightningFrame); } else { clip.lights_mc.down_lightning_mc.visible = false; clip.lights_mc.down_lightning_mc.gotoAndStop(1); }; }; if (showSpecialBomb){ clip.special_mc.sparkle_mc.visible = true; clip.special_mc.sparkle_mc.gotoAndStop(specialFrame); } else { clip.special_mc.sparkle_mc.gotoAndStop(1); }; if (showSpecialSidewayBlast){ clip.sidewayblast_mc.visible = true; clip.sidewayblast_mc.gotoAndStop(specialFrame); } else { clip.sidewayblast_mc.gotoAndStop(1); }; if (showSpecialColorBlast){ switch (color){ case Brick.COLOR_RED: clip.special_mc.colourbomb_red_mc.visible = true; clip.special_mc.colourbomb_red_mc.gotoAndStop(specialFrame); break; case Brick.COLOR_GREEN: clip.special_mc.colourbomb_green_mc.visible = true; clip.special_mc.colourbomb_green_mc.gotoAndStop(specialFrame); break; case Brick.COLOR_BLUE: clip.special_mc.colourbomb_blue_mc.visible = true; clip.special_mc.colourbomb_blue_mc.gotoAndStop(specialFrame); break; case Brick.COLOR_CERISE: clip.special_mc.colourbomb_cerise_mc.visible = true; clip.special_mc.colourbomb_cerise_mc.gotoAndStop(specialFrame); break; case Brick.MULTI_COLOR: clip.special_mc.colourbomb_cerise_mc.visible = true; clip.special_mc.colourbomb_cerise_mc.gotoAndStop(specialFrame); break; }; } else { clip.special_mc.colourbomb_red_mc.gotoAndStop(1); clip.special_mc.colourbomb_green_mc.gotoAndStop(1); clip.special_mc.colourbomb_blue_mc.gotoAndStop(1); clip.special_mc.colourbomb_cerise_mc.gotoAndStop(1); }; if (crossType){ clip.card2_mc.gotoAndStop(2); } else { clip.card2_mc.gotoAndStop(1); }; clip.hint_mc.visible = showHint; clip.hint_mc.gotoAndStop(hintFrame); clip.x = posX; clip.y = iFloatY.get(_arg1); if (rotationAngle != oldRotationAngle){ clip.lights_mc.rotation = rotationAngle; clip.special_mc.rotation = rotationAngle; clip.card2_mc.rotation = rotationAngle; clip.card1_mc.rotation = rotationAngle2; }; oldRotationAngle = rotationAngle; if (forceRender){ forceRender = false; if (forceRenderValue == 1){ forceRenderValue = 0.99; } else { forceRenderValue = 1; }; clip.lights_mc.alpha = forceRenderValue; }; } public function doForcedRender():void{ forceRender = true; } public function turnOnShowHint(){ if (showHint == false){ hintFrame = int((Math.random() * 30)); showHint = true; }; } public function turnOffShowHint(){ showHint = false; } public function lightsOn(){ lightFrame = lightOnFrame; } public function lightsOff(){ lightFrame = lightOffFrame; } public function turnOnLights(){ lightState = LIGHT_STATE_TURN_ON; } public function turnOffLights(){ lightState = LIGHT_STATE_TURN_OFF; } public function showLightningLeft(){ lightningLeft = true; } public function hideLightningLeft(){ lightningLeft = false; } public function showLightningRight(){ lightningRight = true; } public function hideLightningRight(){ lightningRight = false; } public function showCrossLightningUp(){ lightningCrossUp = true; } public function hideCrossLightningUp(){ lightningCrossUp = false; } public function showCrossLightningDown(){ lightningCrossDown = true; } public function hideCrossLightningDown(){ lightningCrossDown = false; } public function setPos(_arg1:int, _arg2:int){ posX = (CoreGame.BOARD_HORIZONTAL_OFFSET + (50 * _arg1)); posY = (((CoreGame.BOARD_VERTICAL_OFFSET + (50 * _arg2)) - (rows * 50)) + offsetY); } public function getPosX():int{ return (posX); } public function getPosY():int{ return (posY); } public function copyPos(_arg1:GraphicBrick){ posX = _arg1.posX; posY = _arg1.posY; } public function setOffsetY(_arg1:int){ offsetY = int(((50 * _arg1) * 0.01)); } public function setHorizontal(){ rotationAngle = 0; rotationAngle2 = rotationAngle; horizontalOrientation = true; state = STATE_NORMAL; } public function setVertical(){ rotationAngle = -90; rotationAngle2 = rotationAngle; horizontalOrientation = false; state = STATE_NORMAL; } public function rotateToHorizontal(){ rotationDeltaAngle = (90 / ROTATION_FRAMES); rotationDeltaAngle2 = (90 / (ROTATION_FRAMES - 1)); state = STATE_ROTATE; } public function rotateToVertical(){ rotationDeltaAngle = (-90 / ROTATION_FRAMES); rotationDeltaAngle2 = (-90 / (ROTATION_FRAMES - 1)); state = STATE_ROTATE; } public function setColor(_arg1:int){ this.color = _arg1; lightsFrame = (_arg1 + 1); switch (_arg1){ case Brick.COLOR_RED: lightOffFrame = RED_LIGHTS_OFF; lightOnFrame = RED_LIGHTS_ON; break; case Brick.COLOR_GREEN: lightOffFrame = GREEN_LIGHTS_OFF; lightOnFrame = GREEN_LIGHTS_ON; break; case Brick.COLOR_BLUE: lightOffFrame = BLUE_LIGHTS_OFF; lightOnFrame = BLUE_LIGHTS_ON; break; case Brick.COLOR_CERISE: lightOffFrame = CERISE_LIGHTS_OFF; lightOnFrame = CERISE_LIGHTS_ON; break; case Brick.MULTI_COLOR: lightOffFrame = MULTI_COLOR_LIGHTS_OFF; lightOnFrame = MULTI_COLOR_LIGHTS_ON; break; }; if (crossType){ lightOffFrame = (lightOffFrame + 5); lightOnFrame = (lightOnFrame + 5); }; lightsOff(); } public function setCross(_arg1:Boolean){ crossType = _arg1; } public function setSpecial(_arg1:int){ switch (_arg1){ case Brick.SPECIAL_BOMB: specialFrame = 1; specialEndFrame = SPECIAL_BOMB_END_FRAME; showSpecialBomb = true; break; case Brick.SPECIAL_SIDEWAY_BLAST: specialFrame = 1; specialEndFrame = SPECIAL_SIDEWAY_END_FRAME; showSpecialSidewayBlast = true; break; case Brick.SPECIAL_COLOR_BLAST: specialFrame = 1; specialEndFrame = SPECIAL_COLOR_BLAST_END_FRAME; showSpecialColorBlast = true; break; default: showSpecialBomb = false; showSpecialSidewayBlast = false; showSpecialColorBlast = false; break; }; } public function show(){ showClip = true; } public function hide(){ showClip = false; } public function showMouseOver(){ mouseOverBrick = true; } public function hideMouseOver(){ mouseOverBrick = false; } public function startFading(){ fadingFrameCounter = 1; fading = true; } public function deleting(){ if (Global.defaultDisplayObject.contains(clip)){ Global.playFieldClip1.removeChild(clip); }; clip = null; } } }//package com.king.twistmesilly
Section 14
//IFloat (com.king.twistmesilly.IFloat) package com.king.twistmesilly { public class IFloat { public var ivalue:Number; private var lastValue:Number; private static var alpha:Number; public function IFloat(_arg1:Number){ ivalue = _arg1; lastValue = _arg1; alpha = 0; } public function setTo(_arg1:Number){ ivalue = _arg1; lastValue = _arg1; } public function set(_arg1:Number){ lastValue = ivalue; ivalue = _arg1; } public function get(_arg1:Number){ return ((lastValue + ((ivalue - lastValue) * _arg1))); } public function get value():Number{ return ((lastValue + ((ivalue - lastValue) * alpha))); } public function set value(_arg1:Number){ ivalue = _arg1; lastValue = _arg1; } public static function setAlpha(_arg1:Number){ alpha = _arg1; } } }//package com.king.twistmesilly
Section 15
//InfoData (com.king.twistmesilly.InfoData) package com.king.twistmesilly { class InfoData { public var data1:int; public var data2:int; public var data3:int; public var data4:int; public var data5:int; public var data6:int; public var graphicBrick:GraphicBrick; } }//package com.king.twistmesilly
Section 16
//Input (com.king.twistmesilly.Input) package com.king.twistmesilly { class Input { public var xMouse:int; public var yMouse:int; public var mouseIsPressed:Boolean; public var mouseIsReleased:Boolean; public function init(){ reset(); } public function reset(){ mouseIsPressed = false; mouseIsReleased = false; } public function setMousePos(_arg1:Number, _arg2:Number){ xMouse = _arg1; yMouse = _arg2; } public function mousePressed(){ mouseIsPressed = true; } public function mouseReleased(){ mouseIsReleased = true; } public function printInput(){ } } }//package com.king.twistmesilly
Section 17
//Integer64 (com.king.twistmesilly.Integer64) package com.king.twistmesilly { import com.king.twistmesilly.*; class Integer64 { private var p:Array; private var r:Array; private var s:Array; function Integer64(_arg1){ r = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]; p = [0, 0, 0, 0, 0]; s = [0, 0, 0]; if (_arg1){ merge(_arg1); }; } public function init(_arg1:Integer64):void{ var _local2:* = 0; while (_local2 < p.length) { p[_local2] = _arg1.p[_local2]; _local2++; }; } public function init32(_arg1:Number):void{ p[0] = (_arg1 & 32767); _arg1 = (_arg1 >>> 15); p[1] = (_arg1 & 32767); _arg1 = (_arg1 >>> 15); p[2] = (_arg1 & 3); p[3] = 0; p[4] = 0; } public function get lsb():Number{ return (((p[0] | (p[1] << 15)) | ((p[2] & 3) << 30))); } public function get msb():Number{ return (((((p[2] >> 2) | ((p[3] << 15) >> 2)) | ((p[4] << (15 * 2)) >> 2)) & 2147483647)); } public function binaryShiftLeft(_arg1:Number):void{ var _local2:* = 0; while (_local2 < _arg1) { shl(); _local2++; }; } public function binaryShiftRight(_arg1:Number):void{ var _local5:*; var _local6:*; var _local2:* = ((_arg1 / 15) >> 0); var _local3:* = (_arg1 - (_local2 * 15)); var _local4:* = (p.length - 1); while (_local4 > 0) { _local5 = 0; while (_local5 < _local2) { p[_local5] = p[(_local5 + 1)]; _local5++; }; var _temp1 = _local4; _local4 = (_local4 - 1); var _local7 = _temp1; p[_local7] = 0; }; if (_local3 > 0){ _local6 = 0; while (_local6 < _local3) { shr(); _local6++; }; }; } public function binaryNot(_arg1:Integer64):void{ p[0] = (p[0] ^ _arg1.p[0]); p[1] = (p[1] ^ _arg1.p[1]); p[2] = (p[2] ^ _arg1.p[2]); p[3] = (p[3] ^ _arg1.p[3]); p[4] = (p[4] ^ _arg1.p[4]); } public function add64(_arg1:Integer64):void{ var _local2:* = 0; var _local3:* = 1; var _local4:* = 0; while ((((_local3 < p.length)) && (!((_arg1.p[_local4] == 0))))) { _local3++; }; _local4 = 0; while (_local4 < _local3) { _local2 = (_local2 + (p[_local4] + _arg1.p[_local4])); p[_local4] = (_local2 & 32767); _local2 = (_local2 >> 15); _local4++; }; } public function add32(_arg1:Number):void{ var _local2:* = 0; var _local3:* = (_arg1 & 32767); _arg1 = (_arg1 >> 15); var _local4:* = (_arg1 & 32767); _arg1 = (_arg1 >> 15); var _local5:* = (_arg1 & 3); _local2 = (_local2 + (p[0] + _local3)); p[0] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (p[1] + _local4)); p[1] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (p[2] + _local5)); p[2] = (_local2 & 32767); } public function mulu32(_arg1:Number):void{ var _local4:*; var _local2:* = 0; s[0] = (_arg1 & 32767); _arg1 = (_arg1 >>> 15); s[1] = (_arg1 & 32767); _arg1 = (_arg1 >>> 15); s[2] = (_arg1 & 3); var _local3:* = 0; while (_local3 < 3) { _local4 = s[_local3]; _local2 = (_local4 * p[0]); r[_local3][0] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (_local4 * p[1])); r[_local3][1] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (_local4 * p[2])); r[_local3][2] = (_local2 & 3); _local3++; }; _local2 = r[0][0]; p[0] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (r[0][1] + r[1][0])); p[1] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + ((r[0][2] + r[1][1]) + r[2][0])); p[2] = (_local2 & 3); p[3] = 0; p[4] = 0; } public function mul64(_arg1:Integer64):void{ var _local4:*; var _local2:* = 0; var _local3:* = 0; while (_local3 < 5) { _local4 = _arg1.p[_local3]; _local2 = (_local4 * p[0]); r[_local3][0] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (_local4 * p[1])); r[_local3][1] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (_local4 * p[2])); r[_local3][2] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (_local4 * p[3])); r[_local3][3] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (_local4 * p[4])); r[_local3][4] = (_local2 & 32767); _local3++; }; _local2 = r[0][0]; p[0] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (r[0][1] + r[1][0])); p[1] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + ((r[0][2] + r[1][1]) + r[2][0])); p[2] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + (((r[0][3] + r[1][2]) + r[2][1]) + r[3][0])); p[3] = (_local2 & 32767); _local2 = (_local2 >> 15); _local2 = (_local2 + ((((r[0][4] + r[1][3]) + r[2][2]) + r[3][1]) + r[4][0])); p[4] = (_local2 & 7); } public function mul32(_arg1:Number):void{ mul64(new Integer64(_arg1)); } private function merge(_arg1:Number):Number{ var _local2:* = 0; while (_local2 < 3) { p[_local2] = (p[_local2] + (_arg1 & 32767)); _arg1 = (_arg1 >>> 15); _local2++; }; return (_arg1); } private function shl():void{ var _local1:* = 0; var _local2:* = 0; var _local3:* = 0; var _local4:* = p.length; while (_local3 < _local4) { _local1 = ((p[_local3] & 0x4000) >> 14); p[_local3] = (p[_local3] << 1); p[_local3] = ((p[_local3] | _local2) & 32767); _local3++; _local2 = _local1; }; } private function shr():void{ var _local1:* = 0; var _local2:* = 0; var _local3:* = (p.length - 1); while (_local3 >= 0) { _local1 = ((p[_local3] & 1) << 14); p[_local3] = (p[_local3] >> 1); p[_local3] = ((p[_local3] | _local2) & 32767); _local3--; _local2 = _local1; }; } } }//package com.king.twistmesilly
Section 18
//IntroPlayer (com.king.twistmesilly.IntroPlayer) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class IntroPlayer { private var clip:MovieClip; private var introVisible:Boolean; private var introFrame:int; private var introState:int; private var logoPlayer:LogoPlayer; private var introGameStartsIn:String; public static var STAR_BLINK_CHANCE:int = 150; public static var PLAY:int = 0; public static var HIDE:int = 1; function IntroPlayer(_arg1:MovieClip){ this.clip = _arg1; introVisible = true; introFrame = 0; introState = PLAY; introGameStartsIn = ""; logoPlayer = new LogoPlayer(_arg1.intro_mc.IntroLogo_mc); } public function tick(){ switch (introState){ case PLAY: introFrame++; if (introFrame > 600){ introFrame = 1; }; logoPlayer.tick(); break; case HIDE: break; }; } public function render(_arg1:Number){ if (clip.intro_mc){ if (clip.intro_mc.heading1_txt){ if (clip.intro_mc.heading1_txt.text != TextProperties.INTRO_HEADING1){ clip.intro_mc.heading1_txt.text = TextProperties.INTRO_HEADING1; }; }; if (clip.intro_mc.text1_txt){ if (clip.intro_mc.text1_txt.text != TextProperties.INTRO_TEXT1){ clip.intro_mc.text1_txt.text = TextProperties.INTRO_TEXT1; }; }; if (clip.intro_mc.text2_txt){ if (clip.intro_mc.text2_txt.text != TextProperties.INTRO_TEXT2){ clip.intro_mc.text2_txt.text = TextProperties.INTRO_TEXT2; }; }; if (clip.intro_mc.heading2_txt){ if (clip.intro_mc.heading2_txt.text != TextProperties.INTRO_HEADING2){ clip.intro_mc.heading2_txt.text = TextProperties.INTRO_HEADING2; }; }; if (clip.intro_mc.text3_txt){ if (clip.intro_mc.text3_txt.text != TextProperties.INTRO_TEXT3){ clip.intro_mc.text3_txt.text = TextProperties.INTRO_TEXT3; }; }; if (clip.intro_mc.text4_txt){ if (clip.intro_mc.text4_txt.text != TextProperties.INTRO_TEXT4){ clip.intro_mc.text4_txt.text = TextProperties.INTRO_TEXT4; }; }; if (clip.intro_mc.text5_txt){ if (clip.intro_mc.text5_txt.text != TextProperties.INTRO_TEXT5){ clip.intro_mc.text5_txt.text = TextProperties.INTRO_TEXT5; }; }; if (clip.intro_mc.like_this_mc){ if (clip.intro_mc.like_this_mc.like_this_txt.text != TextProperties.INTRO_LIKE_THIS){ clip.intro_mc.like_this_mc.like_this_txt.text = TextProperties.INTRO_LIKE_THIS; }; }; if (clip.intro_mc.game_starts_in_txt.text != introGameStartsIn){ clip.intro_mc.game_starts_in_txt.text = introGameStartsIn; }; if (clip.intro_mc.click_to_start_txt.text != TextProperties.INTRO_CLICK_TO_START){ clip.intro_mc.click_to_start_txt.text = TextProperties.INTRO_CLICK_TO_START; }; clip.intro_mc.visible = introVisible; clip.intro_mc.gotoAndStop(introFrame); logoPlayer.render(_arg1); }; } public function hideIntro(){ introState = HIDE; introVisible = false; } public function setGameStartsIn(_arg1:Number){ var _local2:Number = Math.floor((_arg1 / 25)); if (_local2 < 0){ _local2 = 0; }; var _local3:String = String(_local2); var _local4:String = TextProperties.INTRO_GAME_STARTS_IN; _local4 = _local4.split("[0]").join(_local3); introGameStartsIn = _local4; } } }//package com.king.twistmesilly
Section 19
//LogoPlayer (com.king.twistmesilly.LogoPlayer) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class LogoPlayer { private var clip:MovieClip; private var star1Frame; private var star2Frame; private var star3Frame; private var star1Counter; private var star2Counter; private var star3Counter; private var star1CounterMax; private var star2CounterMax; private var star3CounterMax; public static var STAR_BLINK_CHANCE:int = 150; function LogoPlayer(_arg1:MovieClip){ this.clip = _arg1; initStars(); } public function tick(){ tickStars(); } public function render(_arg1:Number){ renderStars(); } private function initStars(){ star1Counter = 21; star2Counter = 21; star3Counter = 21; star1CounterMax = (Math.round((Math.random() * STAR_BLINK_CHANCE)) + 30); star2CounterMax = (Math.round((Math.random() * STAR_BLINK_CHANCE)) + 30); star3CounterMax = (Math.round((Math.random() * STAR_BLINK_CHANCE)) + 30); star1Frame = star1Counter; star2Frame = star2Counter; star3Frame = star3Counter; } private function tickStars(){ var _local1:int; star1Counter++; if (star1Counter > star1CounterMax){ star1Counter = 1; _local1 = (Math.round((Math.random() * STAR_BLINK_CHANCE)) + 30); star1CounterMax = _local1; }; if (star1Counter <= 21){ star1Frame = star1Counter; }; star2Counter++; if (star2Counter > star2CounterMax){ star2Counter = 1; _local1 = (Math.round((Math.random() * STAR_BLINK_CHANCE)) + 30); star2CounterMax = _local1; }; if (star2Counter <= 21){ star2Frame = star2Counter; }; star3Counter++; if (star3Counter > star3CounterMax){ star3Counter = 1; _local1 = (Math.round((Math.random() * STAR_BLINK_CHANCE)) + 30); star3CounterMax = _local1; }; if (star3Counter <= 21){ star3Frame = star3Counter; }; } private function renderStars(){ if (clip.star1_mc){ clip.star1_mc.gotoAndStop(star1Frame); }; if (clip.star2_mc){ clip.star2_mc.gotoAndStop(star2Frame); }; if (clip.star3_mc){ clip.star3_mc.gotoAndStop(star3Frame); }; } } }//package com.king.twistmesilly
Section 20
//MoviePlayer (com.king.twistmesilly.MoviePlayer) package com.king.twistmesilly { import flash.display.*; import com.king.twistmesilly.*; class MoviePlayer { private var clip:MovieClip; private var levelSignAnimFrame:int; private var levelSignFigureFrame:int; private var levelSignStar1Frame:int; private var levelSignStar2Frame:int; private var animateLevelSignFigure:Boolean; private var levelSignFrame:int; private var levelSignVisible:Boolean; private var levelSignState:int; private var levelExplosinVisible:Boolean; private var levelExplosionFrame:int; private var timesup:Boolean; private var timesupOut:Boolean; private var timesUp:Boolean; private var ledSignFrame:int; private var ledSignInnerFrame:int; private var figure1HappyVisible; private var figure1NeutralVisible; private var figure1SadVisible; private var figure2HappyVisible; private var figure2NeutralVisible; private var figure2SadVisible:Boolean; private var scrambleButtonFrame:int; private var animateScrambleButton:Boolean; private var soundButtonOn:Boolean; private var soundButtonFrame:int; private var turnOff:Boolean; private var turnOffButtonFrame:int; private var levelSignScore:String;// = "" private var levelSingBonus:String;// = "" private var levelSingTotalScore:String;// = "" private var gameEndsIn:String;// = "" private var showFreeGameEnd:Boolean;// = false public static var LEVEL_SIGN_HIDE:int = 0; public static var LEVEL_SIGN_IN:int = 1; public static var LEVEL_SIGN_SHOWING:int = 2; public static var LEVEL_SIGN_OUT:int = 3; function MoviePlayer(_arg1:MovieClip){ this.clip = _arg1; levelSignState = LEVEL_SIGN_HIDE; levelExplosinVisible = false; levelExplosionFrame = 1; timesup = false; timesupOut = false; timesUp = true; ledSignFrame = 1; ledSignInnerFrame = 1; figure1HappyVisible = false; figure1NeutralVisible = false; figure1SadVisible = false; figure2HappyVisible = false; figure2NeutralVisible = false; figure2SadVisible = false; scrambleButtonFrame = 1; animateScrambleButton = false; soundButtonOn = true; soundButtonFrame = 1; turnOff = false; turnOffButtonFrame = 1; } public function tick(){ switch (levelSignState){ case LEVEL_SIGN_HIDE: levelSignVisible = false; levelSignAnimFrame = 1; levelSignFrame = 1; animateLevelSignFigure = false; levelSignFigureFrame = 1; levelSignStar1Frame = 1; levelSignStar2Frame = 3; break; case LEVEL_SIGN_IN: levelSignVisible = true; levelSignAnimFrame++; if (levelSignAnimFrame > 25){ levelSignAnimFrame = 25; }; levelSignFrame++; if (levelSignFrame > 90){ levelSignFrame = 35; }; break; case LEVEL_SIGN_SHOWING: break; case LEVEL_SIGN_OUT: levelSignFrame = 25; levelSignAnimFrame--; if (levelSignAnimFrame < 1){ levelSignFrame = 1; levelSignState = LEVEL_SIGN_HIDE; animateLevelSignFigure = false; }; break; }; if (levelSignVisible){ levelSignStar1Frame++; if (levelSignStar1Frame > 28){ levelSignStar1Frame = 1; }; levelSignStar2Frame++; if (levelSignStar2Frame > 28){ levelSignStar2Frame = 1; }; }; if (animateLevelSignFigure){ levelSignFigureFrame++; if (levelSignFigureFrame > 120){ levelSignFigureFrame = 35; }; }; if (levelExplosinVisible){ levelExplosionFrame++; if (levelExplosionFrame > 21){ levelExplosionFrame = 1; levelExplosinVisible = false; }; }; if (timesup){ ledSignFrame++; if (ledSignFrame > 6){ ledSignFrame = 6; }; ledSignInnerFrame++; if (ledSignInnerFrame > 35){ ledSignInnerFrame = 7; }; } else { if (timesupOut){ ledSignFrame--; ledSignInnerFrame--; if (ledSignInnerFrame < 1){ ledSignInnerFrame = 1; }; if (ledSignFrame < 1){ ledSignFrame = 1; ledSignInnerFrame = 1; timesupOut = false; }; }; }; if (animateScrambleButton){ scrambleButtonFrame++; if (scrambleButtonFrame > 8){ scrambleButtonFrame = 1; animateScrambleButton = false; }; }; if (soundButtonOn){ soundButtonFrame--; if (soundButtonFrame < 1){ soundButtonFrame = 1; }; } else { soundButtonFrame++; if (soundButtonFrame > 5){ soundButtonFrame = 5; }; }; if (turnOff == true){ turnOffButtonFrame++; if (turnOffButtonFrame > 5){ turnOffButtonFrame = 5; }; }; } public function render(_arg1:Number){ if (clip.level_sign_anim_mc.level_sign_mc.text_mc){ if (clip.level_sign_anim_mc.level_sign_mc.text_mc.score_txt.text != levelSignScore){ clip.level_sign_anim_mc.level_sign_mc.text_mc.score_txt.text = levelSignScore; }; if (clip.level_sign_anim_mc.level_sign_mc.text_mc.bonus_txt.text != levelSingBonus){ clip.level_sign_anim_mc.level_sign_mc.text_mc.bonus_txt.text = levelSingBonus; }; if (clip.level_sign_anim_mc.level_sign_mc.text_mc.total_score_txt.text != levelSingTotalScore){ clip.level_sign_anim_mc.level_sign_mc.text_mc.total_score_txt.text = levelSingTotalScore; }; if (clip.level_sign_anim_mc.level_sign_mc.text_mc.heading_txt.text != TextProperties.LEVEL_SIGN_HEADING){ clip.level_sign_anim_mc.level_sign_mc.text_mc.heading_txt.text = TextProperties.LEVEL_SIGN_HEADING; }; if (clip.level_sign_anim_mc.level_sign_mc.text_mc.score_text_txt.text != TextProperties.LEVEL_SIGN_SCORE_TEXT){ clip.level_sign_anim_mc.level_sign_mc.text_mc.score_text_txt.text = TextProperties.LEVEL_SIGN_SCORE_TEXT; }; if (clip.level_sign_anim_mc.level_sign_mc.text_mc.bonus_text_txt.text != TextProperties.LEVEL_SIGN_BONUS_TEXT){ clip.level_sign_anim_mc.level_sign_mc.text_mc.bonus_text_txt.text = TextProperties.LEVEL_SIGN_BONUS_TEXT; }; if (clip.level_sign_anim_mc.level_sign_mc.text_mc.total_score_text_txt.text != TextProperties.LEVEL_SIGN_TOTAL_SCORE_TEXT){ clip.level_sign_anim_mc.level_sign_mc.text_mc.total_score_text_txt.text = TextProperties.LEVEL_SIGN_TOTAL_SCORE_TEXT; }; if (clip.level_sign_anim_mc.level_sign_mc.star1_mc){ clip.level_sign_anim_mc.level_sign_mc.star1_mc.gotoAndStop(levelSignStar1Frame); }; if (clip.level_sign_anim_mc.level_sign_mc.star2_mc){ clip.level_sign_anim_mc.level_sign_mc.star2_mc.gotoAndStop(levelSignStar2Frame); }; if (gameEndsIn != ""){ if (clip.level_sign_anim_mc.level_sign_mc.text_mc.click_text_txt.text != gameEndsIn){ clip.level_sign_anim_mc.level_sign_mc.text_mc.click_text_txt.text = gameEndsIn; }; } else { if (clip.level_sign_anim_mc.level_sign_mc.text_mc.click_text_txt.text != TextProperties.LEVEL_SIGN_CLICK_TEXT){ clip.level_sign_anim_mc.level_sign_mc.text_mc.click_text_txt.text = TextProperties.LEVEL_SIGN_CLICK_TEXT; }; }; }; clip.level_sign_anim_mc.visible = levelSignVisible; clip.level_sign_anim_mc.gotoAndStop(levelSignAnimFrame); clip.level_sign_anim_mc.level_sign_mc.gotoAndStop(levelSignFrame); clip.level_sign_anim_mc.level_sign_mc.Figure1Glad_mc.visible = figure1HappyVisible; clip.level_sign_anim_mc.level_sign_mc.Figure1Neutral_mc.visible = figure1NeutralVisible; clip.level_sign_anim_mc.level_sign_mc.Figure1Sad_mc.visible = figure1SadVisible; clip.level_sign_anim_mc.level_sign_mc.Figure2Glad_mc.visible = figure2HappyVisible; clip.level_sign_anim_mc.level_sign_mc.Figure2Neutral_mc.visible = figure2NeutralVisible; clip.level_sign_anim_mc.level_sign_mc.Figure2Sad_mc.visible = figure2SadVisible; if (figure1HappyVisible){ clip.level_sign_anim_mc.level_sign_mc.Figure1Glad_mc.gotoAndStop(levelSignFigureFrame); } else { if (figure1NeutralVisible){ clip.level_sign_anim_mc.level_sign_mc.Figure1Neutral_mc.gotoAndStop(levelSignFigureFrame); } else { if (figure1SadVisible){ clip.level_sign_anim_mc.level_sign_mc.Figure1Sad_mc.gotoAndStop(levelSignFigureFrame); } else { if (figure2HappyVisible){ clip.level_sign_anim_mc.level_sign_mc.Figure2Glad_mc.gotoAndStop(levelSignFigureFrame); } else { if (figure2NeutralVisible){ clip.level_sign_anim_mc.level_sign_mc.Figure2Neutral_mc.gotoAndStop(levelSignFigureFrame); } else { if (figure2SadVisible){ clip.level_sign_anim_mc.level_sign_mc.Figure2Sad_mc.gotoAndStop(levelSignFigureFrame); }; }; }; }; }; }; if (clip.LevelByteExplosion_mc){ clip.LevelByteExplosion_mc.visible = levelExplosinVisible; clip.LevelByteExplosion_mc.gotoAndStop(levelExplosionFrame); }; if (clip.led_sign_mc){ if (((timesup) || (timesupOut))){ clip.led_sign_mc.gotoAndStop(ledSignFrame); clip.led_sign_mc.visible = true; clip.led_sign_mc.sign_mc.gotoAndStop(ledSignInnerFrame); } else { clip.led_sign_mc.gotoAndStop(1); clip.led_sign_mc.visible = false; }; if (clip.led_sign_mc.sign_mc.timesup_mc){ if (timesUp){ clip.led_sign_mc.sign_mc.timesup_mc.text_txt.text = TextProperties.TIMES_UP; } else { clip.led_sign_mc.sign_mc.timesup_mc.text_txt.text = TextProperties.SCRAMBLE; }; }; }; clip.scramble_mc.gotoAndStop(scrambleButtonFrame); clip.soundButton_mc.gotoAndStop(soundButtonFrame); clip.exitButton_mc.gotoAndStop(turnOffButtonFrame); if (showFreeGameEnd){ clip.level_sign_anim_mc.level_sign_mc.text_mc.score_txt.text = ""; clip.level_sign_anim_mc.level_sign_mc.text_mc.bonus_txt.text = ""; clip.level_sign_anim_mc.level_sign_mc.text_mc.total_score_txt.text = ""; clip.level_sign_anim_mc.level_sign_mc.text_mc.heading_txt.text = TextProperties.FREE_GAME_TEXT; clip.level_sign_anim_mc.level_sign_mc.text_mc.score_text_txt.text = ""; clip.level_sign_anim_mc.level_sign_mc.text_mc.bonus_text_txt.text = ""; clip.level_sign_anim_mc.level_sign_mc.text_mc.total_score_text_txt.text = ""; clip.level_sign_anim_mc.level_sign_mc.text_mc.line_txt.text = ""; }; } public function animInLevelSign(_arg1:int){ figure1HappyVisible = false; figure1NeutralVisible = false; figure1SadVisible = false; figure2HappyVisible = false; figure2NeutralVisible = false; figure2SadVisible = false; var _local2:int = int((Math.random() * 2)); switch (_arg1){ case 1: if (_local2 == 0){ figure1NeutralVisible = true; } else { figure2NeutralVisible = true; }; break; case 2: if (_local2 == 0){ figure1HappyVisible = true; } else { figure2HappyVisible = true; }; break; case 3: if (_local2 == 0){ figure1SadVisible = true; } else { figure2SadVisible = true; }; break; }; levelSignState = LEVEL_SIGN_IN; levelSignAnimFrame = 1; levelSignFrame = 1; levelSignFigureFrame = 1; animateLevelSignFigure = true; } public function setLevelSignScore(_arg1:int, _arg2:int, _arg3:int){ levelSignScore = String(_arg1); levelSingBonus = String(_arg2); levelSingTotalScore = String(_arg3); } public function animOutLevelSign(){ levelSignState = LEVEL_SIGN_OUT; } public function showLevelExplosion(){ levelExplosionFrame = 0; levelExplosinVisible = true; } public function showTimesup(){ timesUp = true; ledSignFrame = 1; ledSignInnerFrame = 1; timesup = true; } public function hideTimesup(){ timesup = false; timesupOut = true; ledSignInnerFrame = 7; } public function showScramble(){ timesUp = false; ledSignFrame = 1; ledSignInnerFrame = 1; timesup = true; } public function hideScramble(){ timesup = false; timesupOut = true; ledSignInnerFrame = 7; } public function scrambleButtonPressed(){ if (scrambleButtonFrame == 1){ animateScrambleButton = true; }; } public function soundButtonSoundOff(){ soundButtonOn = false; } public function soundButtonSoundOn(){ soundButtonOn = true; } public function soundButtonSwitchDept(){ clip.setChildIndex(clip.soundButton_mc, clip.getChildIndex(clip.exitButton_mc)); clip.soundButton_mc.x = 621; clip.soundButton_mc.y = 533; } public function turnOffButton(){ turnOff = true; } public function setGameEndsIn(_arg1:Number){ var _local2:Number = Math.floor((_arg1 / 25)); if (_local2 < 0){ _local2 = 0; }; var _local3:String = String(_local2); var _local4:String = TextProperties.ENDS_IN; _local4 = _local4.split("[0]").join(_local3); gameEndsIn = _local4; } public function setGameEnds(){ if (TextProperties.LEVEL_SIGN_HEADING != TextProperties.GAME_ENDS){ TextProperties.LEVEL_SIGN_HEADING = TextProperties.GAME_ENDS; }; } public function showFreeGameText(){ showFreeGameEnd = true; } } }//package com.king.twistmesilly
Section 21
//Random (com.king.twistmesilly.Random) package com.king.twistmesilly { import flash.utils.*; public class Random { private var mta:Array; private var lastSeed:Number; private var mti:Number; public static var nr:int = 0; private static var N:Number = 624; private static var M:Number = 397; private static var MATRIX_A:Number = 2567483615; private static var UPPER_MASK:Number = 2147483648; private static var LOWER_MASK:Number = 2147483647; private static var mag01:Array = [0, 2567483615]; public function Random(_arg1:Number){ mta = new Array(N); mti = (N + 1); if (_arg1){ init_genrand(_arg1); }; } public function set seed(_arg1:Number){ init_genrand(_arg1); } public function get seed():Number{ return (lastSeed); } public function nextInt(_arg1:Number){ nr++; return (((genrand_int32() & 2147483647) % _arg1)); } public function nextFloat(){ return ((next(24) / (1 << 24))); } public function nextDouble(){ return ((next(24) / (1 << 24))); } public function next(_arg1:Number){ if (_arg1 < 32){ return ((genrand_int32() & ((1 << _arg1) - 1))); }; return (genrand_int32()); } private function init_genrand(_arg1:Number):void{ _arg1 = int(_arg1); var _local2:* = getTimer(); lastSeed = _arg1; mta[0] = _arg1; var _local3:* = _arg1; var _local4:* = new Integer64(null); var _local5:Number = N; mti = 1; while (mti < _local5) { _local4.init32(((_local3 >>> 30) ^ _local3)); _local4.mulu32(1812433253); _local3 = (mta[mti] = int((_local4.lsb + mti))); mti++; }; var _local6:* = getTimer(); } private function genrand_int32(){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local1:Number = N; var _local2:Number = 0; if (mti >= _local1){ if (mti == (_local1 + 1)){ init_genrand(5489); }; _local3 = M; _local4 = UPPER_MASK; _local5 = LOWER_MASK; _local6 = mag01; _local7 = getTimer(); _local8 = 0; _local9 = (_local1 - _local3); _local10 = (_local3 - _local1); _local8 = 0; while (_local8 < _local9) { _local2 = ((mta[_local8] & _local4) | (mta[(_local8 + 1)] & _local5)); mta[_local8] = ((mta[(_local8 + _local3)] ^ (_local2 >>> 1)) ^ _local6[(_local2 & 1)]); _local8++; }; _local9 = (_local1 - 1); while (_local8 < _local9) { _local2 = ((mta[_local8] & _local4) | (mta[(_local8 + 1)] & _local5)); mta[_local8] = ((mta[(_local8 + _local10)] ^ (_local2 >>> 1)) ^ _local6[(_local2 & 1)]); _local8++; }; _local2 = ((mta[(_local1 - 1)] & _local4) | (mta[0] & _local5)); mta[(_local1 - 1)] = ((mta[(_local3 - 1)] ^ (_local2 >>> 1)) ^ _local6[(_local2 & 1)]); mti = 0; _local11 = getTimer(); }; _local2 = mta[mti++]; _local2 = (_local2 ^ (_local2 >>> 11)); _local2 = (_local2 ^ ((_local2 << 7) & 2636928640)); _local2 = (_local2 ^ ((_local2 << 15) & 4022730752)); _local2 = (_local2 ^ (_local2 >>> 18)); return (_local2); } } }//package com.king.twistmesilly
Section 22
//SoundManager (com.king.twistmesilly.SoundManager) package com.king.twistmesilly { import flash.media.*; class SoundManager { private static var gameLoop:Sound = new twist_loop(); private static var gameLoopChannel:SoundChannel = null; private static var gameLoopPlaying:Boolean = false; private static var introLoop:Sound = new twist_intro(); private static var introLoopChannel:SoundChannel = null; private static var introLoopPlaying:Boolean = false; private static var endLoop:Sound = new twist_end(); private static var endLoopChannel:SoundChannel = null; private static var endLoopPlaying:Boolean = false; private static var INNER:Sound = new time_out3(); private static var timeOutChannel:SoundChannel = null; private static var timeOutPlaying:Boolean = false; private static var rotate:Sound = new rrotate_sound2(); private static var match1:Sound = new twist_combo1(); private static var match2:Sound = new twist_combo2(); private static var match3:Sound = new twist_combo3(); private static var match4:Sound = new twist_combo4(); private static var match5:Sound = new twist_combo5(); private static var match6:Sound = new twist_combo6(); private static var bomb:Sound = new bomb_sound6(); private static var colorBomb:Sound = new powerup2(); private static var lineBlast:Sound = new line_blast2(); private static var levelStart:Sound = new twist_level_start(); private static var levelEnd:Sound = new twist_level_end(); private static var noMoreMoves:Sound = new no_more_moves4(); private static var lightning:Sound = new lightning2(); private static var timeSign:Sound = new negative_4way3(); public static var isSoundOn:Boolean = true; public static function soundOff(){ stopGameLoop(); stopIntroLoop(); stopEndLoop(); isSoundOn = false; stopTimeOutLoop(); } public static function soundOn(){ isSoundOn = true; } public static function playGameLoop(){ if (((isSoundOn) && (!(gameLoopPlaying)))){ gameLoopChannel = gameLoop.play(0, 9999, new SoundTransform(0.7)); gameLoopPlaying = true; }; } public static function stopGameLoop(){ if (gameLoopChannel != null){ gameLoopChannel.stop(); gameLoopChannel = null; gameLoopPlaying = false; }; } public static function setGameLoopNormalVolume(){ if (gameLoopPlaying){ gameLoopChannel.soundTransform = new SoundTransform(1); }; } public static function setGameLoopLowVolume(){ if (gameLoopPlaying){ gameLoopChannel.soundTransform = new SoundTransform(0.4); }; } public static function playIntroLoop(){ if (((isSoundOn) && (!(introLoopPlaying)))){ introLoopChannel = introLoop.play(0, 9999, new SoundTransform(1)); introLoopPlaying = true; }; } public static function stopIntroLoop(){ if (introLoopChannel != null){ introLoopChannel.stop(); introLoopChannel = null; introLoopPlaying = false; }; } public static function playEndLoop(){ if (((isSoundOn) && (!(endLoopPlaying)))){ endLoopChannel = endLoop.play(0, 9999, new SoundTransform(1)); endLoopPlaying = true; }; } public static function stopEndLoop(){ if (endLoopChannel != null){ endLoopChannel.stop(); endLoopChannel = null; endLoopPlaying = false; }; } public static function playTimeOutLoop(){ if (((isSoundOn) && (!(timeOutPlaying)))){ timeOutChannel = INNER.play(0, 9999, new SoundTransform(1)); timeOutPlaying = true; }; } public static function stopTimeOutLoop(){ if (timeOutChannel != null){ timeOutChannel.stop(); timeOutChannel = null; timeOutPlaying = false; }; } public static function playRotate(){ if (isSoundOn){ rotate.play(0, 1, new SoundTransform(0.4)); }; } public static function playMatch1(){ if (isSoundOn){ match1.play(); }; } public static function playMatch2(){ if (isSoundOn){ match2.play(); }; } public static function playMatch3(){ if (isSoundOn){ match3.play(); }; } public static function playMatch4(){ if (isSoundOn){ match4.play(); }; } public static function playMatch5(){ if (isSoundOn){ match5.play(); }; } public static function playMatch6(){ if (isSoundOn){ match6.play(); }; } public static function playBomb(){ if (isSoundOn){ bomb.play(); }; } public static function playColorBomb(){ if (isSoundOn){ colorBomb.play(); }; } public static function playLineBlast(){ if (isSoundOn){ lineBlast.play(); }; } public static function playLevelStart(){ if (isSoundOn){ levelStart.play(); }; } public static function playLevelEnd(){ if (isSoundOn){ levelEnd.play(); }; } public static function playNoMoreMoves(){ if (isSoundOn){ noMoreMoves.play(); }; } public static function playLightning(){ if (isSoundOn){ lightning.play(0, 1, new SoundTransform(0.2)); }; } public static function playTimeSign(){ if (isSoundOn){ timeSign.play(); }; } } }//package com.king.twistmesilly
Section 23
//TextProperties (com.king.twistmesilly.TextProperties) package com.king.twistmesilly { class TextProperties { public static var INSTRUCTION_TEXT1:String = "instruction_text_1"; public static var INTRO_HEADING1:String = "INTRO_HEADING1"; public static var INTRO_TEXT1:String = "INTRO_TEXT1"; public static var INTRO_TEXT2:String = "INTRO_TEXT2"; public static var INTRO_HEADING2:String = "INTRO_HEADING2"; public static var INTRO_TEXT3:String = "INTRO_TEXT3"; public static var INTRO_TEXT4:String = "INTRO_TEXT4"; public static var INTRO_TEXT5:String = "INTRO_TEXT5"; public static var INTRO_GAME_STARTS_IN:String = "GAME_STARTS_IN"; public static var INTRO_CLICK_TO_START:String = "INTRO_CLICK_TO_START"; public static var INTRO_LIKE_THIS:String = "INTRO_LIKE_THIS"; public static var LEVEL_SIGN_HEADING:String = "LEVEL_SIGN_HEADING"; public static var LEVEL_SIGN_SCORE_TEXT:String = "LEVEL_SIGN_SCORE_TEXT"; public static var LEVEL_SIGN_BONUS_TEXT:String = "LEVEL_SIGN_BONUS_TEXT"; public static var LEVEL_SIGN_TOTAL_SCORE_TEXT:String = "LEVEL_SIGN_TOTAL_SCORE_TEXT"; public static var LEVEL_SIGN_CLICK_TEXT:String = "LEVEL_SIGN_CLICK_TEXT"; public static var TIMES_UP:String = "TIMES_UP"; public static var SCRAMBLE:String = "SCRAMBLE"; public static var ENDS_IN:String = "ENDS_IN"; public static var GAME_ENDS:String = "GAME_ENDS"; public static var SCRAMBLE_BUTTON_TEXT:String = "SCRAMBLE"; public static var GUI_SCORE_TEXT:String = "SCORE"; public static var GUI_LEVEL_TEXT:String = "LEVEL"; public static var FREE_GAME_TEXT:String = "FREE_GAME_TEXT"; public static var THE_END:String = "THE_END"; } }//package com.king.twistmesilly
Section 24
//Timer (com.king.twistmesilly.Timer) package com.king.twistmesilly { import flash.utils.*; public class Timer { private var lastTime:Number;// = -1 private var ticksPerSecond:Number; private var msPerTick:Number; private var unprocessedTime:Number;// = 0 public var alpha:Number;// = 0 public var timeScale:Number;// = 1 public var passedTime:Number;// = 0 public static var currentTime:Number = 0; public function Timer(_arg1){ this.ticksPerSecond = _arg1; msPerTick = (1000 / _arg1); } public function advanceTime(){ if (lastTime == -1){ lastTime = getTimer(); }; var _local1:* = getTimer(); passedTime = (_local1 - lastTime); passedTime = (passedTime * timeScale); currentTime = (currentTime + passedTime); lastTime = _local1; unprocessedTime = (unprocessedTime + passedTime); var _local2:int = int((unprocessedTime / msPerTick)); unprocessedTime = (unprocessedTime - (_local2 * msPerTick)); alpha = (unprocessedTime / msPerTick); return (_local2); } } }//package com.king.twistmesilly
Section 25
//TwistMeSilly (com.king.twistmesilly.TwistMeSilly) package com.king.twistmesilly { import flash.display.*; import flash.events.*; import flash.text.*; import flash.ui.*; import flash.xml.*; import flash.external.*; import flash.net.*; public class TwistMeSilly extends MovieClip { public var debugTickTime_txt:TextField; public var soundButton_mc:MovieClip; public var time2_mc:MovieClip; public var time3_mc:MovieClip; public var tick_txt:TextField; public var debugRenderFPS_txt:TextField; public var intro_mc:MovieClip; public var level_sign_anim_mc:MovieClip; public var time1_mc:MovieClip; public var level_mc:MovieClip; public var scramble_mc:MovieClip; public var exitButton_mc:MovieClip; public var progress_mc:MovieClip; public var game_holder_mc:MovieClip; public var GameLogo_mc:MovieClip; public var blingStarsHolder_mc:MovieClip; public var led_sign_mc:MovieClip; public var seed_txt:TextField; public var LevelByteExplosion_mc:MovieClip; public var bg_mc:MovieClip; public var scramble_button_txt:TextField; public var score_mc:MovieClip; private var state:int; private var gameHandler:GameHandler; private var input:Input; private var introPlayer:IntroPlayer; public var timer:Timer; private var tickCounter:int; private var renderFPS:Number;// = 0 private var renderStartTime:Number; private var tickTime:int;// = 0 private var soundOn:Boolean; private var lastIntroRender:Boolean;// = true private var garbageCounter:int;// = 0 public static var DEBUG_MODE:Boolean = false; public static var MONEY_GAME:Boolean = true; public static var TICKS_PER_SECOND:Number = 25; public static var TITLE_SHOWING_TICKS:int = 1; public static var INSTRUCTIONS_SHOWING_TICKS:int = 500; public static var STATE_TITLE:int = 0; public static var STATE_INSTRUCTIONS:int = 1; public static var STATE_GAME:int = 2; public static var STATE_END:int = 3; private static var GAME_DATA:String = (((((((((((((((((((((((((("<gamedata randomseed=\"5\" timelimit=\"660\" lang=\"de\" relaxMode=\"false\">" + "<text id=\"intro_heading1\">aSpela så här:</text>") + "<text id=\"intro_text1\">aRotera brickor så minst tre dioder av samma färg kopplas samman.</text>") + "<text id=\"intro_text2\">aRegnsbågsbrickor kan kopplas samman med alla andra färger.</text>") + "<text id=\"intro_heading2\">aSpecialobjekt:</text>") + "<text id=\"intro_text3\">aDyker upp när man gjort två kedjor. Spränger i sidled.</text>") + "<text id=\"intro_text4\">aDyker upp när man gjort en kedja. Spränger runt sig.</text>") + "<text id=\"intro_text5\">aDyker upp när man gjort tre kedjor. Spränger alla brickor i samma färg.</text>") + "<text id=\"intro_starts_in\">aGame starts in [0] seconds</text>") + "<text id=\"intro_click_to_start\">aclick to start</text>") + "<text id=\"intro_like_this\">aSÅ HÄR!</text>") + "<text id=\"level_sign_heading\">aLEVEL COMPLETED</text>") + "<text id=\"level_sign_score\">aSCORE</text>") + "<text id=\"level_sign_bonus\">aBONUS</text>") + "<text id=\"level_sign_totalscore\">aTOTAL SCORE</text>") + "<text id=\"level_sign_click_to_continue\">aCLICK TO CONTINUE</text>") + "<text id=\"led_sign_times_up\">TEMPS\nECOULE !</text>") + "<text id=\"led_sign_scramble\">aSCRAMBLE</text>") + "<text id=\"ends_in\">aGAME ENDS IN [0] SECONDS</text>") + "<text id=\"game_ends\">aGAME ENDS</text>") + "<text id=\"scramble_button_text\">aS C R A M B L E</text>") + "<text id=\"gui_score_text\">aS C O R E</text>") + "<text id=\"gui_level_text\">aLEVEL</text>") + "<text id=\"the_end\">THE END</text>") + "<text id=\"free_game_text\">aSignup to play\nthe full game</text>") + "<userType id=\"0\">2</userType>") + "</gamedata>"); public function TwistMeSilly(){ Global.defaultDisplayObject = this; Global.CreateClips(); stage.quality = StageQuality.HIGH; introPlayer = new IntroPlayer(Global.defaultDisplayObject); Communicator.setMoneyGame(MONEY_GAME); if (!DEBUG_MODE){ getGameData(); }; Communicator.parseGameData(GAME_DATA); if (Communicator.isRelaxGame()){ MONEY_GAME = false; Communicator.setMoneyGame(MONEY_GAME); }; var _local1:int = Communicator.randomSeed; input = new Input(); input.init(); gameHandler = new GameHandler(_local1, input, messageReciver); soundOn = true; timer = new Timer(TICKS_PER_SECOND); addEventListener("enterFrame", advanceTime); this.addEventListener(MouseEvent.MOUSE_DOWN, mousePressed); this.addEventListener(MouseEvent.MOUSE_UP, mouseReleased); tickCounter = 0; state = STATE_TITLE; SoundManager.playIntroLoop(); } private function tick():void{ input.setMousePos(this.mouseX, this.mouseY); offButton(); soundButton(); switch (state){ case STATE_TITLE: if ((((tickCounter >= TITLE_SHOWING_TICKS)) || (input.mouseIsReleased))){ tickCounter = 0; state = STATE_INSTRUCTIONS; gameHandler.initGame(); }; introPlayer.tick(); break; case STATE_INSTRUCTIONS: introPlayer.setGameStartsIn(((INSTRUCTIONS_SHOWING_TICKS + 25) - tickCounter)); introPlayer.tick(); if ((((tickCounter >= INSTRUCTIONS_SHOWING_TICKS)) || (((input.mouseIsReleased) && (noSoundButtonClick()))))){ if (gameHandler.gameIsPaused()){ gameHandler.startGame(); state = STATE_GAME; gameHandler.moviePlayer.soundButtonSwitchDept(); introPlayer.hideIntro(); }; }; break; case STATE_GAME: break; }; gameHandler.tick(); input.reset(); tickCounter++; } private function render(_arg1:Number):void{ gameHandler.render(_arg1); if ((((state == STATE_TITLE)) || ((state == STATE_INSTRUCTIONS)))){ introPlayer.render(_arg1); } else { if (lastIntroRender){ introPlayer.render(_arg1); lastIntroRender = false; }; }; } public function messageReciver(_arg1:String, _arg2:InfoData){ } private function getGameData(){ var _local1:Object = ExternalInterface.call("getGameData"); if ((((_local1 == null)) || (!(_local1.success)))){ } else { GAME_DATA = _local1.message; }; } private function advanceTime(_arg1:Event):void{ var e = _arg1; var ticks:* = timer.advanceTime(); var i:* = 0; while (i < ticks) { tick(); i = (i + 1); }; render(timer.alpha); garbageCounter++; if ((((garbageCounter > 75)) && ((state == STATE_GAME)))){ garbageCounter = 0; try { new LocalConnection().connect("foo"); new LocalConnection().connect("foo"); } catch(e) { }; }; } public function mousePressed(_arg1:MouseEvent){ input.mousePressed(); } public function mouseReleased(_arg1:MouseEvent){ input.mouseReleased(); } private function soundButton(){ if ((((state == STATE_TITLE)) || ((state == STATE_INSTRUCTIONS)))){ if ((((((((((((input.xMouse >= 715)) && ((input.xMouse <= 737)))) && ((input.yMouse >= 533)))) && ((input.yMouse <= 553)))) && (input.mouseIsPressed))) && (soundOn))){ soundOn = false; gameHandler.soundOff(); gameHandler.moviePlayer.soundButtonSoundOff(); } else { if ((((((((((((input.xMouse >= 699)) && ((input.xMouse <= 719)))) && ((input.yMouse >= 557)))) && ((input.yMouse <= 577)))) && (input.mouseIsPressed))) && (!(soundOn)))){ soundOn = true; SoundManager.soundOn(); SoundManager.playIntroLoop(); gameHandler.moviePlayer.soundButtonSoundOn(); }; }; } else { if ((((((((((((input.xMouse >= 654)) && ((input.xMouse <= 674)))) && ((input.yMouse >= 533)))) && ((input.yMouse <= 553)))) && (input.mouseIsPressed))) && (soundOn))){ soundOn = false; gameHandler.soundOff(); gameHandler.moviePlayer.soundButtonSoundOff(); } else { if ((((((((((((input.xMouse >= 638)) && ((input.xMouse <= 658)))) && ((input.yMouse >= 557)))) && ((input.yMouse <= 577)))) && (input.mouseIsPressed))) && (!(soundOn)))){ soundOn = true; gameHandler.soundOn(); gameHandler.moviePlayer.soundButtonSoundOn(); }; }; }; } private function offButton(){ if (state == STATE_GAME){ if ((((((((((input.xMouse >= 691)) && ((input.xMouse <= 711)))) && ((input.yMouse >= 539)))) && ((input.yMouse <= 559)))) && (input.mouseIsPressed))){ gameHandler.moviePlayer.turnOffButton(); gameHandler.tryToExitGame(); }; }; } private function noSoundButtonClick():Boolean{ if ((((state == STATE_TITLE)) || ((state == STATE_INSTRUCTIONS)))){ if ((((((((((input.xMouse >= 715)) && ((input.xMouse <= 737)))) && ((input.yMouse >= 533)))) && ((input.yMouse <= 553)))) || ((((((((input.xMouse >= 699)) && ((input.xMouse <= 719)))) && ((input.yMouse >= 557)))) && ((input.yMouse <= 577)))))){ return (false); }; return (true); //unresolved jump }; if ((((((((((input.xMouse >= 654)) && ((input.xMouse <= 674)))) && ((input.yMouse >= 533)))) && ((input.yMouse <= 553)))) || ((((((((input.xMouse >= 638)) && ((input.xMouse <= 658)))) && ((input.yMouse >= 557)))) && ((input.yMouse <= 577)))))){ return (false); }; return (true); } } }//package com.king.twistmesilly
Section 26
//alla_powerups_50 (twistmesilly_fla.alla_powerups_50) package twistmesilly_fla { import flash.display.*; public dynamic class alla_powerups_50 extends MovieClip { public var colourbomb_cerise_mc:MovieClip; public var colourbomb_red_mc:MovieClip; public var colourbomb_blue_mc:MovieClip; public var colourbomb_green_mc:MovieClip; public var sparkle_mc:MovieClip; public function alla_powerups_50(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 27
//bling_7 (twistmesilly_fla.bling_7) package twistmesilly_fla { import flash.display.*; public dynamic class bling_7 extends MovieClip { public function bling_7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 28
//bling_87 (twistmesilly_fla.bling_87) package twistmesilly_fla { import flash.display.*; public dynamic class bling_87 extends MovieClip { public function bling_87(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 29
//blue_colourbomb_52 (twistmesilly_fla.blue_colourbomb_52) package twistmesilly_fla { import flash.display.*; public dynamic class blue_colourbomb_52 extends MovieClip { public function blue_colourbomb_52(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 30
//brick_4_49 (twistmesilly_fla.brick_4_49) package twistmesilly_fla { import flash.display.*; public dynamic class brick_4_49 extends MovieClip { public function brick_4_49(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 31
//cerise_colourbomb_53 (twistmesilly_fla.cerise_colourbomb_53) package twistmesilly_fla { import flash.display.*; public dynamic class cerise_colourbomb_53 extends MovieClip { public function cerise_colourbomb_53(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 32
//green_colourbomb_55 (twistmesilly_fla.green_colourbomb_55) package twistmesilly_fla { import flash.display.*; public dynamic class green_colourbomb_55 extends MovieClip { public function green_colourbomb_55(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 33
//hint_1_63 (twistmesilly_fla.hint_1_63) package twistmesilly_fla { import flash.display.*; public dynamic class hint_1_63 extends MovieClip { public function hint_1_63(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 34
//intro_42 (twistmesilly_fla.intro_42) package twistmesilly_fla { import flash.display.*; import flash.text.*; public dynamic class intro_42 extends MovieClip { public var text4_txt:TextField; public var IntroLogo_mc:MovieClip; public var text1_txt:TextField; public var text3_txt:TextField; public var text2_txt:TextField; public var click_to_start_txt:TextField; public var heading2_txt:TextField; public var game_starts_in_txt:TextField; public var heading1_txt:TextField; public var like_this_mc:MovieClip; public var text5_txt:TextField; public function intro_42(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 35
//LED_figur_sekvens_16 (twistmesilly_fla.LED_figur_sekvens_16) package twistmesilly_fla { import flash.display.*; public dynamic class LED_figur_sekvens_16 extends MovieClip { public var timeLed_mc:MovieClip; public function LED_figur_sekvens_16(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 36
//LED_sign_18 (twistmesilly_fla.LED_sign_18) package twistmesilly_fla { import flash.display.*; public dynamic class LED_sign_18 extends MovieClip { public var sign_mc:MovieClip; public function LED_sign_18(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 37
//led_time_up_19 (twistmesilly_fla.led_time_up_19) package twistmesilly_fla { import flash.display.*; public dynamic class led_time_up_19 extends MovieClip { public var timesup_mc:MovieClip; public function led_time_up_19(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 38
//ledstar_40 (twistmesilly_fla.ledstar_40) package twistmesilly_fla { import flash.display.*; public dynamic class ledstar_40 extends MovieClip { public function ledstar_40(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 39
//levelbyte_24 (twistmesilly_fla.levelbyte_24) package twistmesilly_fla { import flash.display.*; public dynamic class levelbyte_24 extends MovieClip { public function levelbyte_24(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 40
//levelprogress_13 (twistmesilly_fla.levelprogress_13) package twistmesilly_fla { import flash.display.*; public dynamic class levelprogress_13 extends MovieClip { public function levelprogress_13(){ addFrameScript(79, frame80); } function frame80(){ gotoAndPlay(60); } } }//package twistmesilly_fla
Section 41
//power_on_off_4 (twistmesilly_fla.power_on_off_4) package twistmesilly_fla { import flash.display.*; public dynamic class power_on_off_4 extends MovieClip { public function power_on_off_4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 42
//red_colourbomb_54 (twistmesilly_fla.red_colourbomb_54) package twistmesilly_fla { import flash.display.*; public dynamic class red_colourbomb_54 extends MovieClip { public function red_colourbomb_54(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 43
//scramble_11 (twistmesilly_fla.scramble_11) package twistmesilly_fla { import flash.display.*; public dynamic class scramble_11 extends MovieClip { public function scramble_11(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 44
//selected_mouseover_64 (twistmesilly_fla.selected_mouseover_64) package twistmesilly_fla { import flash.display.*; public dynamic class selected_mouseover_64 extends MovieClip { public function selected_mouseover_64(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 45
//skylt_26 (twistmesilly_fla.skylt_26) package twistmesilly_fla { import flash.display.*; public dynamic class skylt_26 extends MovieClip { public var Figure2Glad_mc:MovieClip; public var Figure1Glad_mc:MovieClip; public var star2_mc:MovieClip; public var Figure1Sad_mc:MovieClip; public var star1_mc:MovieClip; public var text_mc:MovieClip; public var Figure2Sad_mc:MovieClip; public var Figure1Neutral_mc:MovieClip; public var Figure2Neutral_mc:MovieClip; public function skylt_26(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 46
//skyltenanimation_25 (twistmesilly_fla.skyltenanimation_25) package twistmesilly_fla { import flash.display.*; public dynamic class skyltenanimation_25 extends MovieClip { public var level_sign_mc:MovieClip; public function skyltenanimation_25(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 47
//skyltfigur1_31 (twistmesilly_fla.skyltfigur1_31) package twistmesilly_fla { import flash.display.*; public dynamic class skyltfigur1_31 extends MovieClip { public function skyltfigur1_31(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 48
//skyltfigur1_glad_33 (twistmesilly_fla.skyltfigur1_glad_33) package twistmesilly_fla { import flash.display.*; public dynamic class skyltfigur1_glad_33 extends MovieClip { public function skyltfigur1_glad_33(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 49
//skyltfigur1_ledsen_32 (twistmesilly_fla.skyltfigur1_ledsen_32) package twistmesilly_fla { import flash.display.*; public dynamic class skyltfigur1_ledsen_32 extends MovieClip { public function skyltfigur1_ledsen_32(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 50
//skyltfigur2_glad_36 (twistmesilly_fla.skyltfigur2_glad_36) package twistmesilly_fla { import flash.display.*; public dynamic class skyltfigur2_glad_36 extends MovieClip { public function skyltfigur2_glad_36(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 51
//skyltfigur2_ledsen_34 (twistmesilly_fla.skyltfigur2_ledsen_34) package twistmesilly_fla { import flash.display.*; public dynamic class skyltfigur2_ledsen_34 extends MovieClip { public function skyltfigur2_ledsen_34(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 52
//skyltfigur2_neutral_35 (twistmesilly_fla.skyltfigur2_neutral_35) package twistmesilly_fla { import flash.display.*; public dynamic class skyltfigur2_neutral_35 extends MovieClip { public function skyltfigur2_neutral_35(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 53
//soundtoggle_46 (twistmesilly_fla.soundtoggle_46) package twistmesilly_fla { import flash.display.*; public dynamic class soundtoggle_46 extends MovieClip { public function soundtoggle_46(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 54
//text_sign_27 (twistmesilly_fla.text_sign_27) package twistmesilly_fla { import flash.display.*; import flash.text.*; public dynamic class text_sign_27 extends MovieClip { public var click_text_txt:TextField; public var score_txt:TextField; public var score_text_txt:TextField; public var bonus_txt:TextField; public var bonus_text_txt:TextField; public var heading_txt:TextField; public var line_txt:TextField; public var total_score_text_txt:TextField; public var total_score_txt:TextField; public function text_sign_27(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package twistmesilly_fla
Section 55
//bling (bling) package { import flash.display.*; public dynamic class bling extends MovieClip { public function bling(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 56
//bling2 (bling2) package { import flash.display.*; public dynamic class bling2 extends MovieClip { public var bling_mc:MovieClip; } }//package
Section 57
//blixt (blixt) package { import flash.display.*; public dynamic class blixt extends MovieClip { public function blixt(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 58
//blue3 (blue3) package { import flash.display.*; public dynamic class blue3 extends MovieClip { } }//package
Section 59
//blue5 (blue5) package { import flash.display.*; public dynamic class blue5 extends MovieClip { } }//package
Section 60
//bomb_sound6 (bomb_sound6) package { import flash.media.*; public dynamic class bomb_sound6 extends Sound { } }//package
Section 61
//bomb_sound7 (bomb_sound7) package { import flash.media.*; public dynamic class bomb_sound7 extends Sound { } }//package
Section 62
//BrickC (BrickC) package { import flash.display.*; public dynamic class BrickC extends MovieClip { public var card2_mc:MovieClip; public var hint_mc:MovieClip; public var card1_mc:MovieClip; public var special_mc:MovieClip; public var sidewayblast_mc:MovieClip; public var mouse_over_mc:MovieClip; public var lights_mc:MovieClip; } }//package
Section 63
//cerise3 (cerise3) package { import flash.display.*; public dynamic class cerise3 extends MovieClip { } }//package
Section 64
//cerise5 (cerise5) package { import flash.display.*; public dynamic class cerise5 extends MovieClip { } }//package
Section 65
//combo1 (combo1) package { import flash.media.*; public dynamic class combo1 extends Sound { } }//package
Section 66
//explosion_bitmap (explosion_bitmap) package { import flash.display.*; public dynamic class explosion_bitmap extends MovieClip { } }//package
Section 67
//green3 (green3) package { import flash.display.*; public dynamic class green3 extends MovieClip { } }//package
Section 68
//green5 (green5) package { import flash.display.*; public dynamic class green5 extends MovieClip { } }//package
Section 69
//lightning2 (lightning2) package { import flash.media.*; public dynamic class lightning2 extends Sound { } }//package
Section 70
//line_blast2 (line_blast2) package { import flash.media.*; public dynamic class line_blast2 extends Sound { } }//package
Section 71
//negative_4way3 (negative_4way3) package { import flash.media.*; public dynamic class negative_4way3 extends Sound { } }//package
Section 72
//no_more_moves4 (no_more_moves4) package { import flash.media.*; public dynamic class no_more_moves4 extends Sound { } }//package
Section 73
//normal_explosion (normal_explosion) package { import flash.display.*; public dynamic class normal_explosion extends MovieClip { } }//package
Section 74
//powerup2 (powerup2) package { import flash.media.*; public dynamic class powerup2 extends Sound { } }//package
Section 75
//rainbow3 (rainbow3) package { import flash.display.*; public dynamic class rainbow3 extends MovieClip { } }//package
Section 76
//rainbow5 (rainbow5) package { import flash.display.*; public dynamic class rainbow5 extends MovieClip { } }//package
Section 77
//red3 (red3) package { import flash.display.*; public dynamic class red3 extends MovieClip { } }//package
Section 78
//red5 (red5) package { import flash.display.*; public dynamic class red5 extends MovieClip { } }//package
Section 79
//rrotate_sound2 (rrotate_sound2) package { import flash.media.*; public dynamic class rrotate_sound2 extends Sound { } }//package
Section 80
//score_animation (score_animation) package { import flash.display.*; public dynamic class score_animation extends MovieClip { public var score_mc:MovieClip; } }//package
Section 81
//sideway_explosion (sideway_explosion) package { import flash.display.*; public dynamic class sideway_explosion extends MovieClip { } }//package
Section 82
//sideway_explosion_bitmap (sideway_explosion_bitmap) package { import flash.display.*; public dynamic class sideway_explosion_bitmap extends MovieClip { } }//package
Section 83
//time_out3 (time_out3) package { import flash.media.*; public dynamic class time_out3 extends Sound { } }//package
Section 84
//twist_combo1 (twist_combo1) package { import flash.media.*; public dynamic class twist_combo1 extends Sound { } }//package
Section 85
//twist_combo2 (twist_combo2) package { import flash.media.*; public dynamic class twist_combo2 extends Sound { } }//package
Section 86
//twist_combo3 (twist_combo3) package { import flash.media.*; public dynamic class twist_combo3 extends Sound { } }//package
Section 87
//twist_combo4 (twist_combo4) package { import flash.media.*; public dynamic class twist_combo4 extends Sound { } }//package
Section 88
//twist_combo5 (twist_combo5) package { import flash.media.*; public dynamic class twist_combo5 extends Sound { } }//package
Section 89
//twist_combo6 (twist_combo6) package { import flash.media.*; public dynamic class twist_combo6 extends Sound { } }//package
Section 90
//twist_end (twist_end) package { import flash.media.*; public dynamic class twist_end extends Sound { } }//package
Section 91
//twist_intro (twist_intro) package { import flash.media.*; public dynamic class twist_intro extends Sound { } }//package
Section 92
//twist_level_end (twist_level_end) package { import flash.media.*; public dynamic class twist_level_end extends Sound { } }//package
Section 93
//twist_level_start (twist_level_start) package { import flash.media.*; public dynamic class twist_level_start extends Sound { } }//package
Section 94
//twist_loop (twist_loop) package { import flash.media.*; public dynamic class twist_loop extends Sound { } }//package

Library Items

Symbol 1 Sound {twist_loop}
Symbol 2 Sound {twist_level_start}
Symbol 3 Sound {twist_level_end}
Symbol 4 Sound {twist_intro}
Symbol 5 Sound {twist_end}
Symbol 6 Sound {twist_combo6}
Symbol 7 Sound {twist_combo5}
Symbol 8 Sound {twist_combo4}
Symbol 9 Sound {twist_combo3}
Symbol 10 Sound {twist_combo2}
Symbol 11 Sound {twist_combo1}
Symbol 12 Sound {time_out3}
Symbol 13 Sound {rrotate_sound2}
Symbol 14 Sound {powerup2}
Symbol 15 Sound {no_more_moves4}
Symbol 16 Sound {negative_4way3}
Symbol 17 Sound {line_blast2}
Symbol 18 Sound {lightning2}
Symbol 19 Sound {combo1}
Symbol 20 Sound {bomb_sound7}
Symbol 21 Sound {bomb_sound6}
Symbol 22 GraphicUsed by:23 561
Symbol 23 MovieClipUses:22Used by:26 65 521
Symbol 24 GraphicUsed by:25 64
Symbol 25 MovieClipUses:24Used by:26
Symbol 26 MovieClipUses:23 25Used by:27
Symbol 27 MovieClip {twistmesilly_fla.bling_87}Uses:26Used by:28
Symbol 28 MovieClip {bling2}Uses:27
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:63
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:63
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:63
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:63
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:63
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:63
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:63
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:63
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:63
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:63
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:63
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:63
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:63
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:63
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:63
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:63
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:63
Symbol 63 MovieClip {sideway_explosion_bitmap}Uses:30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62
Symbol 64 MovieClipUses:24Used by:65
Symbol 65 MovieClipUses:23 64Used by:66
Symbol 66 MovieClip {bling}Uses:65
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:69
Symbol 69 MovieClip {sideway_explosion}Uses:68
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClip {red5}Uses:71
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClip {red3}Uses:74
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:78
Symbol 78 MovieClip {rainbow5}Uses:77
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:81
Symbol 81 MovieClip {rainbow3}Uses:80
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:84
Symbol 84 MovieClip {green5}Uses:83
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 MovieClip {green3}Uses:86
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClip {cerise5}Uses:89
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:93
Symbol 93 MovieClip {cerise3}Uses:92
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:96
Symbol 96 MovieClip {blue5}Uses:95
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:99
Symbol 99 MovieClip {blue3}Uses:98
Symbol 100 FontUsed by:101 587
Symbol 101 EditableTextUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClip {score_animation}Uses:102
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:118
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:118
Symbol 108 BitmapUsed by:109
Symbol 109 GraphicUses:108Used by:118
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:118
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:118
Symbol 114 BitmapUsed by:115
Symbol 115 GraphicUses:114Used by:118
Symbol 116 BitmapUsed by:117
Symbol 117 GraphicUses:116Used by:118
Symbol 118 MovieClip {normal_explosion}Uses:105 107 109 111 113 115 117
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:155
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:155
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:155
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:155
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:155
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:155
Symbol 131 BitmapUsed by:132
Symbol 132 GraphicUses:131Used by:155
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:155
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:155
Symbol 137 BitmapUsed by:138
Symbol 138 GraphicUses:137Used by:155
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:155
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:155
Symbol 143 BitmapUsed by:144
Symbol 144 GraphicUses:143Used by:155
Symbol 145 BitmapUsed by:146
Symbol 146 GraphicUses:145Used by:155
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:155
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:155
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:155
Symbol 153 BitmapUsed by:154
Symbol 154 GraphicUses:153Used by:155
Symbol 155 MovieClip {explosion_bitmap}Uses:120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:158
Symbol 158 MovieClipUses:157Used by:522
Symbol 159 BitmapUsed by:160
Symbol 160 GraphicUses:159Used by:163
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:161Used by:163
Symbol 163 MovieClip {twistmesilly_fla.brick_4_49}Uses:160 162Used by:522
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:168
Symbol 166 BitmapUsed by:167
Symbol 167 GraphicUses:166Used by:168
Symbol 168 MovieClipUses:165 167Used by:333
Symbol 169 BitmapUsed by:170
Symbol 170 GraphicUses:169Used by:209
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:209
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:209
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:209
Symbol 177 BitmapUsed by:178
Symbol 178 GraphicUses:177Used by:209
Symbol 179 BitmapUsed by:180
Symbol 180 GraphicUses:179Used by:209
Symbol 181 BitmapUsed by:182
Symbol 182 GraphicUses:181Used by:209
Symbol 183 BitmapUsed by:184
Symbol 184 GraphicUses:183Used by:209
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:209
Symbol 187 BitmapUsed by:188
Symbol 188 GraphicUses:187Used by:209
Symbol 189 BitmapUsed by:190
Symbol 190 GraphicUses:189Used by:209
Symbol 191 BitmapUsed by:192
Symbol 192 GraphicUses:191Used by:209
Symbol 193 BitmapUsed by:194
Symbol 194 GraphicUses:193Used by:209
Symbol 195 BitmapUsed by:196
Symbol 196 GraphicUses:195Used by:209
Symbol 197 BitmapUsed by:198
Symbol 198 GraphicUses:197Used by:209
Symbol 199 BitmapUsed by:200
Symbol 200 GraphicUses:199Used by:209
Symbol 201 BitmapUsed by:202
Symbol 202 GraphicUses:201Used by:209
Symbol 203 BitmapUsed by:204
Symbol 204 GraphicUses:203Used by:209
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:209
Symbol 207 BitmapUsed by:208
Symbol 208 GraphicUses:207Used by:209
Symbol 209 MovieClip {twistmesilly_fla.blue_colourbomb_52}Uses:170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208Used by:333
Symbol 210 BitmapUsed by:211
Symbol 211 GraphicUses:210Used by:250 940
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:250 940
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:250 940
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:250 940
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:250 940
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:250 940
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:250 940
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:250 940
Symbol 226 BitmapUsed by:227
Symbol 227 GraphicUses:226Used by:250 940
Symbol 228 BitmapUsed by:229
Symbol 229 GraphicUses:228Used by:250 940
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:250 940
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:250 940
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:250 940
Symbol 236 BitmapUsed by:237
Symbol 237 GraphicUses:236Used by:250 940
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:250 940
Symbol 240 BitmapUsed by:241
Symbol 241 GraphicUses:240Used by:250 940
Symbol 242 BitmapUsed by:243
Symbol 243 GraphicUses:242Used by:250 940
Symbol 244 BitmapUsed by:245
Symbol 245 GraphicUses:244Used by:250 940
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:250 940
Symbol 248 BitmapUsed by:249
Symbol 249 GraphicUses:248Used by:250 940
Symbol 250 MovieClip {twistmesilly_fla.cerise_colourbomb_53}Uses:211 213 215 217 219 221 223 225 227 229 231 233 235 237 239 241 243 245 247 249Used by:333
Symbol 251 BitmapUsed by:252
Symbol 252 GraphicUses:251Used by:291
Symbol 253 BitmapUsed by:254
Symbol 254 GraphicUses:253Used by:291
Symbol 255 BitmapUsed by:256
Symbol 256 GraphicUses:255Used by:291
Symbol 257 BitmapUsed by:258
Symbol 258 GraphicUses:257Used by:291
Symbol 259 BitmapUsed by:260
Symbol 260 GraphicUses:259Used by:291
Symbol 261 BitmapUsed by:262
Symbol 262 GraphicUses:261Used by:291
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:291
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:291
Symbol 267 BitmapUsed by:268
Symbol 268 GraphicUses:267Used by:291
Symbol 269 BitmapUsed by:270
Symbol 270 GraphicUses:269Used by:291
Symbol 271 BitmapUsed by:272
Symbol 272 GraphicUses:271Used by:291
Symbol 273 BitmapUsed by:274
Symbol 274 GraphicUses:273Used by:291
Symbol 275 BitmapUsed by:276
Symbol 276 GraphicUses:275Used by:291
Symbol 277 BitmapUsed by:278
Symbol 278 GraphicUses:277Used by:291
Symbol 279 BitmapUsed by:280
Symbol 280 GraphicUses:279Used by:291
Symbol 281 BitmapUsed by:282
Symbol 282 GraphicUses:281Used by:291
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:291
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:291
Symbol 287 BitmapUsed by:288
Symbol 288 GraphicUses:287Used by:291
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:291
Symbol 291 MovieClip {twistmesilly_fla.red_colourbomb_54}Uses:252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290Used by:333
Symbol 292 BitmapUsed by:293
Symbol 293 GraphicUses:292Used by:332
Symbol 294 BitmapUsed by:295
Symbol 295 GraphicUses:294Used by:332
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:332
Symbol 298 BitmapUsed by:299
Symbol 299 GraphicUses:298Used by:332
Symbol 300 BitmapUsed by:301
Symbol 301 GraphicUses:300Used by:332
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:332
Symbol 304 BitmapUsed by:305
Symbol 305 GraphicUses:304Used by:332
Symbol 306 BitmapUsed by:307
Symbol 307 GraphicUses:306Used by:332
Symbol 308 BitmapUsed by:309
Symbol 309 GraphicUses:308Used by:332
Symbol 310 BitmapUsed by:311
Symbol 311 GraphicUses:310Used by:332
Symbol 312 BitmapUsed by:313
Symbol 313 GraphicUses:312Used by:332
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:332
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:332
Symbol 318 BitmapUsed by:319
Symbol 319 GraphicUses:318Used by:332
Symbol 320 BitmapUsed by:321
Symbol 321 GraphicUses:320Used by:332
Symbol 322 BitmapUsed by:323
Symbol 323 GraphicUses:322Used by:332
Symbol 324 BitmapUsed by:325
Symbol 325 GraphicUses:324Used by:332
Symbol 326 BitmapUsed by:327
Symbol 327 GraphicUses:326Used by:332
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:332
Symbol 330 BitmapUsed by:331
Symbol 331 GraphicUses:330Used by:332
Symbol 332 MovieClip {twistmesilly_fla.green_colourbomb_55}Uses:293 295 297 299 301 303 305 307 309 311 313 315 317 319 321 323 325 327 329 331Used by:333
Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50}Uses:168 209 250 291 332Used by:522
Symbol 334 BitmapUsed by:335 347
Symbol 335 GraphicUses:334Used by:424
Symbol 336 BitmapUsed by:337 348
Symbol 337 GraphicUses:336Used by:424
Symbol 338 BitmapUsed by:339 349
Symbol 339 GraphicUses:338Used by:424
Symbol 340 BitmapUsed by:341 350
Symbol 341 GraphicUses:340Used by:424
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:344
Symbol 344 MovieClipUses:343Used by:424
Symbol 345 BitmapUsed by:346 351
Symbol 346 GraphicUses:345Used by:424
Symbol 347 GraphicUses:334Used by:424
Symbol 348 GraphicUses:336Used by:424
Symbol 349 GraphicUses:338Used by:424
Symbol 350 GraphicUses:340Used by:424
Symbol 351 GraphicUses:345Used by:424
Symbol 352 BitmapUsed by:353 365
Symbol 353 GraphicUses:352Used by:424
Symbol 354 BitmapUsed by:355 366
Symbol 355 GraphicUses:354Used by:424
Symbol 356 BitmapUsed by:357 367
Symbol 357 GraphicUses:356Used by:424
Symbol 358 BitmapUsed by:359 368
Symbol 359 GraphicUses:358Used by:424
Symbol 360 BitmapUsed by:361
Symbol 361 GraphicUses:360Used by:362
Symbol 362 MovieClipUses:361Used by:424
Symbol 363 BitmapUsed by:364 369
Symbol 364 GraphicUses:363Used by:424
Symbol 365 GraphicUses:352Used by:424
Symbol 366 GraphicUses:354Used by:424
Symbol 367 GraphicUses:356Used by:424
Symbol 368 GraphicUses:358Used by:424
Symbol 369 GraphicUses:363Used by:424
Symbol 370 BitmapUsed by:371 383
Symbol 371 GraphicUses:370Used by:424
Symbol 372 BitmapUsed by:373 384
Symbol 373 GraphicUses:372Used by:424
Symbol 374 BitmapUsed by:375 385
Symbol 375 GraphicUses:374Used by:424
Symbol 376 BitmapUsed by:377 386
Symbol 377 GraphicUses:376Used by:424
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380
Symbol 380 MovieClipUses:379Used by:424
Symbol 381 BitmapUsed by:382 387
Symbol 382 GraphicUses:381Used by:424
Symbol 383 GraphicUses:370Used by:424
Symbol 384 GraphicUses:372Used by:424
Symbol 385 GraphicUses:374Used by:424
Symbol 386 GraphicUses:376Used by:424
Symbol 387 GraphicUses:381Used by:424
Symbol 388 BitmapUsed by:389 401 905
Symbol 389 GraphicUses:388Used by:424
Symbol 390 BitmapUsed by:391 402
Symbol 391 GraphicUses:390Used by:424
Symbol 392 BitmapUsed by:393 403
Symbol 393 GraphicUses:392Used by:424
Symbol 394 BitmapUsed by:395 404
Symbol 395 GraphicUses:394Used by:424
Symbol 396 BitmapUsed by:397
Symbol 397 GraphicUses:396Used by:398
Symbol 398 MovieClipUses:397Used by:424
Symbol 399 BitmapUsed by:400 405
Symbol 400 GraphicUses:399Used by:424
Symbol 401 GraphicUses:388Used by:424
Symbol 402 GraphicUses:390Used by:424
Symbol 403 GraphicUses:392Used by:424
Symbol 404 GraphicUses:394Used by:424
Symbol 405 GraphicUses:399Used by:424
Symbol 406 BitmapUsed by:407 419
Symbol 407 GraphicUses:406Used by:424
Symbol 408 BitmapUsed by:409 420
Symbol 409 GraphicUses:408Used by:424
Symbol 410 BitmapUsed by:411 421
Symbol 411 GraphicUses:410Used by:424
Symbol 412 BitmapUsed by:413 422
Symbol 413 GraphicUses:412Used by:424
Symbol 414 BitmapUsed by:415
Symbol 415 GraphicUses:414Used by:416
Symbol 416 MovieClipUses:415Used by:424
Symbol 417 BitmapUsed by:418 423
Symbol 418 GraphicUses:417Used by:424
Symbol 419 GraphicUses:406Used by:424
Symbol 420 GraphicUses:408Used by:424
Symbol 421 GraphicUses:410Used by:424
Symbol 422 GraphicUses:412Used by:424
Symbol 423 GraphicUses:417Used by:424
Symbol 424 MovieClipUses:335 337 339 341 344 346 347 348 349 350 351 353 355 357 359 362 364 365 366 367 368 369 371 373 375 377 380 382 383 384 385 386 387 389 391 393 395 398 400 401 402 403 404 405 407 409 411 413 416 418 419 420 421 422 423Used by:522
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:459
Symbol 427 BitmapUsed by:428
Symbol 428 GraphicUses:427Used by:459
Symbol 429 BitmapUsed by:430
Symbol 430 GraphicUses:429Used by:459
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:459
Symbol 433 BitmapUsed by:434
Symbol 434 GraphicUses:433Used by:459
Symbol 435 BitmapUsed by:436
Symbol 436 GraphicUses:435Used by:459
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:459
Symbol 439 BitmapUsed by:440
Symbol 440 GraphicUses:439Used by:459
Symbol 441 BitmapUsed by:442
Symbol 442 GraphicUses:441Used by:459
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:459
Symbol 445 BitmapUsed by:446
Symbol 446 GraphicUses:445Used by:459
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:459
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:459
Symbol 451 BitmapUsed by:452
Symbol 452 GraphicUses:451Used by:459
Symbol 453 BitmapUsed by:454
Symbol 454 GraphicUses:453Used by:459
Symbol 455 BitmapUsed by:456
Symbol 456 GraphicUses:455Used by:459
Symbol 457 BitmapUsed by:458
Symbol 458 GraphicUses:457Used by:459
Symbol 459 MovieClipUses:426 428 430 432 434 436 438 440 442 444 446 448 450 452 454 456 458Used by:522
Symbol 460 BitmapUsed by:461
Symbol 461 GraphicUses:460Used by:520
Symbol 462 BitmapUsed by:463
Symbol 463 GraphicUses:462Used by:520
Symbol 464 BitmapUsed by:465
Symbol 465 GraphicUses:464Used by:520
Symbol 466 BitmapUsed by:467
Symbol 467 GraphicUses:466Used by:520
Symbol 468 BitmapUsed by:469
Symbol 469 GraphicUses:468Used by:520
Symbol 470 BitmapUsed by:471
Symbol 471 GraphicUses:470Used by:520
Symbol 472 BitmapUsed by:473
Symbol 473 GraphicUses:472Used by:520
Symbol 474 BitmapUsed by:475
Symbol 475 GraphicUses:474Used by:520
Symbol 476 BitmapUsed by:477
Symbol 477 GraphicUses:476Used by:520
Symbol 478 BitmapUsed by:479
Symbol 479 GraphicUses:478Used by:520
Symbol 480 BitmapUsed by:481
Symbol 481 GraphicUses:480Used by:520
Symbol 482 BitmapUsed by:483
Symbol 483 GraphicUses:482Used by:520
Symbol 484 BitmapUsed by:485
Symbol 485 GraphicUses:484Used by:520
Symbol 486 BitmapUsed by:487
Symbol 487 GraphicUses:486Used by:520
Symbol 488 BitmapUsed by:489
Symbol 489 GraphicUses:488Used by:520
Symbol 490 BitmapUsed by:491
Symbol 491 GraphicUses:490Used by:520
Symbol 492 BitmapUsed by:493
Symbol 493 GraphicUses:492Used by:520
Symbol 494 BitmapUsed by:495
Symbol 495 GraphicUses:494Used by:520
Symbol 496 BitmapUsed by:497
Symbol 497 GraphicUses:496Used by:520
Symbol 498 BitmapUsed by:499
Symbol 499 GraphicUses:498Used by:520
Symbol 500 BitmapUsed by:501
Symbol 501 GraphicUses:500Used by:520
Symbol 502 BitmapUsed by:503
Symbol 503 GraphicUses:502Used by:520
Symbol 504 BitmapUsed by:505
Symbol 505 GraphicUses:504Used by:520
Symbol 506 BitmapUsed by:507
Symbol 507 GraphicUses:506Used by:520
Symbol 508 BitmapUsed by:509
Symbol 509 GraphicUses:508Used by:520
Symbol 510 BitmapUsed by:511
Symbol 511 GraphicUses:510Used by:520
Symbol 512 BitmapUsed by:513
Symbol 513 GraphicUses:512Used by:520
Symbol 514 BitmapUsed by:515
Symbol 515 GraphicUses:514Used by:520
Symbol 516 BitmapUsed by:517
Symbol 517 GraphicUses:516Used by:520
Symbol 518 BitmapUsed by:519
Symbol 519 GraphicUses:518Used by:520
Symbol 520 MovieClip {twistmesilly_fla.hint_1_63}Uses:461 463 465 467 469 471 473 475 477 479 481 483 485 487 489 491 493 495 497 499 501 503 505 507 509 511 513 515 517 519Used by:522
Symbol 521 MovieClip {twistmesilly_fla.selected_mouseover_64}Uses:23Used by:522
Symbol 522 MovieClip {BrickC}Uses:158 163 333 424 459 520 521
Symbol 523 BitmapUsed by:524
Symbol 524 GraphicUses:523Used by:531
Symbol 525 BitmapUsed by:526
Symbol 526 GraphicUses:525Used by:531
Symbol 527 BitmapUsed by:528
Symbol 528 GraphicUses:527Used by:531
Symbol 529 BitmapUsed by:530
Symbol 530 GraphicUses:529Used by:531
Symbol 531 MovieClip {blixt}Uses:524 526 528 530Used by:832
Symbol 532 GraphicUsed by:Timeline
Symbol 533 BitmapUsed by:534
Symbol 534 GraphicUses:533Used by:535
Symbol 535 MovieClipUses:534Used by:Timeline
Symbol 536 BitmapUsed by:537
Symbol 537 GraphicUses:536Used by:540
Symbol 538 FontUsed by:539 576 836 837 838 839 840 894 895 896 897
Symbol 539 EditableTextUses:538Used by:540
Symbol 540 MovieClipUses:537 539Used by:543
Symbol 541 FontUsed by:542 557 644 648 654 680 681 682 683 684 685 686 687 688 830 882
Symbol 542 EditableTextUses:541Used by:543
Symbol 543 MovieClipUses:540 542Used by:Timeline
Symbol 544 BitmapUsed by:545
Symbol 545 GraphicUses:544Used by:554
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546Used by:554
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548Used by:554
Symbol 550 BitmapUsed by:551
Symbol 551 GraphicUses:550Used by:554
Symbol 552 BitmapUsed by:553
Symbol 553 GraphicUses:552Used by:554
Symbol 554 MovieClip {twistmesilly_fla.power_on_off_4}Uses:545 547 549 551 553Used by:Timeline
Symbol 555 BitmapUsed by:556
Symbol 556 GraphicUses:555Used by:558
Symbol 557 EditableTextUses:541Used by:558
Symbol 558 MovieClipUses:556 557Used by:Timeline
Symbol 559 BitmapUsed by:560
Symbol 560 GraphicUses:559Used by:566
Symbol 561 MovieClipUses:22Used by:564
Symbol 562 GraphicUsed by:563
Symbol 563 MovieClipUses:562Used by:564
Symbol 564 MovieClipUses:561 563Used by:565
Symbol 565 MovieClip {twistmesilly_fla.bling_7}Uses:564Used by:566
Symbol 566 MovieClipUses:560 565Used by:940  Timeline
Symbol 567 BitmapUsed by:568
Symbol 568 GraphicUses:567Used by:575
Symbol 569 BitmapUsed by:570
Symbol 570 GraphicUses:569Used by:575
Symbol 571 BitmapUsed by:572
Symbol 572 GraphicUses:571Used by:575
Symbol 573 BitmapUsed by:574
Symbol 574 GraphicUses:573Used by:575
Symbol 575 MovieClip {twistmesilly_fla.scramble_11}Uses:568 570 572 574Used by:Timeline
Symbol 576 EditableTextUses:538Used by:Timeline
Symbol 577 MovieClipUsed by:Timeline
Symbol 578 BitmapUsed by:579
Symbol 579 GraphicUses:578Used by:580
Symbol 580 MovieClipUses:579Used by:584
Symbol 581 BitmapUsed by:582
Symbol 582 GraphicUses:581Used by:583
Symbol 583 MovieClipUses:582Used by:584
Symbol 584 MovieClip {twistmesilly_fla.levelprogress_13}Uses:580 583Used by:Timeline
Symbol 585 BitmapUsed by:586
Symbol 586 GraphicUses:585Used by:633
Symbol 587 EditableTextUses:100Used by:588
Symbol 588 MovieClipUses:587Used by:633
Symbol 589 GraphicUsed by:633
Symbol 590 GraphicUsed by:633
Symbol 591 GraphicUsed by:633
Symbol 592 GraphicUsed by:633
Symbol 593 GraphicUsed by:633
Symbol 594 GraphicUsed by:633
Symbol 595 GraphicUsed by:633
Symbol 596 GraphicUsed by:633
Symbol 597 GraphicUsed by:633
Symbol 598 GraphicUsed by:633
Symbol 599 GraphicUsed by:633
Symbol 600 GraphicUsed by:633
Symbol 601 GraphicUsed by:633
Symbol 602 BitmapUsed by:603
Symbol 603 GraphicUses:602Used by:633
Symbol 604 BitmapUsed by:605
Symbol 605 GraphicUses:604Used by:633
Symbol 606 BitmapUsed by:607
Symbol 607 GraphicUses:606Used by:633
Symbol 608 BitmapUsed by:609
Symbol 609 GraphicUses:608Used by:633
Symbol 610 BitmapUsed by:611
Symbol 611 GraphicUses:610Used by:633
Symbol 612 BitmapUsed by:613
Symbol 613 GraphicUses:612Used by:633
Symbol 614 BitmapUsed by:615
Symbol 615 GraphicUses:614Used by:633
Symbol 616 GraphicUsed by:633
Symbol 617 BitmapUsed by:618
Symbol 618 GraphicUses:617Used by:633
Symbol 619 GraphicUsed by:633
Symbol 620 BitmapUsed by:621
Symbol 621 GraphicUses:620Used by:633
Symbol 622 BitmapUsed by:623
Symbol 623 GraphicUses:622Used by:633
Symbol 624 BitmapUsed by:625
Symbol 625 GraphicUses:624Used by:633
Symbol 626 BitmapUsed by:627
Symbol 627 GraphicUses:626Used by:633
Symbol 628 GraphicUsed by:633
Symbol 629 BitmapUsed by:630
Symbol 630 GraphicUses:629Used by:633
Symbol 631 BitmapUsed by:632
Symbol 632 GraphicUses:631Used by:633
Symbol 633 MovieClip {twistmesilly_fla.LED_figur_sekvens_16}Uses:586 588 589 590 591 592 593 594 595 596 597 598 599 600 601 603 605 607 609 611 613 615 616 618 619 621 623 625 627 628 630 632Used by:Timeline
Symbol 634 BitmapUsed by:635
Symbol 635 GraphicUses:634Used by:661
Symbol 636 BitmapUsed by:637
Symbol 637 GraphicUses:636Used by:661
Symbol 638 BitmapUsed by:639
Symbol 639 GraphicUses:638Used by:661
Symbol 640 BitmapUsed by:641
Symbol 641 GraphicUses:640Used by:661
Symbol 642 BitmapUsed by:643
Symbol 643 GraphicUses:642Used by:661
Symbol 644 EditableTextUses:541Used by:645
Symbol 645 MovieClipUses:644Used by:661
Symbol 646 BitmapUsed by:647
Symbol 647 GraphicUses:646Used by:661
Symbol 648 EditableTextUses:541Used by:649
Symbol 649 MovieClipUses:648Used by:661
Symbol 650 BitmapUsed by:651
Symbol 651 GraphicUses:650Used by:661
Symbol 652 GraphicUsed by:661
Symbol 653 GraphicUsed by:661
Symbol 654 EditableTextUses:541Used by:655
Symbol 655 MovieClipUses:654Used by:661
Symbol 656 GraphicUsed by:661
Symbol 657 GraphicUsed by:661
Symbol 658 GraphicUsed by:661
Symbol 659 GraphicUsed by:661
Symbol 660 GraphicUsed by:661
Symbol 661 MovieClip {twistmesilly_fla.led_time_up_19}Uses:635 637 639 641 643 645 647 649 651 652 653 655 656 657 658 659 660Used by:662
Symbol 662 MovieClip {twistmesilly_fla.LED_sign_18}Uses:661Used by:Timeline
Symbol 663 BitmapUsed by:664
Symbol 664 GraphicUses:663Used by:665
Symbol 665 MovieClipUses:664Used by:Timeline
Symbol 666 GraphicUsed by:677
Symbol 667 GraphicUsed by:677
Symbol 668 GraphicUsed by:677
Symbol 669 GraphicUsed by:677
Symbol 670 GraphicUsed by:677
Symbol 671 GraphicUsed by:677
Symbol 672 GraphicUsed by:677
Symbol 673 GraphicUsed by:677
Symbol 674 GraphicUsed by:677
Symbol 675 GraphicUsed by:677
Symbol 676 GraphicUsed by:677
Symbol 677 MovieClip {twistmesilly_fla.levelbyte_24}Uses:666 667 668 669 670 671 672 673 674 675 676Used by:Timeline
Symbol 678 BitmapUsed by:679
Symbol 679 GraphicUses:678Used by:832
Symbol 680 EditableTextUses:541Used by:689
Symbol 681 EditableTextUses:541Used by:689
Symbol 682 EditableTextUses:541Used by:689
Symbol 683 EditableTextUses:541Used by:689
Symbol 684 EditableTextUses:541Used by:689
Symbol 685 EditableTextUses:541Used by:689
Symbol 686 EditableTextUses:541Used by:689
Symbol 687 EditableTextUses:541Used by:689
Symbol 688 EditableTextUses:541Used by:689
Symbol 689 MovieClip {twistmesilly_fla.text_sign_27}Uses:680 681 682 683 684 685 686 687 688Used by:832
Symbol 690 BitmapUsed by:691
Symbol 691 GraphicUses:690Used by:692
Symbol 692 MovieClipUses:691Used by:832
Symbol 693 BitmapUsed by:694
Symbol 694 GraphicUses:693Used by:695
Symbol 695 MovieClipUses:694Used by:832
Symbol 696 BitmapUsed by:697
Symbol 697 GraphicUses:696Used by:698
Symbol 698 MovieClipUses:697Used by:832 940
Symbol 699 BitmapUsed by:702 705 706 707 708 710 711 712 713 719 728 729 735 736 749 774 776 777 778 784
Symbol 700 BitmapUsed by:702 704 706 708 709 711 712 718 727 729 735 736 738 748 774 775 778 783
Symbol 701 BitmapUsed by:702 703 711
Symbol 702 GraphicUses:699 700 701Used by:734 773 807
Symbol 703 GraphicUses:701Used by:734 773 807
Symbol 704 GraphicUses:700Used by:734 773 807
Symbol 705 GraphicUses:699Used by:734 773 807
Symbol 706 GraphicUses:699 700Used by:734 773 807
Symbol 707 GraphicUses:699Used by:734 773 807
Symbol 708 GraphicUses:699 700Used by:734 773 807
Symbol 709 GraphicUses:700Used by:734 773 807
Symbol 710 GraphicUses:699Used by:734 773 807
Symbol 711 GraphicUses:699 700 701Used by:734 773 807
Symbol 712 GraphicUses:699 700Used by:734
Symbol 713 GraphicUses:699Used by:734
Symbol 714 GraphicUsed by:734
Symbol 715 GraphicUsed by:734
Symbol 716 GraphicUsed by:734 773 807
Symbol 717 GraphicUsed by:734
Symbol 718 GraphicUses:700Used by:734
Symbol 719 GraphicUses:699Used by:734
Symbol 720 GraphicUsed by:734 773
Symbol 721 GraphicUsed by:734 773
Symbol 722 GraphicUsed by:734
Symbol 723 GraphicUsed by:734
Symbol 724 GraphicUsed by:734
Symbol 725 GraphicUsed by:734
Symbol 726 GraphicUsed by:734
Symbol 727 GraphicUses:700Used by:734
Symbol 728 GraphicUses:699Used by:734
Symbol 729 GraphicUses:699 700Used by:734
Symbol 730 GraphicUsed by:734
Symbol 731 GraphicUsed by:734
Symbol 732 GraphicUsed by:734
Symbol 733 GraphicUsed by:734
Symbol 734 MovieClip {twistmesilly_fla.skyltfigur1_31}Uses:702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733Used by:832
Symbol 735 GraphicUses:699 700Used by:773
Symbol 736 GraphicUses:699 700Used by:773
Symbol 737 GraphicUsed by:773
Symbol 738 GraphicUses:700Used by:773
Symbol 739 GraphicUsed by:773
Symbol 740 GraphicUsed by:773
Symbol 741 GraphicUsed by:773
Symbol 742 GraphicUsed by:773
Symbol 743 GraphicUsed by:773
Symbol 744 GraphicUsed by:773
Symbol 745 GraphicUsed by:773
Symbol 746 GraphicUsed by:773
Symbol 747 GraphicUsed by:773
Symbol 748 GraphicUses:700Used by:773
Symbol 749 GraphicUses:699Used by:773
Symbol 750 GraphicUsed by:773
Symbol 751 GraphicUsed by:773
Symbol 752 GraphicUsed by:773
Symbol 753 GraphicUsed by:773
Symbol 754 GraphicUsed by:773
Symbol 755 GraphicUsed by:773
Symbol 756 GraphicUsed by:773
Symbol 757 GraphicUsed by:773
Symbol 758 GraphicUsed by:773
Symbol 759 GraphicUsed by:773
Symbol 760 GraphicUsed by:773
Symbol 761 GraphicUsed by:773
Symbol 762 GraphicUsed by:773
Symbol 763 GraphicUsed by:773
Symbol 764 GraphicUsed by:773
Symbol 765 GraphicUsed by:773
Symbol 766 GraphicUsed by:773
Symbol 767 GraphicUsed by:773
Symbol 768 GraphicUsed by:773
Symbol 769 GraphicUsed by:773
Symbol 770 GraphicUsed by:773
Symbol 771 GraphicUsed by:773
Symbol 772 GraphicUsed by:773
Symbol 773 MovieClip {twistmesilly_fla.skyltfigur1_ledsen_32}Uses:702 703 704 705 706 707 708 709 710 711 735 736 737 738 739 740 716 741 720 721 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772Used by:832
Symbol 774 GraphicUses:699 700Used by:807
Symbol 775 GraphicUses:700Used by:807
Symbol 776 GraphicUses:699Used by:807
Symbol 777 GraphicUses:699Used by:807
Symbol 778 GraphicUses:699 700Used by:807
Symbol 779 GraphicUsed by:807
Symbol 780 GraphicUsed by:807
Symbol 781 GraphicUsed by:807
Symbol 782 GraphicUsed by:807
Symbol 783 GraphicUses:700Used by:807
Symbol 784 GraphicUses:699Used by:807
Symbol 785 GraphicUsed by:807
Symbol 786 GraphicUsed by:807
Symbol 787 GraphicUsed by:807
Symbol 788 GraphicUsed by:807
Symbol 789 GraphicUsed by:807
Symbol 790 GraphicUsed by:807
Symbol 791 GraphicUsed by:807
Symbol 792 GraphicUsed by:807
Symbol 793 GraphicUsed by:807
Symbol 794 GraphicUsed by:807
Symbol 795 GraphicUsed by:807
Symbol 796 GraphicUsed by:807
Symbol 797 GraphicUsed by:807
Symbol 798 GraphicUsed by:807
Symbol 799 GraphicUsed by:807
Symbol 800 GraphicUsed by:807
Symbol 801 GraphicUsed by:807
Symbol 802 GraphicUsed by:807
Symbol 803 GraphicUsed by:807
Symbol 804 GraphicUsed by:807
Symbol 805 GraphicUsed by:807
Symbol 806 GraphicUsed by:807
Symbol 807 MovieClip {twistmesilly_fla.skyltfigur1_glad_33}Uses:702 703 704 705 706 707 708 709 710 711 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 716 794 795 796 797 798 799 800 801 802 803 804 805 806Used by:832
Symbol 808 BitmapUsed by:809
Symbol 809 GraphicUses:808Used by:812
Symbol 810 GraphicUsed by:812 815 818
Symbol 811 GraphicUsed by:812 815 818
Symbol 812 MovieClip {twistmesilly_fla.skyltfigur2_ledsen_34}Uses:809 810 811Used by:832
Symbol 813 BitmapUsed by:814
Symbol 814 GraphicUses:813Used by:815
Symbol 815 MovieClip {twistmesilly_fla.skyltfigur2_neutral_35}Uses:814 810 811Used by:832
Symbol 816 BitmapUsed by:817
Symbol 817 GraphicUses:816Used by:818
Symbol 818 MovieClip {twistmesilly_fla.skyltfigur2_glad_36}Uses:817 810 811Used by:832
Symbol 819 BitmapUsed by:820
Symbol 820 GraphicUses:819Used by:821
Symbol 821 MovieClipUses:820Used by:832
Symbol 822 BitmapUsed by:823
Symbol 823 GraphicUses:822Used by:824
Symbol 824 MovieClipUses:823Used by:832
Symbol 825 BitmapUsed by:826
Symbol 826 GraphicUses:825Used by:827
Symbol 827 MovieClipUses:826Used by:832 940
Symbol 828 BitmapUsed by:829
Symbol 829 GraphicUses:828Used by:832
Symbol 830 TextUses:541Used by:831
Symbol 831 MovieClip {twistmesilly_fla.ledstar_40}Uses:830Used by:832
Symbol 832 MovieClip {twistmesilly_fla.skylt_26}Uses:679 689 692 695 698 734 773 807 812 815 818 821 824 827 829 831 531Used by:833
Symbol 833 MovieClip {twistmesilly_fla.skyltenanimation_25}Uses:832Used by:Timeline
Symbol 834 BitmapUsed by:835
Symbol 835 GraphicUses:834Used by:940
Symbol 836 EditableTextUses:538Used by:940
Symbol 837 EditableTextUses:538Used by:940
Symbol 838 EditableTextUses:538Used by:940
Symbol 839 EditableTextUses:538Used by:940
Symbol 840 EditableTextUses:538Used by:940
Symbol 841 BitmapUsed by:842
Symbol 842 GraphicUses:841Used by:843
Symbol 843 MovieClipUses:842Used by:940
Symbol 844 BitmapUsed by:845 866 867
Symbol 845 GraphicUses:844Used by:940
Symbol 846 BitmapUsed by:848
Symbol 847 BitmapUsed by:848 898
Symbol 848 GraphicUses:846 847Used by:940
Symbol 849 BitmapUsed by:850 870 871 872 878 888 889
Symbol 850 GraphicUses:849Used by:940
Symbol 851 BitmapUsed by:852
Symbol 852 GraphicUses:851Used by:940
Symbol 853 BitmapUsed by:854
Symbol 854 GraphicUses:853Used by:940
Symbol 855 BitmapUsed by:856
Symbol 856 GraphicUses:855Used by:857
Symbol 857 MovieClipUses:856Used by:940
Symbol 858 BitmapUsed by:859
Symbol 859 GraphicUses:858Used by:940
Symbol 860 BitmapUsed by:861
Symbol 861 GraphicUses:860Used by:940
Symbol 862 BitmapUsed by:863
Symbol 863 GraphicUses:862Used by:940
Symbol 864 BitmapUsed by:865
Symbol 865 GraphicUses:864Used by:940
Symbol 866 GraphicUses:844Used by:940
Symbol 867 GraphicUses:844Used by:940
Symbol 868 BitmapUsed by:869 870 871 873 878 879 888 889
Symbol 869 GraphicUses:868Used by:940
Symbol 870 GraphicUses:868 849Used by:940
Symbol 871 GraphicUses:868 849Used by:940
Symbol 872 GraphicUses:849Used by:940
Symbol 873 GraphicUses:868Used by:940
Symbol 874 BitmapUsed by:875
Symbol 875 GraphicUses:874Used by:940
Symbol 876 BitmapUsed by:877
Symbol 877 GraphicUses:876Used by:940
Symbol 878 GraphicUses:868 849Used by:940
Symbol 879 GraphicUses:868Used by:940
Symbol 880 BitmapUsed by:881
Symbol 881 GraphicUses:880Used by:940
Symbol 882 EditableTextUses:541Used by:883
Symbol 883 MovieClipUses:882Used by:940
Symbol 884 BitmapUsed by:885
Symbol 885 GraphicUses:884Used by:940
Symbol 886 BitmapUsed by:887
Symbol 887 GraphicUses:886Used by:940
Symbol 888 GraphicUses:868 849Used by:940
Symbol 889 GraphicUses:868 849Used by:940
Symbol 890 BitmapUsed by:891
Symbol 891 GraphicUses:890Used by:940
Symbol 892 BitmapUsed by:893
Symbol 893 GraphicUses:892Used by:940
Symbol 894 EditableTextUses:538Used by:940
Symbol 895 EditableTextUses:538Used by:940
Symbol 896 EditableTextUses:538Used by:940
Symbol 897 EditableTextUses:538Used by:940
Symbol 898 GraphicUses:847Used by:940
Symbol 899 BitmapUsed by:900
Symbol 900 GraphicUses:899Used by:940
Symbol 901 BitmapUsed by:902
Symbol 902 GraphicUses:901Used by:940
Symbol 903 BitmapUsed by:904
Symbol 904 GraphicUses:903Used by:940
Symbol 905 GraphicUses:388Used by:940
Symbol 906 BitmapUsed by:907
Symbol 907 GraphicUses:906Used by:940
Symbol 908 BitmapUsed by:909
Symbol 909 GraphicUses:908Used by:940
Symbol 910 BitmapUsed by:911
Symbol 911 GraphicUses:910Used by:940
Symbol 912 BitmapUsed by:913
Symbol 913 GraphicUses:912Used by:940
Symbol 914 BitmapUsed by:915
Symbol 915 GraphicUses:914Used by:940
Symbol 916 BitmapUsed by:917
Symbol 917 GraphicUses:916Used by:940
Symbol 918 BitmapUsed by:919
Symbol 919 GraphicUses:918Used by:940
Symbol 920 BitmapUsed by:921
Symbol 921 GraphicUses:920Used by:940
Symbol 922 BitmapUsed by:923
Symbol 923 GraphicUses:922Used by:940
Symbol 924 BitmapUsed by:925
Symbol 925 GraphicUses:924Used by:940
Symbol 926 BitmapUsed by:927
Symbol 927 GraphicUses:926Used by:940
Symbol 928 BitmapUsed by:929
Symbol 929 GraphicUses:928Used by:940
Symbol 930 BitmapUsed by:931
Symbol 931 GraphicUses:930Used by:940
Symbol 932 BitmapUsed by:933
Symbol 933 GraphicUses:932Used by:940
Symbol 934 BitmapUsed by:935
Symbol 935 GraphicUses:934Used by:940
Symbol 936 BitmapUsed by:937
Symbol 937 GraphicUses:936Used by:940
Symbol 938 BitmapUsed by:939
Symbol 939 GraphicUses:938Used by:940
Symbol 940 MovieClip {twistmesilly_fla.intro_42}Uses:835 836 837 838 839 840 566 843 845 848 850 852 854 857 859 861 863 865 866 867 869 870 871 872 873 875 877 878 879 881 883 885 887 888 889 827 891 893 894 895 896 897 898 698 900 902 904 211 905 907 213 909 215 911 217 913 219 915 917 221 919 223 921 225 923 227 925 229 927 231 929 233 931 235 933 237 935 239 937 241 939 243 245 247 249Used by:Timeline
Symbol 941 BitmapUsed by:942
Symbol 942 GraphicUses:941Used by:951
Symbol 943 BitmapUsed by:944
Symbol 944 GraphicUses:943Used by:951
Symbol 945 BitmapUsed by:946
Symbol 946 GraphicUses:945Used by:951
Symbol 947 BitmapUsed by:948
Symbol 948 GraphicUses:947Used by:951
Symbol 949 BitmapUsed by:950
Symbol 950 GraphicUses:949Used by:951
Symbol 951 MovieClip {twistmesilly_fla.soundtoggle_46}Uses:942 944 946 948 950Used by:Timeline
Symbol 952 FontUsed by:953 954 955 956
Symbol 953 EditableTextUses:952Used by:Timeline
Symbol 954 EditableTextUses:952Used by:Timeline
Symbol 955 EditableTextUses:952Used by:Timeline
Symbol 956 EditableTextUses:952Used by:Timeline

Instance Names

"bg_mc"Frame 1Symbol 535 MovieClip
"score_mc"Frame 1Symbol 543 MovieClip
"exitButton_mc"Frame 1Symbol 554 MovieClip {twistmesilly_fla.power_on_off_4}
"level_mc"Frame 1Symbol 558 MovieClip
"GameLogo_mc"Frame 1Symbol 566 MovieClip
"scramble_mc"Frame 1Symbol 575 MovieClip {twistmesilly_fla.scramble_11}
"scramble_button_txt"Frame 1Symbol 576 EditableText
"game_holder_mc"Frame 1Symbol 577 MovieClip
"progress_mc"Frame 1Symbol 584 MovieClip {twistmesilly_fla.levelprogress_13}
"time1_mc"Frame 1Symbol 633 MovieClip {twistmesilly_fla.LED_figur_sekvens_16}
"time2_mc"Frame 1Symbol 633 MovieClip {twistmesilly_fla.LED_figur_sekvens_16}
"time3_mc"Frame 1Symbol 633 MovieClip {twistmesilly_fla.LED_figur_sekvens_16}
"led_sign_mc"Frame 1Symbol 662 MovieClip {twistmesilly_fla.LED_sign_18}
"LevelByteExplosion_mc"Frame 1Symbol 677 MovieClip {twistmesilly_fla.levelbyte_24}
"blingStarsHolder_mc"Frame 1Symbol 577 MovieClip
"level_sign_anim_mc"Frame 1Symbol 833 MovieClip {twistmesilly_fla.skyltenanimation_25}
"intro_mc"Frame 1Symbol 940 MovieClip {twistmesilly_fla.intro_42}
"soundButton_mc"Frame 1Symbol 951 MovieClip {twistmesilly_fla.soundtoggle_46}
"debugRenderFPS_txt"Frame 1Symbol 953 EditableText
"debugTickTime_txt"Frame 1Symbol 954 EditableText
"seed_txt"Frame 1Symbol 955 EditableText
"tick_txt"Frame 1Symbol 956 EditableText
"bling_mc"Symbol 28 MovieClip {bling2} Frame 1Symbol 27 MovieClip {twistmesilly_fla.bling_87}
"score_txt"Symbol 102 MovieClip Frame 1Symbol 101 EditableText
"score_mc"Symbol 103 MovieClip {score_animation} Frame 1Symbol 102 MovieClip
"sparkle_mc"Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50} Frame 1Symbol 168 MovieClip
"colourbomb_blue_mc"Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50} Frame 1Symbol 209 MovieClip {twistmesilly_fla.blue_colourbomb_52}
"colourbomb_cerise_mc"Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50} Frame 1Symbol 250 MovieClip {twistmesilly_fla.cerise_colourbomb_53}
"colourbomb_red_mc"Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50} Frame 1Symbol 291 MovieClip {twistmesilly_fla.red_colourbomb_54}
"colourbomb_green_mc"Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50} Frame 1Symbol 332 MovieClip {twistmesilly_fla.green_colourbomb_55}
"left_lightning_mc"Symbol 424 MovieClip Frame 5Symbol 344 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 5Symbol 344 MovieClip
"up_lightning_mc"Symbol 424 MovieClip Frame 10Symbol 344 MovieClip
"down_lightning_mc"Symbol 424 MovieClip Frame 10Symbol 344 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 10Symbol 344 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 10Symbol 344 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 15Symbol 362 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 15Symbol 362 MovieClip
"up_lightning_mc"Symbol 424 MovieClip Frame 20Symbol 362 MovieClip
"down_lightning_mc"Symbol 424 MovieClip Frame 20Symbol 362 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 20Symbol 362 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 20Symbol 362 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 25Symbol 380 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 25Symbol 380 MovieClip
"up_lightning_mc"Symbol 424 MovieClip Frame 30Symbol 380 MovieClip
"down_lightning_mc"Symbol 424 MovieClip Frame 30Symbol 380 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 30Symbol 380 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 30Symbol 380 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 35Symbol 398 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 35Symbol 398 MovieClip
"up_lightning_mc"Symbol 424 MovieClip Frame 40Symbol 398 MovieClip
"down_lightning_mc"Symbol 424 MovieClip Frame 40Symbol 398 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 40Symbol 398 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 40Symbol 398 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 45Symbol 416 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 45Symbol 416 MovieClip
"up_lightning_mc"Symbol 424 MovieClip Frame 50Symbol 416 MovieClip
"down_lightning_mc"Symbol 424 MovieClip Frame 50Symbol 416 MovieClip
"left_lightning_mc"Symbol 424 MovieClip Frame 50Symbol 416 MovieClip
"right_lightning_mc"Symbol 424 MovieClip Frame 50Symbol 416 MovieClip
"card1_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 158 MovieClip
"card2_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 163 MovieClip {twistmesilly_fla.brick_4_49}
"special_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 333 MovieClip {twistmesilly_fla.alla_powerups_50}
"lights_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 424 MovieClip
"sidewayblast_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 459 MovieClip
"hint_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 520 MovieClip {twistmesilly_fla.hint_1_63}
"mouse_over_mc"Symbol 522 MovieClip {BrickC} Frame 1Symbol 521 MovieClip {twistmesilly_fla.selected_mouseover_64}
"gui_score_text_txt"Symbol 540 MovieClip Frame 1Symbol 539 EditableText
"score_inner_mc"Symbol 543 MovieClip Frame 1Symbol 540 MovieClip
"score_txt"Symbol 543 MovieClip Frame 1Symbol 542 EditableText
"level_txt"Symbol 558 MovieClip Frame 1Symbol 557 EditableText
"star3_mc"Symbol 566 MovieClip Frame 1Symbol 565 MovieClip {twistmesilly_fla.bling_7}
"star1_mc"Symbol 566 MovieClip Frame 1Symbol 565 MovieClip {twistmesilly_fla.bling_7}
"star2_mc"Symbol 566 MovieClip Frame 1Symbol 565 MovieClip {twistmesilly_fla.bling_7}
"time_txt"Symbol 588 MovieClip Frame 1Symbol 587 EditableText
"timeLed_mc"Symbol 633 MovieClip {twistmesilly_fla.LED_figur_sekvens_16} Frame 1Symbol 588 MovieClip
"text_txt"Symbol 645 MovieClip Frame 1Symbol 644 EditableText
"text_txt"Symbol 649 MovieClip Frame 1Symbol 648 EditableText
"text_txt"Symbol 655 MovieClip Frame 1Symbol 654 EditableText
"timesup_mc"Symbol 661 MovieClip {twistmesilly_fla.led_time_up_19} Frame 5Symbol 645 MovieClip
"timesup_mc"Symbol 661 MovieClip {twistmesilly_fla.led_time_up_19} Frame 6Symbol 649 MovieClip
"timesup_mc"Symbol 661 MovieClip {twistmesilly_fla.led_time_up_19} Frame 7Symbol 655 MovieClip
"sign_mc"Symbol 662 MovieClip {twistmesilly_fla.LED_sign_18} Frame 1Symbol 661 MovieClip {twistmesilly_fla.led_time_up_19}
"heading_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 680 EditableText
"score_text_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 681 EditableText
"score_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 682 EditableText
"bonus_text_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 683 EditableText
"bonus_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 684 EditableText
"total_score_text_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 685 EditableText
"total_score_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 686 EditableText
"line_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 687 EditableText
"click_text_txt"Symbol 689 MovieClip {twistmesilly_fla.text_sign_27} Frame 1Symbol 688 EditableText
"text_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 689 MovieClip {twistmesilly_fla.text_sign_27}
"Figure1Neutral_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 734 MovieClip {twistmesilly_fla.skyltfigur1_31}
"Figure1Sad_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 773 MovieClip {twistmesilly_fla.skyltfigur1_ledsen_32}
"Figure1Glad_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 807 MovieClip {twistmesilly_fla.skyltfigur1_glad_33}
"Figure2Sad_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 812 MovieClip {twistmesilly_fla.skyltfigur2_ledsen_34}
"Figure2Neutral_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 815 MovieClip {twistmesilly_fla.skyltfigur2_neutral_35}
"Figure2Glad_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 1Symbol 818 MovieClip {twistmesilly_fla.skyltfigur2_glad_36}
"star2_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 23Symbol 831 MovieClip {twistmesilly_fla.ledstar_40}
"star1_mc"Symbol 832 MovieClip {twistmesilly_fla.skylt_26} Frame 23Symbol 831 MovieClip {twistmesilly_fla.ledstar_40}
"level_sign_mc"Symbol 833 MovieClip {twistmesilly_fla.skyltenanimation_25} Frame 1Symbol 832 MovieClip {twistmesilly_fla.skylt_26}
"like_this_txt"Symbol 883 MovieClip Frame 1Symbol 882 EditableText
"heading1_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 1Symbol 836 EditableText
"text2_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 1Symbol 837 EditableText
"text1_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 1Symbol 838 EditableText
"game_starts_in_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 1Symbol 839 EditableText
"click_to_start_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 1Symbol 840 EditableText
"IntroLogo_mc"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 1Symbol 566 MovieClip
"like_this_mc"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 62Symbol 883 MovieClip
"heading2_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 226Symbol 894 EditableText
"text4_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 226Symbol 895 EditableText
"text3_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 226Symbol 896 EditableText
"text5_txt"Symbol 940 MovieClip {twistmesilly_fla.intro_42} Frame 226Symbol 897 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/50/246343/info.shtml
Created: 16/4 -2022 05:31:07 Last modified: 16/4 -2022 05:31:07 Server time: 31/10 -2024 23:33:09