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

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

Age of Japan 2.swf

This is the info page for
Flash #48154

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


Text
High Scores

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Player 1
Player 2
Player 3
Player 4
Player 5
Player 6
Player 7
Player 8
Player 9
Player 10

999,999,999
999,999,999
999,999,999
999,999,999
999,999,999
999,999,999
999,999,999
999,999,999
999,999,999
999,999,999

Status Text Here

9999-99-99
0000-00-00
1111-11-11
2222-22-22
3333-33-33
4444-44-44
5555-55-55
6666-66-66
7777-77-77
8888-88-88

НАСТРОЙКИ

ActionScript [AS3]

Section 1
//AFont (AFont) package { import flash.text.*; public dynamic class AFont extends Font { } }//package
Section 2
//back_1 (back_1) package { import flash.display.*; public dynamic class back_1 extends BitmapData { public function back_1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 3
//bar_empty (bar_empty) package { import flash.display.*; public dynamic class bar_empty extends BitmapData { public function bar_empty(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 4
//bar_frozen (bar_frozen) package { import flash.display.*; public dynamic class bar_frozen extends BitmapData { public function bar_frozen(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 5
//bar_full (bar_full) package { import flash.display.*; public dynamic class bar_full extends BitmapData { public function bar_full(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 6
//blackhole_a (blackhole_a) package { import flash.display.*; public dynamic class blackhole_a extends BitmapData { public function blackhole_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 7
//blackhole_d (blackhole_d) package { import flash.display.*; public dynamic class blackhole_d extends BitmapData { public function blackhole_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 8
//blackhole_n (blackhole_n) package { import flash.display.*; public dynamic class blackhole_n extends BitmapData { public function blackhole_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 9
//BlackHoleBase (BlackHoleBase) package { public class BlackHoleBase { private var cos; public var dist_offs_x:Number; public var dist_offs_y:Number; private var sin; public var blackHoleX:int; public var blackHoleY:int; public var childs_:Array; public var center_:cell_item_japan; private var agame_:game; public var HoleY:Number; public var velocityRot:Number; private var vr:Number; public var HoleX:Number; public function BlackHoleBase(_arg1:cell_item_japan, _arg2:game){ center_ = _arg1; agame_ = _arg2; this.childs_ = new Array(); vr = 0.5; cos = Math.cos(vr); sin = Math.sin(vr); velocityRot = 0.001; dist_offs_x = 0; dist_offs_y = 0; blackHoleX = _arg1.col; blackHoleY = _arg1.row; HoleX = (_arg1.x + 22); HoleY = (_arg1.y + 22); agame_.soundFactory.playSound(SoundFactory.SND_BLACK_HOLE); } public function hasItem(_arg1:cell_item_japan):Boolean{ var _local2:int; if (center_ == _arg1){ return (true); }; _local2 = 0; while (_local2 < this.childs_.length) { if (this.childs_[_local2] == _arg1){ return (true); }; _local2++; }; return (false); } public function Process(){ var _local1:int; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:int; _local1 = 0; while (_local1 < childs_.length) { childs_[_local1].width = (childs_[_local1].width - 0.8); childs_[_local1].height = (childs_[_local1].height - 0.8); dist_offs_x = (dist_offs_x + 0.3); dist_offs_y = (dist_offs_y + 0.3); _local2 = ((childs_[_local1].x - HoleX) + (childs_[_local1].width / 2)); _local3 = ((childs_[_local1].y - HoleY) + (childs_[_local1].height / 2)); if (_local2 > 0){ dist_offs_x = -(Math.abs(dist_offs_x)); } else { dist_offs_x = Math.abs(dist_offs_x); }; if (_local3 > 0){ dist_offs_y = -(Math.abs(dist_offs_y)); } else { dist_offs_y = Math.abs(dist_offs_y); }; _local4 = ((cos * _local2) - (sin * _local3)); _local5 = ((cos * _local3) + (sin * _local2)); childs_[_local1].x = (((HoleX + _local4) - (childs_[_local1].width / 2)) + dist_offs_x); childs_[_local1].y = (((HoleY + _local5) - (childs_[_local1].height / 2)) + dist_offs_y); if (childs_[_local1].width < 15){ childs_[_local1].startRemoving(cell_item_japan.REMOVING_ONLY); childs_.splice(_local1, 1); }; if (childs_.length == 0){ this.center_.startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); _local6 = 0; while (_local6 < this.agame_.aboard.blackHoles.length) { if (this.agame_.aboard.blackHoles[_local6] == this){ this.agame_.aboard.blackHoles.splice(_local6, 1); }; delete ??getglobalscope [this]; _local6++; }; }; _local1++; }; } public function removeHole(){ delete ??getglobalscope [this]; } public function addChildItem(_arg1:cell_item_japan){ if (((!((_arg1 == null))) && ((_arg1.y >= game_vars.MinCellYpos)))){ this.childs_.push(_arg1); }; } } }//package
Section 10
//bomb_a (bomb_a) package { import flash.display.*; public dynamic class bomb_a extends BitmapData { public function bomb_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 11
//bomb_d (bomb_d) package { import flash.display.*; public dynamic class bomb_d extends BitmapData { public function bomb_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 12
//bomb_n (bomb_n) package { import flash.display.*; public dynamic class bomb_n extends BitmapData { public function bomb_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 13
//bonus_blackhole (bonus_blackhole) package { import flash.media.*; public dynamic class bonus_blackhole extends Sound { } }//package
Section 14
//BonusBlackHole (BonusBlackHole) package { import flash.display.*; import flash.utils.*; public class BonusBlackHole implements bonusitem { private var bonusImage_:Bitmap; private var agame_:game; public function BonusBlackHole(_arg1:game){ var _local2:Class; var _local3:BitmapData; super(); this.agame_ = _arg1; _local2 = (getDefinitionByName("blackhole_n") as Class); _local3 = new _local2(0, 0); bonusImage_ = new Bitmap(_local3); } public function getname():String{ return ("blackhole"); } public function GetBonusImage():Bitmap{ return (bonusImage_); } public function inShopClick(){ agame_.afactory_game_bonus.UpdateStores("blackhole"); } public function Fire(_arg1:int, _arg2:int):void{ var _local3:*; var _local4:*; var _local5:int; var _local6:int; var _local7:BlackHoleBase; agame_.soundFactory.playSound(SoundFactory.SND_BLACK_HOLE); trace("Bomb Bummed"); _local3 = _arg1; _local4 = _arg2; _local5 = _local3; _local6 = _local4; trace("Bomb Bummed:", _local3, _local4); _local7 = new BlackHoleBase(agame_.aboard.boardArray[_arg2][_arg1].theItem, agame_); agame_.aboard.blackHoles.push(_local7); if ((((((((_local3 > 0)) && ((_local4 > 0)))) && ((_local3 < (gameconst.CELLS_XCOUNT - 1))))) && ((_local4 < (gameconst.CELLS_YCOUNT - 1))))){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if ((((_local3 == 0)) && ((_local4 == 0)))){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); } else { if ((((_local3 == (gameconst.CELLS_XCOUNT - 1))) && ((_local4 == 0)))){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if ((((_local3 == (gameconst.CELLS_XCOUNT - 1))) && ((_local4 == (gameconst.CELLS_YCOUNT - 1))))){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); } else { if ((((_local3 == (gameconst.CELLS_XCOUNT - 1))) && ((_local4 == (gameconst.CELLS_YCOUNT - 1))))){ _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); } else { if (_local3 == 0){ _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); } else { if (_local3 == (gameconst.CELLS_XCOUNT - 1)){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if (_local4 == 0){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if (_local4 == (gameconst.CELLS_YCOUNT - 1)){ _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 - 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); _local7.addChildItem(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); _local7.addChildItem(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); }; }; }; }; }; }; }; }; }; } } }//package
Section 15
//BonusBomb (BonusBomb) package { import flash.display.*; import flash.utils.*; public class BonusBomb implements bonusitem { private var bonusImage_:Bitmap; private var agame_:game; public function BonusBomb(_arg1:game){ var _local2:Class; var _local3:BitmapData; super(); this.agame_ = _arg1; _local2 = (getDefinitionByName("bomb_n") as Class); _local3 = new _local2(0, 0); bonusImage_ = new Bitmap(_local3); } public function getname():String{ return ("bomb"); } public function add2BombArr(_arg1:cell_item_japan){ if (((!((_arg1 == null))) && ((_arg1.y >= game_vars.MinCellYpos)))){ if (Math.random() < 0.5){ _arg1.bombstate = -1; } else { _arg1.bombstate = 1; }; _arg1.width = (_arg1.width - ((Math.random() * 10) - 2)); _arg1.height = _arg1.width; agame_.aboard.BombArr.push(_arg1); }; } public function GetBonusImage():Bitmap{ return (bonusImage_); } public function inShopClick(){ agame_.afactory_game_bonus.UpdateStores("bomb"); } public function Fire(_arg1:int, _arg2:int):void{ var _local3:*; var _local4:*; trace("Bomb Bummed"); _local3 = _arg1; _local4 = _arg2; trace("Bomb Bummed:", _local3, _local4); agame_.aboard.bombcount = 0; agame_.aboard.boardState = gameboard.STATE_BOMBING; add2BombArr(agame_.aboard.boardArray[_local4][_local3].theItem); if ((((((((_local3 > 0)) && ((_local4 > 0)))) && ((_local3 < (gameconst.CELLS_XCOUNT - 1))))) && ((_local4 < (gameconst.CELLS_YCOUNT - 1))))){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); } else { if ((((_local3 == 0)) && ((_local4 == 0)))){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); } else { if ((((_local3 == (gameconst.CELLS_XCOUNT - 1))) && ((_local4 == 0)))){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if ((((_local3 == (gameconst.CELLS_XCOUNT - 1))) && ((_local4 == (gameconst.CELLS_YCOUNT - 1))))){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); } else { if ((((_local3 == (gameconst.CELLS_XCOUNT - 1))) && ((_local4 == (gameconst.CELLS_YCOUNT - 1))))){ add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); } else { if (_local3 == 0){ add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); } else { if (_local3 == (gameconst.CELLS_XCOUNT - 1)){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if (_local4 == 0){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 + 1)][(_local3 - 1)].theItem); } else { if (_local4 == (gameconst.CELLS_YCOUNT - 1)){ add2BombArr(agame_.aboard.boardArray[_local4][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 - 1)].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][_local3].theItem); add2BombArr(agame_.aboard.boardArray[(_local4 - 1)][(_local3 + 1)].theItem); add2BombArr(agame_.aboard.boardArray[_local4][(_local3 + 1)].theItem); }; }; }; }; }; }; }; }; }; } } }//package
Section 16
//BonusFlash (BonusFlash) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.filters.*; import fl.motion.*; public class BonusFlash implements bonusitem { private var bonusImage_:Bitmap; private var lightning:Sprite; private var fr:int;// = 0 private var agame_:game; private var rad:Number; public function BonusFlash(_arg1:game){ var _local2:Class; var _local3:BitmapData; var _local4:*; var _local5:Array; fr = 0; super(); this.agame_ = _arg1; lightning = new Sprite(); _local2 = (getDefinitionByName("flash_a") as Class); _local3 = new _local2(0, 0); bonusImage_ = new Bitmap(_local3); bonusImage_.filters = [new ColorMatrixFilter([1.5, 0, 0, 0, 0, 0, 1.5, 0, 0, 0, 0, 0, 1.5, 0, 0, 0, 0, 0, 1, 0])]; bonusImage_.alpha = 0.8; bonusImage_.x = -4; bonusImage_.y = -4; _local4 = new GlowFilter(); _local4.color = 0xFFFF; _local5 = new Array(); _local5.push(_local4); bonusImage_.filters = _local5; rad = (rad = (Math.PI / 180)); } public function getname():String{ return ("flash"); } public function inShopClick(){ agame_.afactory_game_bonus.UpdateStores("flash"); } public function GetBonusImage():Bitmap{ return (bonusImage_); } public function Fire(_arg1:int, _arg2:int):void{ trace("BonusFlash Bummed:", _arg1, _arg2); agame_.aboard.isFlashing = true; if (((((((_arg1 - 2) >= 0)) && (!((agame_.aboard.boardArray[_arg2][(_arg1 - 2)].theItem == null))))) && ((agame_.aboard.boardArray[_arg2][(_arg1 - 2)].theItem.y >= game_vars.MinCellYpos)))){ agame_.aboard.boardArray[_arg2][(_arg1 - 2)].theItem.startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; if (((((((_arg1 - 1) >= 0)) && (!((agame_.aboard.boardArray[_arg2][(_arg1 - 1)].theItem == null))))) && ((agame_.aboard.boardArray[_arg2][(_arg1 - 1)].theItem.y >= game_vars.MinCellYpos)))){ agame_.aboard.boardArray[_arg2][(_arg1 - 1)].theItem.startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; if (((((((_arg1 + 1) <= (gameconst.CELLS_XCOUNT - 1))) && (!((agame_.aboard.boardArray[_arg2][(_arg1 + 1)].theItem == null))))) && ((agame_.aboard.boardArray[_arg2][(_arg1 + 1)].theItem.y >= game_vars.MinCellYpos)))){ agame_.aboard.boardArray[_arg2][(_arg1 + 1)].theItem.startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; if (((((((_arg1 + 2) <= (gameconst.CELLS_XCOUNT - 1))) && (!((agame_.aboard.boardArray[_arg2][(_arg1 + 2)].theItem == null))))) && ((agame_.aboard.boardArray[_arg2][(_arg1 + 2)].theItem.y >= game_vars.MinCellYpos)))){ agame_.aboard.boardArray[_arg2][(_arg1 + 2)].theItem.startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; agame_.aboard.isFlashing = false; } } }//package
Section 17
//bonushop (bonushop) package { import flash.events.*; import flash.display.*; import flash.text.*; public class bonushop extends Sprite { private var agame_:game; public var shelvsArray:Array; public var tLevel:TextField; private var Shelf2Cap_:TextField; private var itemsArray:Array; public var tMoney:TextField; private var Shelf1Cap_:TextField; private var itemPosArrA:Array; private var tField:TextField; private var itemPosArrP:Array; public function bonushop(_arg1:game){ itemPosArrP = ["boots", "0", "5", "5", "50", "gloves", "0", "7", "80", "50", "helmet", "0", "8", "155", "50", "blackhole", "1", "3", "25", "45", "flash", "1", "6", "110", "45", "ice", "1", "4", "195", "45", "quake", "1", "7", "25", "135", "x2", "1", "4", "195", "135"]; itemPosArrA = ["boots", "0", "5", "5", "50", "gloves", "0", "7", "80", "50", "helmet", "0", "8", "155", "50", "bomb", "1", "6", "25", "45", "flash", "1", "6", "110", "45", "ice", "1", "4", "195", "45", "quake", "1", "7", "25", "135", "x2", "1", "4", "195", "135"]; super(); agame_ = _arg1; shelvsArray = new Array(); itemsArray = new Array(); CreateShelves(); addShopItems(); CreateExitBtn(); CreateCounterLabels(); } public function setPositions(_arg1:shopitem){ var _local2:Array; var _local3:int; if (this.agame_.gplay_type == gameconst.GAMEPLAY_PUZZLE){ _local2 = itemPosArrP; } else { if (this.agame_.gplay_type == gameconst.GAMEPLAY_ARCADE){ _local2 = itemPosArrA; }; }; _local3 = 0; while (_local3 < (_local2.length - 2)) { if (_local2[_local3] == _arg1.itemname){ _arg1.x = int(_local2[(_local3 + 1)]); _arg1.y = int(_local2[(_local3 + 2)]); break; }; _local3 = (_local3 + 3); }; } public function CreateCounterLabels(){ var _local1:*; var _local2:*; _local1 = new TextField(); _local1.embedFonts = true; _local1.selectable = false; _local1.defaultTextFormat = TextFormats.fmtSelfCaps; _local1.autoSize = TextFieldAutoSize.LEFT; _local1.text = (agame_.translator_.Translate("MONEY")[0] + ":"); _local1.mouseEnabled = false; _local1.x = 400; _local1.y = 70; this.addChild(_local1); tMoney = new TextField(); tMoney.embedFonts = true; tMoney.selectable = false; tMoney.defaultTextFormat = TextFormats.fmtSelfCaps; tMoney.autoSize = TextFieldAutoSize.LEFT; tMoney.text = String(agame_.money_counter.getvalue()); tMoney.mouseEnabled = false; tMoney.x = ((_local1.x + _local1.width) + 10); tMoney.y = _local1.y; this.addChild(tMoney); _local2 = new TextField(); _local2.embedFonts = true; _local2.selectable = false; _local2.defaultTextFormat = TextFormats.fmtSelfCaps; _local2.autoSize = TextFieldAutoSize.LEFT; _local2.text = (agame_.translator_.Translate("LEVEL")[0] + ":"); _local2.mouseEnabled = false; _local2.x = 400; _local2.y = ((tMoney.y + tMoney.height) + 20); this.addChild(_local2); tLevel = new TextField(); tLevel.embedFonts = true; tLevel.selectable = false; tLevel.defaultTextFormat = TextFormats.fmtSelfCaps; tLevel.autoSize = TextFieldAutoSize.LEFT; tLevel.text = String(agame_.level_counter.getvalue()); tLevel.mouseEnabled = false; tLevel.x = ((_local2.x + _local2.width) + 10); tLevel.y = _local2.y; this.addChild(tLevel); } public function updateShop(){ tMoney.text = String(agame_.money_counter.getvalue()); tLevel.text = String(agame_.level_counter.getvalue()); } public function ExitMouseOn(_arg1:Event){ tField.textColor = TextFormats.fontColorDarkGreen; } public function HideBonusShop(_arg1:Event){ var _local2:int; var _local3:*; if (this.alpha == 1){ }; this.alpha = (this.alpha - 0.1); agame_.shop_sprite.alpha = (agame_.shop_sprite.alpha - 0.1); if (this.alpha <= 0.1){ _local2 = 0; while (_local2 < itemsArray.length) { _local3 = itemsArray[_local2]; if (this.shelvsArray[0].contains(_local3)){ this.shelvsArray[0].removeChild(_local3); }; if (this.shelvsArray[1].contains(_local3)){ this.shelvsArray[1].removeChild(_local3); }; _local2++; }; this.alpha = 0; agame_.shop_sprite.alpha = 0; this.removeEventListener(Event.ENTER_FRAME, HideBonusShop); agame_.CurrentGameState = gameconst.GSTATE_LOADNEXT; agame_.removeChild(agame_.shop_sprite); agame_.ShowGameFace(); agame_.shop_sprite.removeChild(this); trace("removed"); }; } public function CreateExitBtn(){ tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = TextFormats.fmtGameMenu; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = agame_.translator_.Translate("CONTINUE")[0]; tField.mouseEnabled = true; tField.x = ((600 - tField.width) - 10); tField.y = ((450 - tField.height) - 20); this.addChild(tField); tField.addEventListener(MouseEvent.MOUSE_OVER, ExitMouseOn); tField.addEventListener(MouseEvent.MOUSE_OUT, ExitMouseOff); tField.addEventListener(MouseEvent.CLICK, ExitMouseClick); } public function CreateShelves(){ var _local1:bonusShelf; var _local2:bonusShelf; _local1 = new bonusShelf(); _local1.setPos(40, 30); _local1.create("shelf1"); this.addChild(_local1); Shelf1Cap_ = new TextField(); Shelf1Cap_.embedFonts = true; Shelf1Cap_.selectable = false; Shelf1Cap_.defaultTextFormat = TextFormats.fmtSelfCaps; Shelf1Cap_.autoSize = TextFieldAutoSize.CENTER; Shelf1Cap_.text = agame_.translator_.Translate("ARMOURES")[0]; Shelf1Cap_.mouseEnabled = false; Shelf1Cap_.y = 10; Shelf1Cap_.x = ((_local1.width / 2) - (Shelf1Cap_.width / 2)); _local1.addChild(Shelf1Cap_); _local2 = new bonusShelf(); _local2.setPos(40, ((_local1.y + _local1.height) + 20)); _local2.create("shelf2"); this.addChild(_local2); Shelf2Cap_ = new TextField(); Shelf2Cap_.embedFonts = true; Shelf2Cap_.selectable = false; Shelf2Cap_.defaultTextFormat = TextFormats.fmtSelfCaps; Shelf2Cap_.autoSize = TextFieldAutoSize.CENTER; Shelf2Cap_.text = agame_.translator_.Translate("BONUSES")[0]; Shelf2Cap_.mouseEnabled = false; Shelf2Cap_.y = 10; Shelf2Cap_.x = ((_local2.width / 2) - (Shelf2Cap_.width / 2)); _local2.addChild(Shelf2Cap_); shelvsArray.push(_local1); shelvsArray.push(_local2); } public function ExitMouseClick(_arg1:Event){ trace("exitShop"); agame_.CurrentGameState = gameconst.GSTATE_FROMSHOP2GAME; trace("CreateBackGround"); agame_.CreateBackGround("back_1"); trace("HideBonusShop"); addEventListener(Event.ENTER_FRAME, HideBonusShop); } public function addShopItems(){ var _local1:Array; var _local2:int; var _local3:String; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:shopitem; if (this.agame_.gplay_type == gameconst.GAMEPLAY_PUZZLE){ _local1 = itemPosArrP; } else { if (this.agame_.gplay_type == gameconst.GAMEPLAY_ARCADE){ _local1 = itemPosArrA; }; }; _local2 = 0; while (_local2 < (_local1.length - 2)) { _local3 = _local1[_local2]; _local4 = int(_local1[(_local2 + 1)]); _local5 = int(_local1[(_local2 + 2)]); _local6 = int(_local1[(_local2 + 3)]); _local7 = int(_local1[(_local2 + 4)]); _local8 = shopitemfactory.CreateItem(_local4, _local5, _local3, agame_); _local8.x = _local6; _local8.y = _local7; this.shelvsArray[_local4].addChild(_local8); _local2 = (_local2 + 5); }; } public function resetShopItems(){ } public function ExitMouseOff(_arg1:Event){ tField.textColor = TextFormats.fontColorDarkDarkRed; } } }//package
Section 18
//BonusIce (BonusIce) package { import flash.display.*; import flash.utils.*; public class BonusIce implements bonusitem { private var bonusImage_:Bitmap; private var agame_:game; public function BonusIce(_arg1:game){ var _local2:Class; var _local3:BitmapData; super(); this.agame_ = _arg1; _local2 = (getDefinitionByName("ice_n") as Class); _local3 = new _local2(0, 0); bonusImage_ = new Bitmap(_local3); } public function getname():String{ return ("ice"); } public function GetBonusImage():Bitmap{ return (bonusImage_); } public function inShopClick(){ agame_.afactory_game_bonus.UpdateStores("ice"); } public function Fire(_arg1:int, _arg2:int):void{ trace("ice Bummed"); agame_.aboard.FreezeBoard(); trace("Iced"); } } }//package
Section 19
//bonusitem (bonusitem) package { import flash.display.*; public interface bonusitem { function GetBonusImage():Bitmap; function Fire(_arg1:int, _arg2:int):void; function getname():String; function inShopClick(); } }//package
Section 20
//BonusQuake (BonusQuake) package { import flash.display.*; import flash.utils.*; public class BonusQuake implements bonusitem { private var bonusImage_:Bitmap; private var agame_:game; public function BonusQuake(_arg1:game){ var _local2:Class; var _local3:BitmapData; super(); this.agame_ = _arg1; _local2 = (getDefinitionByName("quake_n") as Class); _local3 = new _local2(0, 0); bonusImage_ = new Bitmap(_local3); } public function getname():String{ return ("quake"); } public function GetBonusImage():Bitmap{ return (bonusImage_); } public function inShopClick(){ agame_.afactory_game_bonus.UpdateStores("quake"); } public function Fire(_arg1:int, _arg2:int):void{ trace("quake Bummed"); agame_.aboard.doublesword = 1; } } }//package
Section 21
//bonusShelf (bonusShelf) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class bonusShelf extends Sprite { private var activeImage:Bitmap; public var itemsArray:Array; private var inactiveImage:Bitmap; private function MouseOverFunction(_arg1:Event){ if (this.contains(inactiveImage)){ this.removeChild(inactiveImage); }; if (!this.contains(activeImage)){ this.addChildAt(activeImage, 0); }; } public function create(_arg1:String){ var _local2:Class; var _local3:BitmapData; _local2 = (getDefinitionByName((_arg1 + "_a")) as Class); _local3 = new _local2(0, 0); activeImage = new Bitmap(_local3); _local2 = (getDefinitionByName((_arg1 + "_n")) as Class); _local3 = new _local2(0, 0); inactiveImage = new Bitmap(_local3); this.addChildAt(inactiveImage, 0); this.addEventListener(MouseEvent.MOUSE_OVER, MouseOverFunction); this.addEventListener(MouseEvent.MOUSE_OUT, MouseOutFunction); } private function MouseOutFunction(_arg1:Event){ if (this.contains(activeImage)){ this.removeChild(activeImage); }; if (!this.contains(inactiveImage)){ this.addChildAt(inactiveImage, 0); }; } public function setPos(_arg1:int, _arg2:int){ this.x = _arg1; this.y = _arg2; } } }//package
Section 22
//BonusX2 (BonusX2) package { import flash.display.*; import flash.utils.*; public class BonusX2 implements bonusitem { private var bonusImage_:Bitmap; private var agame_:game; public function BonusX2(_arg1:game){ var _local2:Class; var _local3:BitmapData; super(); this.agame_ = _arg1; _local2 = (getDefinitionByName("x2_n") as Class); _local3 = new _local2(0, 0); bonusImage_ = new Bitmap(_local3); } public function getname():String{ return ("x2"); } public function GetBonusImage():Bitmap{ return (bonusImage_); } public function inShopClick(){ agame_.afactory_game_bonus.UpdateStores("x2"); } public function Fire(_arg1:int, _arg2:int):void{ trace("X2 Bummed"); agame_.aboard.x2_scale = 2; } } }//package
Section 23
//boots_a (boots_a) package { import flash.display.*; public dynamic class boots_a extends BitmapData { public function boots_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 24
//boots_d (boots_d) package { import flash.display.*; public dynamic class boots_d extends BitmapData { public function boots_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 25
//boots_h_a (boots_h_a) package { import flash.display.*; public dynamic class boots_h_a extends BitmapData { public function boots_h_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 26
//boots_h_n (boots_h_n) package { import flash.display.*; public dynamic class boots_h_n extends BitmapData { public function boots_h_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 27
//boots_n (boots_n) package { import flash.display.*; public dynamic class boots_n extends BitmapData { public function boots_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 28
//boots_p (boots_p) package { import flash.display.*; public dynamic class boots_p extends BitmapData { public function boots_p(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 29
//btn_broken_rect (btn_broken_rect) package { import flash.display.*; public dynamic class btn_broken_rect extends BitmapData { public function btn_broken_rect(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 30
//btn_clothe_mask (btn_clothe_mask) package { import flash.display.*; public dynamic class btn_clothe_mask extends BitmapData { public function btn_clothe_mask(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 31
//btn_clother_border (btn_clother_border) package { import flash.display.*; public dynamic class btn_clother_border extends BitmapData { public function btn_clother_border(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 32
//btn_double_rect (btn_double_rect) package { import flash.display.*; public dynamic class btn_double_rect extends BitmapData { public function btn_double_rect(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 33
//btn_frame (btn_frame) package { import flash.display.*; public dynamic class btn_frame extends MovieClip { } }//package
Section 34
//btn_frame_area (btn_frame_area) package { import flash.display.*; public dynamic class btn_frame_area extends MovieClip { } }//package
Section 35
//btn_hit (btn_hit) package { import flash.display.*; public dynamic class btn_hit extends MovieClip { } }//package
Section 36
//btn_single_rect (btn_single_rect) package { import flash.display.*; public dynamic class btn_single_rect extends BitmapData { public function btn_single_rect(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 37
//cell_item_japan (cell_item_japan) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.filters.*; import flash.geom.*; public class cell_item_japan extends MovieClip { public var killingprice:int;// = 1 public var pumpingTimeStart:int; public var imageInd_:int; public var abonus:bonusitem; private var sourceWidth:int; public var dist_offs_x:Number; public var dist_offs_y:Number; private var vr; private var sin; public var blackHoleX:int; public var blackHoleY:int; public var pumpingstate_:int;// = 0 var sampleFilters:Array; public var curr_cell_:cell_japan; private var sourceHeight:int; public var bombstate:int; public var fiering:Boolean;// = false var aFilter:GlowFilter; public var isFlashing:Boolean;// = false public var itemImage_:GameItemSkin; public var HoleY:int; public var HoleX:int; private var cos; public var col:int; private var glowFilter_:GlowFilter; private var sourceX:int; private var sourceY:int; public var velocityRot:Number; private var lightingBolt:Sprite; public var row:int; public var ParentGame:game; public var currEffState:int; public static const ITEM_MOVING:int = 1; public static const ITEM_LIGHT_REMOVING_:int = 3; public static const ITEM_REMOVING_NONE:int = 0; public static const REMOVING_TIME:int = 200; public static const ITEM_VELOCITY:int = 20; public static const ITEM_PUMPING_ON:int = 1; public static const ITEM_REMOVING_DONE:int = 2; public static const ITEM_SWAP_VELOCITY:int = 10; public static const REMOVING_AND_SCORE_AND_FLYING:int = 2; public static const ITEM_SWAPING:int = 5; public static const ITEM_MOVING_NONE:int = 0; public static const ITEM_SWAPING_RET:int = 6; public static const ITEM_PREBOMBING:int = 15; public static const PUMPING_TIME:int = 2000; public static const EFF_BLACKHOLE:int = 51; public static const ITEM_REMOVING:int = 1; public static const ITEM_BLACKHOLING:int = 16; public static const REMOVING_ONLY:int = 1; public static const EFF_NONE:int = 50; public static const REMOVING_AND_SCORE:int = 2; public static const ITEM_AFTER_BLACKHOLING:int = 17; public static const ITEM_PUMPING_OFF:int = 0; public function cell_item_japan(_arg1:game, _arg2:int){ fiering = false; isFlashing = false; killingprice = 1; pumpingstate_ = ITEM_PUMPING_OFF; super(); ParentGame = _arg1; itemImage_ = new GameItemSkin(); itemImage_.gotoAndStop(_arg2); this.imageInd_ = _arg2; this.addChild(itemImage_); sourceWidth = this.width; sourceHeight = this.height; } public function stopPumping(){ this.removeEventListener(Event.ENTER_FRAME, processPumping); this.filters = new Array(); pumpingstate_ = ITEM_PUMPING_OFF; } private function ProcessMouseOn(_arg1:Event){ itemImage_.filters = [new ColorMatrixFilter([1.5, 0, 0, 0, 0, 0, 1.5, 0, 0, 0, 0, 0, 1.5, 0, 0, 0, 0, 0, 1, 0])]; } public function restartData(){ this.addEventListener(MouseEvent.CLICK, ParentGame.aboard.clickPiece); this.addEventListener(MouseEvent.MOUSE_OVER, ProcessMouseOn); this.addEventListener(MouseEvent.MOUSE_OUT, ProcessMouseOut); this.width = 42; this.height = 42; fiering = false; currEffState = EFF_NONE; } public function startBlackHoling(_arg1:int, _arg2:int){ vr = 0.5; cos = Math.cos(vr); sin = Math.sin(vr); this.currEffState = EFF_BLACKHOLE; velocityRot = 0.001; dist_offs_x = 0; dist_offs_y = 0; blackHoleX = _arg1; blackHoleY = _arg2; HoleX = (ParentGame.aboard.boardArray[blackHoleY][blackHoleX].x + 22); HoleY = (ParentGame.aboard.boardArray[blackHoleY][blackHoleX].y + 22); ParentGame.soundFactory.playSound(SoundFactory.SND_BLACK_HOLE); } public function SetPrevCell(_arg1, _arg2:int):void{ } public function startRemoving(_arg1:int){ var _local2:int; var _local3:*; var _local4:int; var _local5:String; var _local6:*; var _local7:*; var _local8:Splinter; var _local9:Bitmap; var _local10:FXFlash; var _local11:int; var _local12:int; if (this.y < game_vars.MinCellYpos){ return; }; if (ParentGame.aboard.firstPiece != null){ ParentGame.aboard.firstPiece.stopPumping(); ParentGame.aboard.firstPiece = null; }; if (_arg1 == REMOVING_AND_SCORE_AND_FLYING){ _local5 = ("+" + int(((10 * ParentGame.aboard.x2_scale) * ParentGame.score_index_))); _local6 = new FlyingText(this.ParentGame, _local5, (this.x + (this.width / 2)), (this.y + (this.height / 2))); ParentGame.score_counter.update(int(((10 * ParentGame.aboard.x2_scale) * ParentGame.score_index_))); ParentGame.lev_score_counter.update(int(((10 * ParentGame.aboard.x2_scale) * ParentGame.score_index_))); ParentGame.deleted_counter.update(1); } else { if (_arg1 == REMOVING_AND_SCORE){ ParentGame.score_counter.update(int(((10 * ParentGame.aboard.x2_scale) * ParentGame.score_index_))); ParentGame.lev_score_counter.update(int(((10 * ParentGame.aboard.x2_scale) * ParentGame.score_index_))); ParentGame.deleted_counter.update(1); }; }; ParentGame.removeChild(this); ParentGame.soundFactory.playSound(SoundFactory.SND_ITEM_DESTROY); this.removeEventListener(MouseEvent.MOUSE_OVER, ProcessMouseOn); this.sourceX = this.x; this.sourceY = this.y; _local2 = 0; while (_local2 < 20) { _local7 = new BitmapData(this.width, this.height); _local7.draw(this.itemImage_); _local8 = new Splinter(ParentGame, ((Math.random() * this.width) + this.x), ((Math.random() * this.height) + this.y), 8, 8, _local7); _local2++; }; if (this.curr_cell_.cellType == "btn_single_rect"){ this.curr_cell_.removeChild(curr_cell_.cellimage); _local2 = 0; while (_local2 < 4) { _local7 = new BitmapData(this.width, this.height); _local7.draw(curr_cell_.cellimage); _local8 = new Splinter(ParentGame, ((Math.random() * this.width) + this.x), ((Math.random() * this.height) + this.y), 16, 16, _local7); _local2++; }; _local7 = new btn_broken_rect(0, 0); _local9 = new Bitmap(_local7); curr_cell_.cellBData = _local7; curr_cell_.cellType = "btn_broken_rect"; curr_cell_.cellimage = _local9; curr_cell_.addChild(_local9); } else { if (this.curr_cell_.cellType == "btn_double_rect"){ this.curr_cell_.removeChild(curr_cell_.cellimage); _local2 = 0; while (_local2 < 4) { _local7 = new BitmapData(this.width, this.height); _local7.draw(curr_cell_.cellimage); _local8 = new Splinter(ParentGame, ((Math.random() * this.width) + this.x), ((Math.random() * this.height) + this.y), 16, 16, _local7); _local2++; }; _local7 = new btn_single_rect(0, 0); _local9 = new Bitmap(_local7); curr_cell_.cellBData = _local7; curr_cell_.cellType = "btn_single_rect"; curr_cell_.cellimage = _local9; curr_cell_.addChild(_local9); }; }; if (this.isFlashing == true){ _local10 = new FXFlash(ParentGame); _local10.width = (this.width * 5); _local10.height = 20; _local11 = ((this.x - (_local10.width / 2)) + (this.width / 2)); _local12 = ((this.y + (this.height / 2)) - (_local10.height / 2)); _local10.Start(_local11, _local12); }; _local3 = this.col; _local4 = this.row; this.curr_cell_.theItem = null; ParentGame.factory_items.pushToStore(this); ParentGame.aboard.ProcSources(_local4, _local3); } public function processPumping(_arg1:Event){ var _local2:*; _local2 = (getTimer() - pumpingTimeStart); if (_local2 >= PUMPING_TIME){ pumpingTimeStart = getTimer(); return; }; if (_local2 < (PUMPING_TIME / 2)){ aFilter.blurX = (aFilter.blurX + 0.5); aFilter.blurY = (aFilter.blurY + 0.5); sampleFilters = new Array(); sampleFilters.push(aFilter); this.filters = sampleFilters; } else { aFilter.blurX = (aFilter.blurX - 0.5); aFilter.blurY = (aFilter.blurY - 0.5); sampleFilters = new Array(); sampleFilters.push(aFilter); this.filters = sampleFilters; }; } public function SetCurrCell(_arg1:cell_japan){ curr_cell_ = _arg1; } public function getAbonus():bonusitem{ return (this.abonus); } public function SetNextCell(_arg1, _arg2:int):void{ } public function FireBonus(){ if (this.abonus != null){ if (this.abonus.getname() == "flash"){ isFlashing = true; this.abonus.Fire(this.curr_cell_.logX, this.curr_cell_.logY); } else { this.abonus.Fire(this.curr_cell_.logX, this.curr_cell_.logY); }; this.fiering = true; }; } public function setAbonus(_arg1:bonusitem){ var _local2:Bitmap; this.abonus = _arg1; _local2 = abonus.GetBonusImage(); this.addChild(_local2); } public function resetData(){ this.width = sourceWidth; this.height = sourceHeight; this.removeEventListener(MouseEvent.CLICK, ParentGame.aboard.clickPiece); this.removeEventListener(Event.ENTER_FRAME, processPumping); itemImage_.filters = [new ColorMatrixFilter()]; this.curr_cell_ = null; currEffState = EFF_NONE; stopPumping(); } public function startPumping(){ pumpingTimeStart = getTimer(); aFilter = new GlowFilter(); aFilter.color = 0xFFFF00; sampleFilters = new Array(); sampleFilters.push(aFilter); this.filters = sampleFilters; this.addEventListener(Event.ENTER_FRAME, processPumping); } private function ProcessMouseOut(_arg1:Event){ itemImage_.filters = [new ColorMatrixFilter()]; } } }//package
Section 38
//cell_japan (cell_japan) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class cell_japan extends MovieClip { public var ParentGame:game; public var theItem:cell_item_japan; public var curritem:cell_item_japan; public var cellimage:Bitmap; public var timetofade_:int; public var cellState:int; public var free:Boolean; private var prevtimertime_:int; public var logY:int; public var canditem:cell_item_japan; public var dataSource:cell_japan;// = null public var logX:int; public var cellType:String; public var fadedtime_:int; public var fadedstart_:int; public var cellBData:BitmapData; public static const STATE_DELETING:int = 4; public static const STATE_CLOSING:int = 3; public static const STATE_IDLE:int = 2; public static const STATE_OPENING:int = 1; public static const STATE_INVISIBLE:int = 0; public function cell_japan():void{ dataSource = null; super(); setCellState(0); timetofade_ = 1800; fadedtime_ = 0; free = true; curritem = null; canditem = null; fadedstart_ = getTimer(); } public function setCellState(_arg1:int):void{ cellState = _arg1; switch (_arg1){ case STATE_INVISIBLE: this.removeEventListener(Event.ENTER_FRAME, cellEnterFrame); this.alpha = 0; fadedtime_ = 0; break; case STATE_CLOSING: case STATE_OPENING: this.addEventListener(Event.ENTER_FRAME, cellEnterFrame); break; case STATE_DELETING: this.removeEventListener(Event.ENTER_FRAME, cellEnterFrame); this.ParentGame.aboard.removeCell(this); }; } public function cellEnterFrame(_arg1:Event):void{ var _local2:Number; switch (cellState){ case STATE_OPENING: fadedtime_ = (getTimer() - fadedstart_); _local2 = (fadedtime_ / timetofade_); this.alpha = _local2; if (this.alpha >= 1){ this.alpha = 1; this.cellState = STATE_IDLE; this.removeEventListener(Event.ENTER_FRAME, cellEnterFrame); }; break; case STATE_IDLE: break; case STATE_CLOSING: setCellState(STATE_DELETING); break; }; } public function SetCurrItem(_arg1:cell_item_japan){ this.curritem = _arg1; _arg1.hitArea = this; } } }//package
Section 39
//ClotherBoots (ClotherBoots) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class ClotherBoots implements i_clother, i_Observer { private var collectedPoints:int; private var inActiveImage:Bitmap; private var manipulator:Sprite;// = null private var pointsInPercent:int;// = 1 private var clotherBorder:Bitmap; private var ActiveImage:Bitmap; private var clotherButton:SimpleButton;// = null private var newOpenedPercent:int;// = 0 private var agame_:game; private var clotherShirma:Bitmap; private var OpenedPercent:int;// = 0 public function ClotherBoots(_arg1:game){ clotherButton = null; manipulator = null; OpenedPercent = 0; newOpenedPercent = 0; pointsInPercent = 1; super(); this.agame_ = _arg1; } public function createInactiveImage():void{ var _local1:BitmapData; _local1 = new boots_d(0, 0); inActiveImage = new Bitmap(_local1); } public function Activate():void{ clotherButton.overState = ActiveImage; clotherButton.addEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = true; } public function Deactivate():void{ clotherButton.removeEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = false; } public function GetCloverBorder():Bitmap{ var _local1:BitmapData; if (clotherBorder == null){ _local1 = new btn_clother_border(0, 0); clotherBorder = new Bitmap(_local1); }; return (clotherBorder); } public function GetCloverManipulator():Sprite{ if (manipulator == null){ }; return (manipulator); } public function GetCloverButton():SimpleButton{ if (clotherButton == null){ clotherButton = new SimpleButton(); clotherButton.upState = createUpImage("boots"); clotherButton.downState = createDownImage("boots"); clotherButton.overState = createOverImage("boots"); clotherButton.hitTestState = createUpImage("boots"); createInactiveImage(); clotherButton.enabled = false; }; return (clotherButton); } public function GetShirma():Bitmap{ return (clotherShirma); } public function BtnClick(_arg1:Event):void{ reset(); Deactivate(); agame_.aboard.RegisterObserver(i_Observer(this)); update(0); agame_.aboard.selected_clover = this; } public function SetShirma(_arg1:Bitmap):void{ if (clotherShirma != null){ if (agame_.contains(clotherShirma)){ agame_.removeChild(clotherShirma); }; }; clotherShirma = _arg1; agame_.addChild(_arg1); } public function Start():void{ trace("Boots clicked"); } public function createDownImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_p")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } public function update(_arg1:int){ collectedPoints = (collectedPoints + _arg1); newOpenedPercent = ((1 / pointsInPercent) * collectedPoints); if ((((newOpenedPercent > OpenedPercent)) || ((_arg1 == 0)))){ OpenedPercent = newOpenedPercent; agame_.aboard.UpdateClotherView(this); }; } public function createOverImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_a")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); ActiveImage = _local4; return (_local4); } public function reset():void{ OpenedPercent = 0; newOpenedPercent = 0; collectedPoints = 0; } public function getvalue():int{ return (OpenedPercent); } public function Fire(_arg1, _arg2:int):void{ trace("Boots Fired"); } public function getname():String{ return ("boots"); } public function createUpImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_n")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } } }//package
Section 40
//ClotherGloves (ClotherGloves) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class ClotherGloves implements i_clother, i_Observer { private var collectedPoints:int; private var inActiveImage:Bitmap; private var manipulator:Sprite;// = null private var pointsInPercent:int;// = 1 private var clotherBorder:Bitmap; private var ActiveImage:Bitmap; private var clotherButton:SimpleButton;// = null private var newOpenedPercent:int;// = 0 private var agame_:game; private var clotherShirma:Bitmap; private var OpenedPercent:int;// = 0 public function ClotherGloves(_arg1:game){ clotherButton = null; manipulator = null; OpenedPercent = 0; newOpenedPercent = 0; pointsInPercent = 1; super(); this.agame_ = _arg1; } public function createInactiveImage():void{ var _local1:BitmapData; _local1 = new boots_d(0, 0); inActiveImage = new Bitmap(_local1); } public function Activate():void{ clotherButton.overState = ActiveImage; clotherButton.addEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = true; } public function Deactivate():void{ clotherButton.removeEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = false; } public function GetCloverBorder():Bitmap{ var _local1:BitmapData; if (clotherBorder == null){ _local1 = new btn_clother_border(0, 0); clotherBorder = new Bitmap(_local1); }; return (clotherBorder); } public function GetCloverManipulator():Sprite{ if (manipulator == null){ }; return (manipulator); } public function GetCloverButton():SimpleButton{ if (clotherButton == null){ clotherButton = new SimpleButton(); clotherButton.upState = createUpImage("gloves"); clotherButton.downState = createDownImage("gloves"); clotherButton.overState = createOverImage("gloves"); clotherButton.hitTestState = createUpImage("gloves"); createInactiveImage(); clotherButton.enabled = false; }; return (clotherButton); } public function GetShirma():Bitmap{ return (clotherShirma); } public function BtnClick(_arg1:Event):void{ reset(); Deactivate(); agame_.aboard.RegisterObserver(i_Observer(this)); update(0); agame_.aboard.addClother(this); trace("Gloves clicked"); } public function SetShirma(_arg1:Bitmap):void{ if (clotherShirma != null){ if (agame_.contains(clotherShirma)){ agame_.removeChild(clotherShirma); }; }; clotherShirma = _arg1; agame_.addChild(_arg1); } public function Start():void{ trace("Gloves clicked"); agame_.aboard.StartGloves(); } public function createDownImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_p")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } public function update(_arg1:int){ collectedPoints = (collectedPoints + _arg1); newOpenedPercent = ((1 / pointsInPercent) * collectedPoints); if ((((newOpenedPercent > OpenedPercent)) || ((_arg1 == 0)))){ OpenedPercent = newOpenedPercent; agame_.aboard.UpdateClotherView(this); }; } public function createOverImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_a")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); ActiveImage = _local4; return (_local4); } public function reset():void{ OpenedPercent = 0; newOpenedPercent = 0; collectedPoints = 0; } public function getvalue():int{ return (OpenedPercent); } public function Fire(_arg1, _arg2:int):void{ trace("Gloves Fired"); } public function getname():String{ return ("gloves"); } public function createUpImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_n")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } } }//package
Section 41
//ClotherHelmet (ClotherHelmet) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class ClotherHelmet implements i_clother, i_Observer { private var collectedPoints:int; private var inActiveImage:Bitmap; private var manipulator:Sprite;// = null private var pointsInPercent:int;// = 1 private var clotherBorder:Bitmap; private var ActiveImage:Bitmap; private var clotherButton:SimpleButton;// = null private var newOpenedPercent:int;// = 0 private var agame_:game; private var clotherShirma:Bitmap; private var OpenedPercent:int;// = 0 public function ClotherHelmet(_arg1:game){ clotherButton = null; manipulator = null; OpenedPercent = 0; newOpenedPercent = 0; pointsInPercent = 1; super(); this.agame_ = _arg1; } public function createInactiveImage():void{ var _local1:BitmapData; _local1 = new boots_d(0, 0); inActiveImage = new Bitmap(_local1); } public function Activate():void{ trace("Helm Activated"); clotherButton.overState = ActiveImage; if (!clotherButton.hasEventListener(MouseEvent.CLICK)){ clotherButton.addEventListener(MouseEvent.CLICK, BtnClick); }; clotherButton.enabled = true; } public function Deactivate():void{ clotherButton.removeEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = false; } public function GetCloverBorder():Bitmap{ var _local1:BitmapData; if (clotherBorder == null){ _local1 = new btn_clother_border(0, 0); clotherBorder = new Bitmap(_local1); }; return (clotherBorder); } public function GetCloverManipulator():Sprite{ if (manipulator == null){ }; return (manipulator); } public function GetCloverButton():SimpleButton{ if (clotherButton == null){ clotherButton = new SimpleButton(); clotherButton.upState = createUpImage("helmet"); clotherButton.downState = createDownImage("helmet"); clotherButton.overState = createOverImage("helmet"); clotherButton.hitTestState = createUpImage("helmet"); createInactiveImage(); clotherButton.enabled = false; }; return (clotherButton); } public function GetShirma():Bitmap{ return (clotherShirma); } public function BtnClick(_arg1:Event):void{ reset(); Deactivate(); agame_.aboard.RegisterObserver(i_Observer(this)); update(0); agame_.aboard.addClother(this); trace("Helmet clicked"); } public function SetShirma(_arg1:Bitmap):void{ if (clotherShirma != null){ if (agame_.contains(clotherShirma)){ agame_.removeChild(clotherShirma); }; }; clotherShirma = _arg1; agame_.addChild(_arg1); } public function Start():void{ agame_.aboard.boardState = gameboard.STATE_START_SHUFFLING; trace("Helmet clicked"); } public function createDownImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_p")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } public function update(_arg1:int){ collectedPoints = (collectedPoints + _arg1); newOpenedPercent = ((1 / pointsInPercent) * collectedPoints); if ((((newOpenedPercent > OpenedPercent)) || ((_arg1 == 0)))){ OpenedPercent = newOpenedPercent; agame_.aboard.UpdateClotherView(this); }; } public function createOverImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_a")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); ActiveImage = _local4; return (_local4); } public function reset():void{ OpenedPercent = 0; newOpenedPercent = 0; collectedPoints = 0; } public function getvalue():int{ return (OpenedPercent); } public function Fire(_arg1, _arg2:int):void{ trace("Helmet Fired"); } public function getname():String{ return (""); } public function createUpImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_n")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } } }//package
Section 42
//ClotherSword (ClotherSword) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; public class ClotherSword implements i_clother, i_Observer { private var collectedPoints:int; private var inActiveImage:Bitmap; private var manipulator:Sprite;// = null private var pointsInPercent:int;// = 1 private var buttonMask:Bitmap; private var clotherBorder:Bitmap; private var ActiveImage:Bitmap; private var clotherButton:SimpleButton;// = null private var newOpenedPercent:int;// = 0 private var agame_:game; private var clotherShirma:Bitmap; private var OpenedPercent:int;// = 0 public function ClotherSword(_arg1:game){ clotherButton = null; manipulator = null; OpenedPercent = 0; newOpenedPercent = 0; pointsInPercent = 1; super(); this.agame_ = _arg1; } public function Deactivate():void{ clotherButton.removeEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = false; } public function Activate():void{ clotherButton.overState = ActiveImage; clotherButton.addEventListener(MouseEvent.CLICK, BtnClick); clotherButton.enabled = true; } public function GetCloverBorder():Bitmap{ var _local1:BitmapData; if (clotherBorder == null){ _local1 = new btn_clother_border(0, 0); clotherBorder = new Bitmap(_local1); }; return (clotherBorder); } public function GetCloverManipulator():Sprite{ if (manipulator == null){ }; return (manipulator); } public function RedrawMask(){ if (buttonMask == null){ buttonMask = new Bitmap(new BitmapData(agame_.clother_maskSource.width, agame_.clother_maskSource.height)); buttonMask.bitmapData.copyPixels(agame_.clother_maskSource, new Rectangle(0, 0, agame_.clother_maskSource.width, agame_.clother_maskSource.height), new Point(0, 0)); }; } public function GetCloverButton():SimpleButton{ if (clotherButton == null){ clotherButton = new SimpleButton(); clotherButton.upState = createUpImage("sword"); clotherButton.downState = createDownImage("sword"); clotherButton.overState = createOverImage("sword"); clotherButton.hitTestState = createUpImage("sword"); createInactiveImage(); }; return (clotherButton); } public function GetShirma():Bitmap{ return (clotherShirma); } public function BtnClick(_arg1:Event):void{ agame_.aboard.selected_clover = this; agame_.showSword(clotherButton.x, clotherButton.y); } public function SetShirma(_arg1:Bitmap):void{ if (clotherShirma != null){ if (agame_.contains(clotherShirma)){ agame_.removeChild(clotherShirma); }; }; clotherShirma = _arg1; agame_.addChild(_arg1); } public function createInactiveImage():void{ var _local1:BitmapData; _local1 = new sword_d(0, 0); inActiveImage = new Bitmap(_local1); } public function Start():void{ } public function createDownImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_p")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } public function update(_arg1:int){ collectedPoints = (collectedPoints + _arg1); newOpenedPercent = ((1 / pointsInPercent) * collectedPoints); if ((((newOpenedPercent > OpenedPercent)) || ((_arg1 == 0)))){ OpenedPercent = newOpenedPercent; agame_.aboard.UpdateClotherView(this); }; } public function createOverImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_a")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); ActiveImage = _local4; return (_local4); } public function reset():void{ OpenedPercent = 0; newOpenedPercent = 0; collectedPoints = 0; } public function getvalue():int{ return (OpenedPercent); } public function Fire(_arg1, _arg2:int):void{ trace("Sword Fired"); if (agame_.aboard.boardArray[_arg2][_arg1].theItem != null){ agame_.aboard.boardArray[_arg2][_arg1].theItem.startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; agame_.hideSword(); reset(); Deactivate(); agame_.aboard.RegisterObserver(i_Observer(this)); update(0); } public function getname():String{ return ("sword"); } public function createUpImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_n")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); return (_local4); } } }//package
Section 43
//factory_clothes (factory_clothes) package { public class factory_clothes { public var agame_:game; public function factory_clothes(_arg1:game){ this.agame_ = _arg1; } public function CreateClother(_arg1:String):i_clother{ if (_arg1 == "sword"){ return (new ClotherSword(agame_)); }; if (_arg1 == "boots"){ return (new ClotherBoots(agame_)); }; if (_arg1 == "gloves"){ return (new ClotherGloves(agame_)); }; if (_arg1 == "helmet"){ return (new ClotherHelmet(agame_)); }; return (null); } } }//package
Section 44
//factory_game_bonus (factory_game_bonus) package { public class factory_game_bonus { private var agame_:game; private var stores_:Array; public function factory_game_bonus(_arg1:game){ agame_ = _arg1; stores_ = new Array(); } public function RetireToStore(_arg1:bonusitem){ stores_.push(_arg1); } public function getRndBonus():bonusitem{ var _local1:int; var _local2:bonusitem; if (stores_.length > 0){ _local1 = (Math.random() * (stores_.length - 1)); _local2 = stores_[_local1]; if ((((_local2.getname() == "x2")) && ((agame_.aboard.x2_scale == 2)))){ } else { stores_.splice(_local1, 1); return (_local2); }; }; return (null); } public function storesLength():int{ return (stores_.length); } public function UpdateStores(_arg1:String){ var _local2:int; var _local3:bonusitem; _local2 = 0; while (_local2 < 5) { switch (_arg1){ case "bomb": _local3 = new BonusBomb(this.agame_); stores_.push(_local3); break; case "flash": _local3 = new BonusFlash(this.agame_); stores_.push(_local3); break; case "x2": _local3 = new BonusX2(this.agame_); stores_.push(_local3); break; case "quake": _local3 = new BonusQuake(this.agame_); stores_.push(_local3); break; case "blackhole": _local3 = new BonusBlackHole(this.agame_); stores_.push(_local3); break; case "ice": _local3 = new BonusIce(this.agame_); stores_.push(_local3); break; }; _local2++; }; } public function clearFactory(){ stores_.splice(0, stores_.length); } } }//package
Section 45
//FactoryPuzObservers (FactoryPuzObservers) package { public class FactoryPuzObservers { var agame_:game; var stores_:Array; public function FactoryPuzObservers(_arg1:game){ agame_ = _arg1; stores_ = new Array(); } public function GetObserver(_arg1:int, _arg2:int, _arg3:int, _arg4:int):PuzzleObserver{ var _local5:int; var _local6:PuzzleObserver; _local5 = 0; while (_local5 < stores_.length) { if (stores_[_local5].getImageInd() == _arg3){ stores_[_local5].Create(_arg1, _arg2, _arg3, _arg4); return (stores_[_local5]); }; _local5++; }; _local6 = new PuzzleObserver(agame_); _local6.Create(_arg1, _arg2, _arg3, _arg4); stores_.push(_local6); return (_local6); } } }//package
Section 46
//flag (flag) package { import flash.display.*; public dynamic class flag extends BitmapData { public function flag(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 47
//flash_a (flash_a) package { import flash.display.*; public dynamic class flash_a extends BitmapData { public function flash_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 48
//flash_d (flash_d) package { import flash.display.*; public dynamic class flash_d extends BitmapData { public function flash_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 49
//flash_n (flash_n) package { import flash.display.*; public dynamic class flash_n extends BitmapData { public function flash_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 50
//FlyingText (FlyingText) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class FlyingText extends Sprite { private var agame_:game; private var burstSprite:Sprite; private var animTimer:Timer; private var tField:TextField; static const startScale:Number = 0.5; static const fontFace:String = "Arial Black"; static const endScale:Number = 2; static const fontSize:int = 10; static const animStepTime:int = 15; static const fontBold:Boolean = true; static const animSteps:int = 50; static const fontColor:Number = 0xFFFF00; public function FlyingText(_arg1:game, _arg2:String, _arg3:int, _arg4:int){ var _local5:TextFormat; super(); agame_ = _arg1; _local5 = new TextFormat(); _local5.font = fontFace; _local5.size = fontSize; _local5.bold = fontBold; _local5.color = fontColor; _local5.align = "center"; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = _local5; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = _arg2; tField.x = -((tField.width / 2)); tField.y = -((tField.height / 2)); tField.mouseEnabled = false; burstSprite = new Sprite(); burstSprite.mouseEnabled = false; this.x = _arg3; this.y = _arg4; burstSprite.scaleX = startScale; burstSprite.scaleY = startScale; burstSprite.alpha = 1; burstSprite.addChild(tField); burstSprite.alpha = 0.7; this.addChild(burstSprite); this.mouseEnabled = false; _arg1.addChild(this); animTimer = new Timer(animStepTime, animSteps); animTimer.addEventListener(TimerEvent.TIMER, rescaleBurst); animTimer.addEventListener(TimerEvent.TIMER_COMPLETE, removeBurst); animTimer.start(); } public function removeBurst(_arg1:TimerEvent){ burstSprite.removeChild(tField); removeChild(burstSprite); agame_.removeChild(this); tField = null; burstSprite = null; delete ??getglobalscope [this]; } public function rescaleBurst(_arg1:TimerEvent){ var _local2:Number; _local2 = (_arg1.target.currentCount / animSteps); burstSprite.scaleX = (((1 - _local2) * startScale) + (_local2 * endScale)); burstSprite.scaleY = (((1 - _local2) * startScale) + (_local2 * endScale)); } } }//package
Section 51
//fx_flash_hor (fx_flash_hor) package { import flash.display.*; public dynamic class fx_flash_hor extends MovieClip { } }//package
Section 52
//fx_flash_hor_bmp (fx_flash_hor_bmp) package { import flash.display.*; public dynamic class fx_flash_hor_bmp extends BitmapData { public function fx_flash_hor_bmp(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 53
//FXFlash (FXFlash) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class FXFlash extends Sprite { public var agame_:game; public var liftime_:int;// = 1000 public var startLife:int; public function FXFlash(_arg1:game){ var _local2:MovieClip; liftime_ = 1000; super(); this.agame_ = _arg1; _local2 = new fx_flash_hor(); this.addChild(_local2); } public function Start(_arg1, _arg2:int){ startLife = getTimer(); agame_.addChild(this); this.x = _arg1; this.y = _arg2; this.addEventListener(Event.ENTER_FRAME, EnterFrame); } public function EnterFrame(_arg1:Event){ liftime_ = (liftime_ - (getTimer() - startLife)); if (liftime_ <= 0){ this.removeEventListener(Event.ENTER_FRAME, EnterFrame); agame_.removeChild(this); delete ??getglobalscope [this]; }; } } }//package
Section 54
//game (game) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; import flash.geom.*; import flash.ui.*; public dynamic class game extends MovieClip { public var back_image:Bitmap; public var afactory_game_bonus:factory_game_bonus; private var boardtime_:Number; public var score_index_:Number;// = 1 public var bonusesArr:Array; public var shop_sprite:Sprite; public var result_board:resultBoard; public var level_counter:unVisibleCounter; public var back_hero:Sprite; public var back_game_spr:Sprite; public var menuStatesArr:Array; public var back_heroArmour:Array; public var factory_items:ItemsFactory; public var CurrentGameState:int; public var back_image_data:BitmapData; public var sword_spr:Sprite; public var hasSounds:Boolean;// = false public var time_counter:unVisibleCounter; public var adcounter:int;// = 0 public var lev_score_counter:unVisibleCounter; public var PlayerName_:String; public var clothesposes:Array; public var clovesArr:Array; public var shop_image:Bitmap; public var gplay_type:int; public var displayed:int; private var progressText:TextField; public var menu_result_:int;// = 0 public var soundFactory:SoundFactory; public var menuFactory_:MenuFactory; public var hero_bitmap:Bitmap; public var aboard:gameboard; public var abonushop:bonushop; public var clother_maskSource:BitmapData; public var menu_code_:int;// = 0 private var grid:Array; public var score_counter:ScoreCounter; public var score_names:Array; public var acceptedBonuses:Array; public var puzzItemsArr_:Array; public var money_counter:unVisibleCounter; public var time_index_:Number;// = 1 public var translator_:Translator; public var vlevel_counter:LevelCounter; public var ftrPuzObservers_:FactoryPuzObservers; public var isRelax:Boolean;// = false public var heroclothesposes:Array; public var aFormats:TextFormats; public var puzzItemsCount_:Array; public var levelmanager_:LevelManager; public var score_table:MovieClip; public var deleted_counter:unVisibleCounter; public var cells_array:Array; public var levelXML:XML; public var itemsArr_:Array; public static var table2:TextScoreTable = null; public function game():void{ var _local1:TextFormat; hasSounds = false; time_index_ = 1; score_index_ = 1; menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; adcounter = 0; clovesArr = ["sword"]; clothesposes = ["boots", "530", "30", "sword", "530", "130", "gloves", "530", "230", "helmet", "530", "330"]; heroclothesposes = ["boots", "28", "345", "sword", "0", "50", "gloves", "1", "234", "helmet", "15", "116"]; isRelax = false; super(); addFrameScript(1, frame2); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress); _local1 = new TextFormat(); _local1.font = "Arial Black"; _local1.size = 26; _local1.bold = true; _local1.color = 565248; _local1.align = TextFormatAlign.CENTER; progressText = new TextField(); progressText.embedFonts = false; progressText.selectable = false; progressText.defaultTextFormat = _local1; progressText.autoSize = TextFieldAutoSize.CENTER; progressText.x = (stage.stageWidth / 2); progressText.y = (stage.stageHeight / 2); addChild(progressText); } public function LoadLevels(){ levelmanager_ = new LevelManager(this); } public function StartSettingCellsStates(_arg1, _arg2:int):void{ var _local3:Array; var _local4:int; _local3 = getFirstLineByState(_arg1); if (((!((_local3 == null))) && ((_local3.length > 0)))){ _local4 = 0; while (_local4 < _local3.length) { if (_arg2 == cell_japan.STATE_OPENING){ this.addChildAt(_local3[_local4], (_local4 + 1)); displayed++; }; _local3[_local4].setCellState(_arg2); _local4++; }; }; } public function showProgress(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)); trace((_local2 + " % loaded")); progressText.text = (_local2 + " % loaded"); if (_local2 >= 100){ if (this.contains(progressText)){ removeChild(progressText); removeEventListener(ProgressEvent.PROGRESS, showProgress); LoadMochiAd(); }; }; } public function PushMenuState(_arg1:int){ menuStatesArr.push(_arg1); } public function nextLevel(){ CurrentGameState = gameconst.GSTATE_FROMLEVEL2LEVEL; } function frame2(){ gotoAndStop(1); } public function addClother(_arg1:shopitem){ var _local2:*; var _local3:int; var _local4:int; var _local5:*; clovesArr.push(_arg1.itemname); _local4 = 0; while (_local4 < heroclothesposes.length) { if (heroclothesposes[_local4] == _arg1.itemname){ _local2 = int(heroclothesposes[(_local4 + 1)]); _local3 = int(heroclothesposes[(_local4 + 2)]); break; }; _local4 = (_local4 + 3); }; _arg1.normalHeroImage.x = _local2; _arg1.normalHeroImage.y = _local3; _local5 = back_hero.getChildIndex(hero_bitmap); back_hero.addChild(_arg1.normalHeroImage); } public function CountCellsByState(_arg1:int):int{ var _local2:int; var _local3:Number; _local2 = 0; _local3 = 0; while (_local3 < cells_array.length) { if (cells_array[_local3].cellState == _arg1){ _local2++; }; _local3++; }; return (_local2); } public function InterLevelAd(){ MochiAd.showInterLevelAd({clip:this, id:"5e1e7311f4810092", res:"600x450", ad_finished:AfterInter}); } public function AfterInter(){ adcounter++; if (abonushop == null){ abonushop = new bonushop(this); afactory_game_bonus.clearFactory(); }; abonushop.updateShop(); abonushop.alpha = 1; shop_sprite.addChild(abonushop); } public function getEntranceCells():Array{ var _local1:Array; var _local2:int; _local1 = new Array(); _local2 = 0; while (_local2 < cells_array.length) { if (cells_array[_local2].y == game_vars.MinCellYpos){ _local1.push(cells_array[_local2]); }; _local2++; }; return (_local1); } public function getFirstLineByState(_arg1:int):Array{ var _local2:cell_japan; var _local3:cell_japan; var _local4:int; var _local5:int; var _local6:Array; var _local7:int; var _local8:int; var _local9:cell_japan; _local2 = null; _local3 = null; _local4 = (gameconst.CELLS_YCOUNT - 1); while (_local4 > -1) { _local5 = (gameconst.CELLS_XCOUNT - 1); while (_local5 > -1) { _local3 = getCellByCoord(_local5, _local4); if (((!((_local3 == null))) && ((_local3.cellState == _arg1)))){ //unresolved jump }; _local5--; }; _local4--; }; if (_local3 != null){ _local6 = new Array(); _local6.push(_local3); _local7 = (_local5 + 1); _local8 = (_local4 - 1); _local9 = null; while ((((_local7 < gameconst.CELLS_XCOUNT)) && ((_local8 > -1)))) { _local9 = getCellByCoord(_local7, _local8); if (_local9 != null){ _local6.push(_local9); }; _local7 = (_local7 + 1); _local8--; }; _local7 = (_local5 - 1); _local8 = (_local4 + 1); _local9 = null; while ((((_local7 > -1)) && ((_local8 < gameconst.CELLS_YCOUNT)))) { _local9 = getCellByCoord(_local7, _local8); if (_local9 != null){ _local6.push(_local9); }; _local7--; _local8 = (_local8 + 1); }; return (_local6); }; return (null); } public function LoadScores(){ var _local1:Boolean; table2 = new TextScoreTable(score_table); addChild(table2); table2.reset("Fetching high scores..."); _local1 = MochiAd.fetchHighScores({clip:this, id:"5e1e7311f4810092"}, table2, "gotScores"); if (!_local1){ table2.reset("Local sandbox does not allow network, try playing online."); }; } public function AfterTranslator(){ ftrPuzObservers_ = new FactoryPuzObservers(this); menuFactory_ = new MenuFactory(this); menuFactory_.CreateMenu(gameconst.MENU_STATUS_MAIN); menuFactory_.CreateMenu(gameconst.MENU_STATUS_PLAYER); acceptedBonuses = new Array(); lev_score_counter = new unVisibleCounter(); deleted_counter = new unVisibleCounter(); time_counter = new unVisibleCounter(); money_counter = new unVisibleCounter(); level_counter = new unVisibleCounter(); levelmanager_ = new LevelManager(this); this.addEventListener(Event.ENTER_FRAME, GameLoop); clother_maskSource = new btn_clothe_mask(0, 0); afactory_game_bonus = new factory_game_bonus(this); result_board = new resultBoard(this); } public function showSword(_arg1:int, _arg2:int){ var _local3:BitmapData; var _local4:Bitmap; if (sword_spr == null){ sword_spr = new Sprite(); _local3 = new mouse_sword(0, 0); _local4 = new Bitmap(_local3); sword_spr.addChild(_local4); sword_spr.mouseEnabled = false; }; Mouse.hide(); sword_spr.x = _arg1; sword_spr.y = _arg2; addChild(sword_spr); this.addEventListener(MouseEvent.MOUSE_MOVE, SwordMove); } public function MusicCompleteHandler(_arg1:Event){ } public function PopMenuState(){ menuStatesArr.pop(); } public function SwordMove(_arg1:MouseEvent){ sword_spr.x = (_arg1.stageX - 10); sword_spr.y = _arg1.stageY; } public function StartGame(){ levelmanager_.loadMainXml(); CreateBackGround("back_1"); if (score_counter == null){ score_counter = new ScoreCounter(this, gameconst.SCORE_COUNTER_X, gameconst.SCORE_COUNTER_Y); }; if (vlevel_counter == null){ vlevel_counter = new LevelCounter(this, gameconst.LEVEL_COUNTER_X, gameconst.LEVEL_COUNTER_Y); }; } public function initVars():void{ game_vars.lastGameTime = 0; game_vars.lastGameTime = getTimer(); CurrentGameState = gameconst.GSTATE_LOADING; game_vars.CellsFadedTime = 0; displayed = 0; } public function AddHeroArmour(_arg1:String){ } private function handleComplete(_arg1:Event):void{ var event = _arg1; try { levelXML = new XML(event.target.data); CompleteLoading(); } catch(e:TypeError) { trace(e.message); }; } public function CreateBackGround(_arg1:String){ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; var _local5:BitmapData; var _local6:Bitmap; var _local7:BitmapData; if (back_game_spr == null){ back_game_spr = new Sprite(); _local2 = (getDefinitionByName(_arg1) as Class); back_image_data = new _local2(0, 0); back_image = new Bitmap(back_image_data); back_image.x = 0; back_image.y = 0; back_game_spr.addChildAt(back_image, 0); _local3 = new hero_fon(0, 0); _local4 = new Bitmap(_local3); _local5 = new flag(0, 0); _local6 = new Bitmap(_local5); _local7 = new hero(0, 0); hero_bitmap = new Bitmap(_local7); back_hero = new Sprite(); back_hero.addChild(_local4); back_hero.addChild(_local6); hero_bitmap.y = 132; hero_bitmap.x = -4; back_hero.addChild(hero_bitmap); back_game_spr.addChild(back_hero); back_heroArmour = new Array(); }; back_game_spr.alpha = 1; addChildAt(back_game_spr, 0); } public function CreateCells():void{ var _local1:*; var _local2:int; var _local3:Array; var _local4:*; var _local5:cell_japan; var _local6:int; var _local7:int; _local1 = 0; while (_local1 < gameconst.CELLS_YCOUNT) { _local3 = new Array(); _local4 = 0; while (_local4 < gameconst.CELLS_XCOUNT) { _local5 = new cell_japan(); _local5.x = -100; _local3.push(_local5); _local4++; }; this.aboard.boardArray.push(_local3); _local1++; }; cells_array = new Array(); _local2 = 0; while (_local2 < levelXML.elements("*").elements("*").length()) { _local6 = levelXML.elements("*").children()[_local2].elements("x"); _local7 = levelXML.elements("*").children()[_local2].elements("y"); aboard.CreateCellJapan(_local6, _local7, levelXML.elements("*").children()[_local2].elements("cellType"), aboard.boardArray[_local7][_local6]); cells_array.push(aboard.boardArray[_local7][_local6]); _local2++; }; } public function LoadMochiAd(){ MochiAd.showPreGameAd({clip:this, id:"5e1e7311f4810092", res:"600x450", ad_finished:this.AfterLoading}); } public function CreateBackGroundShop(_arg1:String){ var _local2:Class; var _local3:BitmapData; _local2 = (getDefinitionByName(_arg1) as Class); _local3 = new _local2(0, 0); shop_image = new Bitmap(_local3); shop_image.x = 0; shop_image.y = 0; shop_sprite = new Sprite(); shop_sprite.addChild(shop_image); addChildAt(shop_sprite, 0); } private function CompleteLoading():void{ var _local1:int; initVars(); game_vars.MinCellYpos = 1000; game_vars.MaxCellYpos = 0; bonusesArr = new Array(); factory_items = new ItemsFactory(this); factory_items.FillStores(itemsArr_); if (aboard != null){ aboard.LastTry(); }; aboard = new gameboard(this); lev_score_counter.reset(); time_counter.reset(); deleted_counter.reset(); CreateCells(); aboard.Create(levelXML); aboard.atimebar_.setFullTime((boardtime_ * time_index_)); aboard.atimebar_.Start(); game_vars.itemsJapanDepth = 0; _local1 = 0; while (_local1 < aboard.boardArray.length) { game_vars.itemsJapanDepth = (game_vars.itemsJapanDepth + aboard.boardArray[_local1].length); _local1++; }; game_vars.itemsJapanDepth = (cells_array.length + 1); CurrentGameState = gameconst.GSTATE_CELLS_FADING_ON; } public function drawScore(_arg1:Array, _arg2:Array, _arg3:Array){ if (menuStatesArr[(menuStatesArr.length - 1)] == gameconst.MENU_STATUS_SCORES){ menuFactory_.drawScores(_arg1, _arg2, _arg3); }; } public function LoadTranslator(){ translator_ = new Translator(this); translator_.loadLanguageXmlInt(); } public function ShowGameFace(){ if (score_counter != null){ this.addChild(score_counter); }; if (vlevel_counter != null){ this.addChild(vlevel_counter); }; aboard.setClothersAlpha(1); } public function hideSword(){ if (sword_spr != null){ removeChild(sword_spr); this.removeEventListener(MouseEvent.MOUSE_MOVE, SwordMove); Mouse.show(); }; } public function AfterLoading(){ if (hasSounds == false){ gotoAndPlay(2); soundFactory = new SoundFactory(this); soundFactory.CreateSounds(); aFormats = new TextFormats(); hasSounds = true; }; score_names = new Array(); score_table = new Score_Table(); menuStatesArr = new Array(); menuStatesArr.push(gameconst.MENU_STATUS_NONE); LoadTranslator(); } public function LoadLevelA(_arg1:String, _arg2:Number, _arg3:Array){ var _local4:int; _local4 = levelmanager_.getXMLindA(_arg1); levelXML = new XML(levelmanager_.lvls_xml_arr_a[_local4]); boardtime_ = _arg2; itemsArr_ = _arg3; CompleteLoading(); } public function FadeOutBackground():Boolean{ back_game_spr.alpha = (back_game_spr.alpha - 0.02); aboard.atimebar_.resultSprite.alpha = (aboard.atimebar_.resultSprite.alpha - 0.02); aboard.setClothersAlpha(back_game_spr.alpha); game_vars.UpPieceBitmap.alpha = (game_vars.UpPieceBitmap.alpha - 0.02); if (back_game_spr.alpha < 0.01){ back_game_spr.alpha = 0; game_vars.UpPieceBitmap.alpha = 0; aboard.atimebar_.resultSprite.alpha = 0; removeChild(back_game_spr); return (false); }; return (true); } public function getCellByCoord(_arg1:int, _arg2:int):cell_japan{ var _local3:*; var _local4:*; var _local5:int; _local3 = (gameconst.CELLFIRST_X + (_arg1 * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH))); _local4 = (gameconst.CELLFIRST_Y + (_arg2 * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH))); _local5 = 0; while (_local5 < cells_array.length) { if ((((cells_array[_local5].x == _local3)) && ((cells_array[_local5].y == _local4)))){ return (cells_array[_local5]); }; _local5++; }; return (null); } public function GameLoop(_arg1:Event){ var _local2:int; var _local3:String; var _local4:URLRequest; switch (this.menu_result_){ case gameconst.MENU_RESULT_NONE: switch (this.menu_code_){ case gameconst.MENU_CODE_GAME_MENU: aboard.PauseGame(); menuFactory_.CreateMenu(gameconst.MENU_STATUS_RESUME); break; }; menu_code_ = gameconst.MENU_CODE_NONE; break; case gameconst.MENU_RESULT_PLAYER_DONE: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); _local2 = menuStatesArr[(menuStatesArr.length - 1)]; menuStatesArr.pop(); menuFactory_.CreateMenu(_local2); break; case gameconst.MENU_RESULT_RESUME_DONE: switch (this.menu_code_){ case gameconst.MENU_CODE_RESUME_RESUME: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); aboard.ResumeGame(); break; case gameconst.MENU_CODE_RESUME_OPTIONS: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; soundFactory.stopMusic(); menuFactory_.CreateMenu(gameconst.MENU_STATUS_OPTIONS); break; case gameconst.MENU_CODE_RESUME_SCORES: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuFactory_.CreateMenu(gameconst.MENU_STATUS_SCORES); LoadScores(); break; case gameconst.MENU_CODE_RESUME_PLAYER: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuFactory_.CreateMenu(gameconst.MENU_STATUS_PLAYER); break; case gameconst.MENU_CODE_RESUME_ABORT: if (!isRelax){ MochiAd.sendHighScore({clip:this, id:"5e1e7311f4810092", name:PlayerName_, score:score_counter.getvalue()}, score_table, "gotScores"); }; menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); removeChild(game_vars.UpPieceBitmap); score_counter.reset(); lev_score_counter.reset(); vlevel_counter.reset(); deleted_counter.reset(); time_counter.reset(); money_counter.reset(); level_counter.reset(); aboard.LastTry(); if (clovesArr.length > 1){ clovesArr.splice(1, (clovesArr.length - 1)); }; menuFactory_.CreateMenu(gameconst.MENU_STATUS_MAIN); break; }; break; case gameconst.MENU_RESULT_OPTIONS_DONE: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); _local2 = menuStatesArr[(menuStatesArr.length - 1)]; menuStatesArr.pop(); menuFactory_.CreateMenu(_local2); break; case gameconst.MENU_RESULT_SCORES_DONE: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); _local2 = menuStatesArr[(menuStatesArr.length - 1)]; menuStatesArr.pop(); menuFactory_.CreateMenu(_local2); break; case gameconst.MENU_RESULT_TIME_OUT_DONE: if (!isRelax){ MochiAd.sendHighScore({clip:this, id:"5e1e7311f4810092", name:PlayerName_, score:score_counter.getvalue()}, score_table, "gotScores"); }; switch (this.menu_code_){ case gameconst.MENU_CODE_TIME_OUT_EXIT: if (this.contains(game_vars.UpPieceBitmap)){ removeChild(game_vars.UpPieceBitmap); }; abonushop = null; time_index_ = 1; score_index_ = 1; menuStatesArr.pop(); menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; afactory_game_bonus.clearFactory(); score_counter.reset(); lev_score_counter.reset(); vlevel_counter.reset(); deleted_counter.reset(); time_counter.reset(); money_counter.reset(); level_counter.reset(); if (clovesArr.length > 1){ clovesArr.splice(1, (clovesArr.length - 1)); }; menuFactory_.CreateMenu(gameconst.MENU_STATUS_MAIN); break; case gameconst.MENU_CODE_TIME_OUT_RESTART: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; if (this.contains(game_vars.UpPieceBitmap)){ removeChild(game_vars.UpPieceBitmap); }; time_index_ = 1; score_index_ = 1; abonushop = null; score_counter.reset(); lev_score_counter.reset(); vlevel_counter.reset(); deleted_counter.reset(); time_counter.reset(); money_counter.reset(); level_counter.reset(); if (clovesArr.length > 1){ clovesArr.splice(1, (clovesArr.length - 1)); }; menuStatesArr.pop(); CurrentGameState = gameconst.GSTATE_LOADING; levelmanager_.restartLevel(); afactory_game_bonus.clearFactory(); break; }; break; case gameconst.MENU_RESULT_RELAX_DONE: switch (this.menu_code_){ case gameconst.MENU_CODE_RELAX_EXIT: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); _local2 = menuStatesArr[(menuStatesArr.length - 1)]; menuStatesArr.pop(); menuFactory_.CreateMenu(_local2); break; case gameconst.MENU_CODE_RELAX_PUZZLE: isRelax = true; menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; abonushop = null; time_index_ = 1; score_index_ = 1; afactory_game_bonus.clearFactory(); menuStatesArr.pop(); menuStatesArr.pop(); gplay_type = gameconst.GAMEPLAY_PUZZLE; StartGame(); break; case gameconst.MENU_CODE_RELAX_ARCADE: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; isRelax = true; abonushop = null; time_index_ = 1; score_index_ = 1; afactory_game_bonus.clearFactory(); menuStatesArr.pop(); menuStatesArr.pop(); gplay_type = gameconst.GAMEPLAY_ARCADE; StartGame(); break; }; break; case gameconst.MENU_RESULT_MAIN_DONE: switch (this.menu_code_){ case gameconst.MENU_CODE_NONE: break; case gameconst.MENU_CODE_MAIN_RELAX: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuFactory_.CreateMenu(gameconst.MENU_STATUS_RELAX); break; case gameconst.MENU_CODE_MAIN_ARCADE: isRelax = false; menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; abonushop = null; time_index_ = 1; score_index_ = 1; afactory_game_bonus.clearFactory(); menuStatesArr.pop(); gplay_type = gameconst.GAMEPLAY_ARCADE; StartGame(); break; case gameconst.MENU_CODE_MAIN_PUZZLE: isRelax = false; menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; abonushop = null; time_index_ = 1; score_index_ = 1; afactory_game_bonus.clearFactory(); menuStatesArr.pop(); gplay_type = gameconst.GAMEPLAY_PUZZLE; StartGame(); break; case gameconst.MENU_CODE_MAIN_GETIT: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuStatesArr.pop(); _local3 = translator_.Translate("URLREALORE")[0]; _local4 = new URLRequest(_local3); navigateToURL(_local4); menuFactory_.CreateMenu(gameconst.MENU_STATUS_MAIN); break; case gameconst.MENU_CODE_MAIN_OPTIONS: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuFactory_.CreateMenu(gameconst.MENU_STATUS_OPTIONS); break; case gameconst.MENU_CODE_MAIN_PLAYER: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuFactory_.CreateMenu(gameconst.MENU_STATUS_PLAYER); break; case gameconst.MENU_CODE_MAIN_SCORES: menu_result_ = gameconst.MENU_RESULT_NONE; menu_code_ = gameconst.MENU_CODE_NONE; menuFactory_.CreateMenu(gameconst.MENU_STATUS_SCORES); LoadScores(); }; break; }; if (menuStatesArr[(menuStatesArr.length - 1)] != gameconst.MENU_STATUS_NONE){ return; }; switch (CurrentGameState){ case gameconst.GSTATE_INTER_AD: break; case gameconst.GSTATE_LOADNEXT: trace("LoadNext"); CurrentGameState = gameconst.GSTATE_LOADING; levelmanager_.nextLevel(); break; case gameconst.GSTATE_LOADING: break; case gameconst.GSTATE_CELLS_FADING_ON: if (CountCellsByState(cell_japan.STATE_INVISIBLE) > 0){ StartSettingCellsStates(cell_japan.STATE_INVISIBLE, cell_japan.STATE_OPENING); } else { game_vars.UpPieceBitmap = new Bitmap(new BitmapData((640 - 100), game_vars.MinCellYpos)); game_vars.UpPieceBitmap.bitmapData.copyPixels(back_image.bitmapData, new Rectangle(140, 0, (640 - 100), game_vars.MinCellYpos), new Point(0, 0)); game_vars.UpPieceBitmap.x = 140; addChildAt(game_vars.UpPieceBitmap, game_vars.itemsJapanDepth); CurrentGameState = gameconst.GSTATE_ITEMS_FALLING; aboard.Start(); }; break; case gameconst.GSTATE_ITEMS_FALLING: break; case gameconst.GSTATE_IDLE: break; case gameconst.GSTATE_RANDOM_SHUFFLE: break; case gameconst.GSTATE_FROMLEVEL2LEVEL: if (CountCellsByState(cell_japan.STATE_IDLE) > 0){ StartSettingCellsStates(cell_japan.STATE_IDLE, cell_japan.STATE_CLOSING); } else { if (CountCellsByState(cell_japan.STATE_CLOSING) == 0){ levelmanager_.nextLevel(); }; }; break; case gameconst.GSTATE_FADEOUTBOARDTIMEOUT: if (CountCellsByState(cell_japan.STATE_IDLE) > 0){ StartSettingCellsStates(cell_japan.STATE_IDLE, cell_japan.STATE_CLOSING); } else { if (CountCellsByState(cell_japan.STATE_CLOSING) == 0){ if (this.contains(game_vars.UpPieceBitmap)){ removeChild(game_vars.UpPieceBitmap); }; menuFactory_.CreateMenu(gameconst.MENU_STATUS_TIME_OUT); }; }; break; case gameconst.GSTATE_FADEOUTBOARD: if (CountCellsByState(cell_japan.STATE_IDLE) > 0){ StartSettingCellsStates(cell_japan.STATE_IDLE, cell_japan.STATE_CLOSING); }; break; case gameconst.GSTATE_STARTFADE2SHOP: CurrentGameState = gameconst.GSTATE_FADE2SHOP; removeChild(score_counter); removeChild(vlevel_counter); removeChild(game_vars.UpPieceBitmap); CreateBackGroundShop("shop_back"); if ((adcounter % 3) == 0){ InterLevelAd(); } else { AfterInter(); }; trace("InterLevelAd()"); break; case gameconst.GSTATE_FROMGAME2SHOP: if (CountCellsByState(cell_japan.STATE_IDLE) > 0){ StartSettingCellsStates(cell_japan.STATE_IDLE, cell_japan.STATE_CLOSING); }; break; case gameconst.GSTATE_FADE2SHOP: if (!FadeOutBackground()){ CurrentGameState = gameconst.GSTATE_SHOP; }; break; case gameconst.GSTATE_SHOP_CREATING: if (abonushop == null){ abonushop = new bonushop(this); }; abonushop.updateShop(); abonushop.alpha = 1; CurrentGameState = gameconst.GSTATE_SHOP; break; }; } public function LoadLevelP(_arg1:String, _arg2:int, _arg3:Array, _arg4:Array, _arg5:Array){ var _local6:int; _local6 = levelmanager_.getXMLindP(_arg1); levelXML = new XML(levelmanager_.lvls_xml_arr_p[_local6]); boardtime_ = _arg2; itemsArr_ = _arg3; puzzItemsArr_ = _arg4; puzzItemsCount_ = _arg5; CompleteLoading(); } } }//package
Section 55
//game_vars (game_vars) package { import flash.display.*; public class game_vars { public static var MaxCellYpos:int; public static var CellsFadedTime:int; public static var currFirstDisplayingTime:Number; public static var itemsJapanDepth:int; public static var displayMask:Sprite; public static var MinCellYpos:int; public static var CellSelectedSecond:Number; public static var CellSelectedFirst:Number; public static var DownPieceBitmap:Bitmap; public static var lastGameTime:int; public static var UpPieceBitmap:Bitmap; } }//package
Section 56
//gameboard (gameboard) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.geom.*; public class gameboard extends Sprite { private var rowsArray:Array; public var firstPiece:cell_item_japan; private var isDropping; public var puzzleTable_:MovieClip; public var BombArr:Array; public var puzzle_observers_:Array; var bonuscount:int;// = 0 public var atimebar_:TimeBar; public var cloverArr:Array; public var itemsArray:Array; public var dist_offs_y:Number; public var dist_offs_x:Number; public var glovesArr:Array; public var doublesword:int;// = 0 private var isSwapping:Boolean; public var selected_clover:i_clother; private var AnimText:ModalTempAnimText; public var blackHoles:Array; public var shuffeled:Boolean;// = false public var boardArray:Array; public var pausedTime:int;// = 0 public var timeFreezed;// = 0 public var isFlashing:Boolean;// = false public var boardState:int;// = 2 public var glovesCounter:int; public var fact_clothes:factory_clothes; public var x2_scale:int;// = 1 private var firstload:Boolean;// = true public var observers_:Array; public var bombcount:int; public var entrArray:Array; public var clovesQuew:Array; public var velocityRot:Number; private var ParentGame:game; public var Match2Arr:Array; public static const STATE_START_SHUFFLING:int = 4; public static const STATE_BOMBING:int = 15; public static const STATE_SHUFFLING_END:int = 7; public static const STATE_DOUBLES:int = 11; public static const STATE_START_BOMBING:int = 14; private static const STATE_SETUP:int = 0; public static const STATE_START_DOUBLES:int = 10; private static const STATE_PREPARE:int = 2; public static const STATE_LIGHTING:int = 13; public static const STATE_START_GLOOVING:int = 8; public static const STATE_SHUFFLING:int = 6; private static const STATE_VICTORY:int = 5; private static const FALLING_VEL:int = 15; private static const STATE_IDLE:int = 1; private static const STATE_FALLING:int = 3; public static const STATE_START_LIGHTING:int = 12; public static const STATE_GLOOVING:int = 9; private static var menuBtn:MenuBtn = null; public function gameboard(_arg1:game){ boardState = STATE_PREPARE; shuffeled = false; pausedTime = 0; bonuscount = 0; timeFreezed = 0; firstload = true; isFlashing = false; x2_scale = 1; doublesword = 0; super(); this.ParentGame = _arg1; this.blackHoles = new Array(); this.glovesArr = new Array(); this.Match2Arr = new Array(); this.BombArr = new Array(); this.boardArray = new Array(); observers_ = new Array(); puzzle_observers_ = new Array(); atimebar_ = new TimeBar(_arg1); fact_clothes = new factory_clothes(_arg1); clovesQuew = new Array(); isDropping = false; } public function removeCell(_arg1:cell_japan){ if (_arg1 == null){ return; }; if (_arg1.theItem != null){ if (ParentGame.contains(_arg1.theItem)){ ParentGame.removeChild(_arg1.theItem); }; ParentGame.factory_items.pushToStore(_arg1.theItem); }; if (this.ParentGame.contains(_arg1)){ this.ParentGame.removeChild(_arg1); }; } public function CreateCellJapan(_arg1:int, _arg2:int, _arg3:String, _arg4:cell_japan){ var _local5:Class; var _local6:BitmapData; var _local7:Bitmap; _arg4.ParentGame = this.ParentGame; _local5 = (getDefinitionByName(_arg3) as Class); _local6 = new _local5(0, 0); _local7 = new Bitmap(_local6); _local7.name = _arg3; _arg4.logX = _arg1; _arg4.logY = _arg2; _arg4.x = (gameconst.CELLFIRST_X + (_arg1 * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH))); _arg4.y = (gameconst.CELLFIRST_Y + (_arg2 * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH))); _arg4.addChild(_local7); _arg4.cellBData = _local6; if (game_vars.MaxCellYpos < _arg4.y){ game_vars.MaxCellYpos = _arg4.y; }; if (game_vars.MinCellYpos > _arg4.y){ game_vars.MinCellYpos = _arg4.y; }; _arg4.cellType = _arg3; _arg4.cellimage = _local7; return (_arg4); } public function menubtnMouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; } public function isEntrance(_arg1:cell_japan):Boolean{ var _local2:int; _local2 = 0; while (_local2 < entrArray.length) { if (entrArray[_local2] == _arg1){ return (true); }; _local2++; }; return (false); } public function StartGloves(){ var _local1:int; var _local2:*; var _local3:int; var _local4:int; var _local5:int; glovesCounter = 20; glovesArr.splice(0, glovesArr.length); _local1 = 0; while (_local1 < gameconst.CELLS_YCOUNT) { _local4 = 0; while (_local4 < gameconst.CELLS_XCOUNT) { if (boardArray[_local1][_local4].theItem != null){ glovesArr.push(boardArray[_local1][_local4].theItem); }; _local4++; }; _local1++; }; _local2 = (glovesArr.length - (glovesArr.length / 5)); _local3 = 0; while (_local3 < _local2) { _local5 = (Math.random() * glovesArr.length); glovesArr.splice(_local5, 1); _local3++; }; boardState = STATE_START_GLOOVING; } public function HidePuzleTable(){ if (puzzle_observers_.length > 0){ if (ParentGame.contains(puzzleTable_)){ ParentGame.removeChild(puzzleTable_); }; }; } public function Stop(){ this.removeEventListener(Event.ENTER_FRAME, BoardLoop); } public function menubtnMouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function lookForMatches(_arg1:cell_item_japan=null, _arg2:cell_item_japan=null):Array{ var _local3:Array; var _local4:int; var _local5:int; var _local6:Array; var _local7:Boolean; var _local8:int; var _local9:int; _local3 = new Array(); _local4 = 0; while (_local4 < gameconst.CELLS_YCOUNT) { _local5 = 0; while (_local5 < gameconst.CELLS_XCOUNT) { _local6 = getMatchHoriz(_local5, _local4); if (_local6.length > (2 - doublesword)){ _local3.push(_local6); _local5 = (_local5 + (_local6.length - 1)); }; if ((((_local6.length == 2)) && (!((doublesword == 0))))){ if (Match2ArrHasItem(_local6[0]) == false){ Match2Arr.push(_local6[0]); }; if (Match2ArrHasItem(_local6[1]) == false){ Match2Arr.push(_local6[1]); }; }; _local5++; }; _local4++; }; _local5 = 0; while (_local5 < gameconst.CELLS_XCOUNT) { _local4 = 0; while (_local4 < gameconst.CELLS_YCOUNT) { _local6 = getMatchVert(_local5, _local4); if (_local6.length > (2 - doublesword)){ _local3.push(_local6); _local4 = (_local4 + (_local6.length - 1)); }; if ((((_local6.length == 2)) && (!((doublesword == 0))))){ if (Match2ArrHasItem(_local6[0]) == false){ Match2Arr.push(_local6[0]); }; if (Match2ArrHasItem(_local6[1]) == false){ Match2Arr.push(_local6[1]); }; }; _local4++; }; _local5++; }; if (((!((_arg1 == null))) && (!((_arg2 == null))))){ _local7 = false; _local8 = 0; while (_local8 < _local3.length) { _local9 = 0; while (_local9 < _local3[_local8].length) { if ((((_local3[_local8][_local9] == _arg1)) || ((_local3[_local8][_local9] == _arg2)))){ _local7 = true; break; }; _local9++; }; _local8++; }; if (_local7 == false){ _local3.splice(0, _local3.length); }; }; return (_local3); } public function incResults(){ ParentGame.money_counter.update(2); ParentGame.level_counter.update(1); ParentGame.vlevel_counter.update(1); } public function clickPiece(_arg1:MouseEvent){ var _local2:cell_item_japan; var _local3:String; if (((!((boardState == STATE_SETUP))) || (!((ParentGame.CurrentGameState == gameconst.GSTATE_ITEMS_FALLING))))){ return; }; _local2 = cell_item_japan(_arg1.currentTarget); if (selected_clover != null){ _local3 = i_Observer(selected_clover).getname(); if (_local3 == "sword"){ selected_clover.Fire(_local2.col, _local2.row); DropClover(); return; }; }; if (firstPiece == null){ _local2.startPumping(); firstPiece = _local2; } else { if (firstPiece == _local2){ _local2.stopPumping(); firstPiece = null; } else { firstPiece.stopPumping(); if (firstPiece.row == _local2.row){ if (Math.abs((firstPiece.col - _local2.col)) == 1){ makeSwap(firstPiece, _local2); firstPiece = null; }; } else { if (firstPiece.col == _local2.col){ if (Math.abs((firstPiece.row - _local2.row)) == 1){ makeSwap(firstPiece, _local2); firstPiece = null; }; } else { firstPiece = _local2; firstPiece.startPumping(); }; }; }; }; } public function Match2ArrHasItem(_arg1:cell_item_japan):Boolean{ var _local2:int; _local2 = 0; while (_local2 < Match2Arr.length) { if (Match2Arr[_local2] == _arg1){ return (true); }; _local2++; }; return (false); } public function OnTimeOut(){ if (isDone()){ LevelDone(); } else { atimebar_.Pause(); atimebar_.Terminate(); if (ParentGame.contains(atimebar_.resultSprite)){ ParentGame.removeChild(atimebar_.resultSprite); }; removeGameItems(gameconst.GSTATE_FADEOUTBOARDTIMEOUT); ParentGame.score_counter.update(-(ParentGame.lev_score_counter.getvalue())); ParentGame.menuFactory_.CreateMenu(gameconst.MENU_STATUS_TIME_OUT); LastTry(); }; } public function removeCloves(){ var _local1:int; _local1 = 0; while (_local1 < cloverArr.length) { if (ParentGame.contains(cloverArr[_local1].GetCloverBorder())){ ParentGame.removeChild(cloverArr[_local1].GetCloverBorder()); }; if (ParentGame.contains(cloverArr[_local1].GetCloverButton())){ ParentGame.removeChild(cloverArr[_local1].GetCloverButton()); }; if (cloverArr[_local1].GetShirma() != null){ if (ParentGame.contains(cloverArr[_local1].GetShirma())){ ParentGame.removeChild(cloverArr[_local1].GetShirma()); }; }; _local1++; }; cloverArr.splice(0, cloverArr.length); } public function addClother(_arg1:i_clother){ clovesQuew.push(_arg1); } public function Start(){ this.boardState = STATE_PREPARE; this.addEventListener(Event.ENTER_FRAME, BoardLoop); } public function setClothersAlpha(_arg1:Number){ var _local2:int; var _local3:Bitmap; _local2 = 0; while (_local2 < cloverArr.length) { cloverArr[_local2].GetCloverBorder().alpha = _arg1; cloverArr[_local2].GetCloverButton().alpha = _arg1; _local3 = cloverArr[_local2].GetShirma(); if (_local3 != null){ _local3.alpha = _arg1; }; _local2++; }; } public function FreezeBoard(){ timeFreezed = (24 * 10); } public function SetUp(){ } public function BoardLoop(_arg1:Event){ var _local2:Array; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:int; if (ParentGame.menuStatesArr[(ParentGame.menuStatesArr.length - 1)] != gameconst.MENU_STATUS_NONE){ return; }; if (timeFreezed > 0){ timeFreezed--; }; switch (boardState){ case STATE_START_BOMBING: break; case STATE_BOMBING: bombcount++; _local4 = 0; while (_local4 < BombArr.length) { if (BombArr[_local4].bombstate < 0){ BombArr[_local4].width = (BombArr[_local4].width - 2); BombArr[_local4].height = (BombArr[_local4].height - 2); BombArr[_local4].x = (BombArr[_local4].x + 1); BombArr[_local4].y = (BombArr[_local4].y + 1); } else { BombArr[_local4].width = (BombArr[_local4].width + 2); BombArr[_local4].height = (BombArr[_local4].height + 2); BombArr[_local4].x = (BombArr[_local4].x - 1); BombArr[_local4].y = (BombArr[_local4].y - 1); }; if (BombArr[_local4].width < 10){ BombArr[_local4].bombstate = 1; } else { if (BombArr[_local4].width > 40){ BombArr[_local4].bombstate = -1; }; }; if (bombcount >= 25){ BombArr[_local4].startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; _local4++; }; if (bombcount >= 25){ BombArr.splice(0, BombArr.length); boardState = STATE_SETUP; }; break; case STATE_START_LIGHTING: break; case STATE_LIGHTING: break; case STATE_START_DOUBLES: doublesword = 0; glovesCounter = 30; _local5 = 0; while (_local5 < Match2Arr.length) { _local6 = (Math.random() * 8); _local6 = (_local6 - 4); _local7 = (Math.random() * 8); _local7 = (_local7 - 4); Match2Arr[_local5].x = (Match2Arr[_local5].x + _local6); Match2Arr[_local5].y = (Match2Arr[_local5].y + _local7); _local5++; }; this.boardState = STATE_DOUBLES; break; case STATE_DOUBLES: _local5 = 0; while (_local5 < Match2Arr.length) { if (Match2Arr[_local5].x < Match2Arr[_local5].curr_cell_.x){ Match2Arr[_local5].x++; } else { if (Match2Arr[_local5].x > Match2Arr[_local5].curr_cell_.x){ Match2Arr[_local5].x--; } else { if (Match2Arr[_local5].x == Match2Arr[_local5].curr_cell_.x){ _local6 = (Math.random() * 8); _local6 = (_local6 - 4); Match2Arr[_local5].x = (Match2Arr[_local5].x + _local6); }; }; }; if (Match2Arr[_local5].y < Match2Arr[_local5].curr_cell_.y){ Match2Arr[_local5].y++; } else { if (Match2Arr[_local5].y > Match2Arr[_local5].curr_cell_.y){ Match2Arr[_local5].y--; } else { if (Match2Arr[_local5].y == Match2Arr[_local5].curr_cell_.y){ _local7 = (Math.random() * 8); _local7 = (_local7 - 4); Match2Arr[_local5].y = (Match2Arr[_local5].y + _local7); }; }; }; if (glovesCounter <= 0){ Match2Arr[_local5].x = Match2Arr[_local5].curr_cell_.x; Match2Arr[_local5].y = Match2Arr[_local5].curr_cell_.y; Match2Arr[_local5].startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; _local5++; }; if (glovesCounter <= 0){ Match2Arr.splice(0, Match2Arr.length); this.boardState = STATE_SETUP; doublesword = 0; }; glovesCounter--; break; case STATE_START_GLOOVING: _local5 = 0; while (_local5 < glovesArr.length) { _local6 = ((Math.random() * 8) - 4); _local7 = ((Math.random() * 8) - 4); glovesArr[_local5].x = (glovesArr[_local5].x + _local6); glovesArr[_local5].y = (glovesArr[_local5].y + _local7); _local5++; }; this.boardState = STATE_GLOOVING; break; case STATE_GLOOVING: _local5 = 0; while (_local5 < glovesArr.length) { if (glovesArr[_local5].x < glovesArr[_local5].curr_cell_.x){ glovesArr[_local5].x++; } else { if (glovesArr[_local5].x > glovesArr[_local5].curr_cell_.x){ glovesArr[_local5].x--; } else { if (glovesArr[_local5].x == glovesArr[_local5].curr_cell_.x){ _local6 = ((Math.random() * 8) - 4); glovesArr[_local5].x = (glovesArr[_local5].x + _local6); }; }; }; if (glovesArr[_local5].y < glovesArr[_local5].curr_cell_.y){ glovesArr[_local5].y++; } else { if (glovesArr[_local5].y > glovesArr[_local5].curr_cell_.y){ glovesArr[_local5].y--; } else { if (glovesArr[_local5].y == glovesArr[_local5].curr_cell_.y){ _local7 = ((Math.random() * 8) - 4); glovesArr[_local5].y = (glovesArr[_local5].y + _local7); }; }; }; if (glovesCounter <= 0){ glovesArr[_local5].x = glovesArr[_local5].curr_cell_.x; glovesArr[_local5].y = glovesArr[_local5].curr_cell_.y; glovesArr[_local5].startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); }; _local5++; }; if (glovesCounter <= 0){ glovesArr.splice(0, glovesArr.length); this.boardState = STATE_SETUP; }; glovesCounter--; break; case STATE_START_SHUFFLING: this.boardState = STATE_SHUFFLING; velocityRot = 0.005; dist_offs_x = 0; dist_offs_y = 0; break; case STATE_SHUFFLING: velocityRot = (velocityRot + 0.001); dist_offs_x = (dist_offs_x - 0.1); dist_offs_y = (dist_offs_y - 0.1); _local8 = 0; while (_local8 < gameconst.CELLS_YCOUNT) { _local9 = 0; while (_local9 < gameconst.CELLS_XCOUNT) { if (((boardArray[_local8][_local9]) && (!((boardArray[_local8][_local9].theItem == null))))){ _local10 = (0.09 + velocityRot); _local11 = Math.cos(_local10); _local12 = Math.sin(_local10); _local13 = (boardArray[_local8][_local9].theItem.x - boardArray[4][5].x); _local14 = (boardArray[_local8][_local9].theItem.y - boardArray[4][5].y); if (_local13 > 0){ dist_offs_x = -(Math.abs(dist_offs_x)); } else { dist_offs_x = Math.abs(dist_offs_x); }; if (_local14 > 0){ dist_offs_y = -(Math.abs(dist_offs_y)); } else { dist_offs_y = Math.abs(dist_offs_y); }; _local15 = ((_local11 * _local13) - (_local12 * _local14)); _local16 = ((_local11 * _local14) + (_local12 * _local13)); boardArray[_local8][_local9].theItem.x = ((boardArray[4][5].x + _local15) + dist_offs_x); boardArray[_local8][_local9].theItem.y = ((boardArray[4][5].y + _local16) + dist_offs_y); }; _local9++; }; _local8++; }; if (_local10 >= 0.13){ boardState = STATE_SHUFFLING_END; }; break; case STATE_SHUFFLING_END: _local2 = new Array(); _local4 = 0; while (_local4 < ParentGame.cells_array.length) { if (ParentGame.cells_array[_local4].x != -100){ _local2.push(ParentGame.cells_array[_local4]); }; _local4++; }; _local3 = (_local2.length - 1); _local8 = 0; while (_local8 < gameconst.CELLS_YCOUNT) { _local9 = 0; while (_local9 < gameconst.CELLS_XCOUNT) { if (boardArray[_local8][_local9].theItem != null){ _local17 = _local2[_local3].theItem.imageInd_; _local2[_local3].theItem.imageInd_ = boardArray[_local8][_local9].theItem.imageInd_; _local2[_local3].theItem.itemImage_.gotoAndStop(_local2[_local3].theItem.imageInd_); boardArray[_local8][_local9].theItem.imageInd_ = _local17; boardArray[_local8][_local9].theItem.itemImage_.gotoAndStop(boardArray[_local8][_local9].theItem.imageInd_); _local3--; }; _local9++; }; _local8++; }; shuffeled = true; boardState = STATE_SETUP; break; case STATE_PREPARE: trace("preparing"); _local8 = 1; while (_local8 < gameconst.CELLS_YCOUNT) { _local9 = 0; while (_local9 < gameconst.CELLS_XCOUNT) { if (((this.boardArray[_local8][_local9]) && (!((this.boardArray[_local8][_local9].x == -100))))){ if (((this.boardArray[(_local8 - 1)][_local9]) && (!((this.boardArray[(_local8 - 1)][_local9].x == -100))))){ this.boardArray[_local8][_local9].dataSource = this.boardArray[(_local8 - 1)][_local9]; } else { if (((((((((_local8 - 1) > -1)) && (((_local9 + 1) < gameconst.CELLS_XCOUNT)))) && (this.boardArray[(_local8 - 1)][(_local9 + 1)]))) && (!((this.boardArray[(_local8 - 1)][(_local9 + 1)].x == -100))))){ this.boardArray[_local8][_local9].dataSource = this.boardArray[(_local8 - 1)][(_local9 + 1)]; } else { if (((((((((_local8 - 1) > -1)) && (((_local9 - 1) > -1)))) && (this.boardArray[(_local8 - 1)][(_local9 - 1)]))) && (!((this.boardArray[(_local8 - 1)][(_local9 - 1)].x == -100))))){ this.boardArray[_local8][_local9].dataSource = this.boardArray[(_local8 - 1)][(_local9 - 1)]; }; }; }; }; _local9++; }; _local8++; }; _local8 = 0; while (_local8 < gameconst.CELLS_YCOUNT) { _local9 = 0; while (_local9 < gameconst.CELLS_XCOUNT) { if (((((this.boardArray[_local8][_local9]) && (!((this.boardArray[_local8][_local9].x == -100))))) && ((this.boardArray[_local8][_local9].dataSource == null)))){ boardArray[_local8][_local9].theItem = addNew(_local9, _local8); ParentGame.addChild(boardArray[_local8][_local9].theItem); boardArray[_local8][_local9].theItem.y = (boardArray[_local8][_local9].theItem.y - boardArray[_local8][_local9].theItem.height); }; _local9++; }; _local8++; }; boardState = STATE_SETUP; break; case STATE_SETUP: if (ParentGame.result_board.isVisible){ boardState = STATE_VICTORY; return; }; MovePieces(); break; case STATE_IDLE: break; case STATE_FALLING: break; }; } public function makeSwap(_arg1, _arg2:cell_item_japan){ var _local3:String; swapPieces(_arg1, _arg2); if (selected_clover != null){ _local3 = i_Observer(selected_clover).getname(); DropClover(); }; if ((((lookForMatches(_arg1, _arg2).length == 0)) && (!((_local3 == "boots"))))){ swapPieces(_arg1, _arg2); ParentGame.soundFactory.playSound(SoundFactory.SND_ITEM_RETIRE); } else { isSwapping = true; }; } public function removeLink(_arg1:cell_item_japan){ var _local2:int; var _local3:int; _local2 = 0; while (_local2 < gameconst.CELLS_XCOUNT) { _local3 = (gameconst.CELLS_YCOUNT - 1); while (_local3 >= 0) { if (((((!((boardArray[_local3][_local2] == null))) && (!((boardArray[_local3][_local2].curritem == null))))) && ((boardArray[_local3][_local2].curritem == _arg1)))){ boardArray[_local3][_local2].curritem.curr_cell_ = null; boardArray[_local3][_local2].curritem = null; boardArray[_local3][_local2].canditem = null; break; }; _local3--; }; _local2++; }; } public function AffectLeftUp():Boolean{ return (false); } public function DropClover(){ selected_clover = null; } public function MovePieces(){ var _local1:Boolean; var _local2:int; var _local3:Boolean; var _local4:int; var _local5:int; _local1 = false; _local2 = 0; while (_local2 < blackHoles.length) { blackHoles[_local2].Process(); _local1 = true; _local2++; }; if (_local1){ return; }; if (BombArr.length > 0){ return; }; if (isFlashing){ return; }; _local3 = false; if (((((((!((atimebar_ == null))) && (ParentGame.contains(atimebar_.resultSprite)))) && (!(atimebar_.paused_)))) && ((timeFreezed == 0)))){ atimebar_.Pause(); }; _local4 = 0; while (_local4 < gameconst.CELLS_YCOUNT) { _local5 = 0; while (_local5 < gameconst.CELLS_XCOUNT) { if (boardArray[_local4][_local5].theItem != null){ if (boardArray[_local4][_local5].theItem.x < ((boardArray[_local4][_local5].theItem.col * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_X)){ boardArray[_local4][_local5].theItem.x = (boardArray[_local4][_local5].theItem.x + FALLING_VEL); if (boardArray[_local4][_local5].theItem.x > ((boardArray[_local4][_local5].theItem.col * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_X)){ boardArray[_local4][_local5].theItem.x = ((boardArray[_local4][_local5].theItem.col * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_X); }; _local3 = true; }; if (boardArray[_local4][_local5].theItem.x > ((boardArray[_local4][_local5].theItem.col * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_X)){ boardArray[_local4][_local5].theItem.x = (boardArray[_local4][_local5].theItem.x - FALLING_VEL); _local3 = true; }; if (boardArray[_local4][_local5].theItem.y > ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y)){ boardArray[_local4][_local5].theItem.y = (boardArray[_local4][_local5].theItem.y - FALLING_VEL); if (boardArray[_local4][_local5].theItem.y < ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y)){ boardArray[_local4][_local5].theItem.y = ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y); }; _local3 = true; }; if (boardArray[_local4][_local5].theItem.y < ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y)){ boardArray[_local4][_local5].theItem.y = (boardArray[_local4][_local5].theItem.y + FALLING_VEL); if (boardArray[_local4][_local5].theItem.y > ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y)){ boardArray[_local4][_local5].theItem.y = ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y); }; _local3 = true; }; if ((((boardArray[_local4][_local5].theItem.y == ((boardArray[_local4][_local5].theItem.row * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_Y))) && ((boardArray[_local4][_local5].theItem.x == ((boardArray[_local4][_local5].theItem.col * (gameconst.CELLWIDTH - gameconst.CELLBORDER_WIDTH)) + gameconst.CELLFIRST_X))))){ boardArray[_local4][_local5].theItem.curr_cell_ = boardArray[_local4][_local5]; ProcSources(_local4, _local5); }; }; _local5++; }; _local4++; }; if (!_local3){ if (clovesQuew.length > 0){ clovesQuew[(clovesQuew.length - 1)].Start(); clovesQuew.pop(); return (0); }; if (shuffeled){ shuffeled = false; findAndRemoveMatches(); }; if (((isDropping) && (!(_local3)))){ isDropping = false; findAndRemoveMatches(); } else { if (((isSwapping) && (!(_local3)))){ isSwapping = false; if (findAndRemoveMatches()){ }; }; }; if (((((((!((atimebar_ == null))) && (ParentGame.contains(atimebar_.resultSprite)))) && (atimebar_.paused_))) && ((timeFreezed == 0)))){ atimebar_.Resume(); }; }; } public function AffectUp():Boolean{ return (false); } public function swapPieces(_arg1, _arg2:cell_item_japan){ var _local3:uint; var _local4:uint; _local3 = _arg1.col; _local4 = _arg1.row; _arg1.col = _arg2.col; _arg1.row = _arg2.row; _arg2.col = _local3; _arg2.row = _local4; boardArray[_arg1.row][_arg1.col].theItem = _arg1; boardArray[_arg2.row][_arg2.col].theItem = _arg2; } public function RegisterObserver(_arg1:i_Observer){ this.observers_.push(_arg1); } public function removeGameItems(_arg1:int){ ParentGame.removeChild(menuBtn); if (((!((atimebar_ == null))) && (ParentGame.contains(atimebar_.resultSprite)))){ ParentGame.removeChild(atimebar_.resultSprite); }; ParentGame.CurrentGameState = _arg1; if (selected_clover != null){ if (i_Observer(selected_clover).getname() == "sword"){ ParentGame.hideSword(); }; selected_clover = null; }; if (ParentGame.gplay_type == gameconst.GAMEPLAY_PUZZLE){ HidePuzleTable(); }; removeCloves(); } public function UpdateClotherView(_arg1:Object){ var _local2:int; var _local3:Bitmap; var _local4:int; var _local5:int; var _local6:BitmapData; var _local7:int; var _local8:Bitmap; if (_arg1 == null){ return; }; _local2 = _arg1.getvalue(); if (_local2 >= 100){ _arg1.reset(); unRegisterObserver(i_Observer(_arg1)); i_clother(_arg1).Activate(); } else { _local3 = i_clother(_arg1).GetCloverBorder(); _local4 = _local3.x; _local5 = _local3.y; _local6 = new btn_clothe_mask(0, 0); _local7 = ((_local6.height / 100) * _local2); _local8 = new Bitmap(new BitmapData(_local6.width, (_local6.height - _local7))); _local8.bitmapData.copyPixels(_local6, new Rectangle(0, (0 + _local7), _local6.width, _local6.height), new Point(0, 0)); _local8.x = (_local4 + 4); _local8.y = ((_local5 + 3) + _local7); i_clother(_arg1).SetShirma(_local8); }; } public function PauseGame(){ var _local1:int; if (atimebar_ != null){ atimebar_.Pause(); }; if (itemsArray != null){ _local1 = 0; while (_local1 < itemsArray.length) { itemsArray[_local1].Pause(); _local1++; }; }; } public function AffectRightUp():Boolean{ return (false); } public function setDataSources(){ } public function menubtnClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); this.Release(_local2.btnId_); } public function LevelDone():Boolean{ if (((isDone()) && (!(ParentGame.result_board.isVisible)))){ atimebar_.Terminate(); if (ParentGame.contains(atimebar_.resultSprite)){ ParentGame.removeChild(atimebar_.resultSprite); }; ParentGame.result_board.ShowBoard(); removeGameItems(gameconst.GSTATE_FADEOUTBOARD); incResults(); atimebar_.Pause(); return (true); }; return (false); } public function CreatePuzzleObservers(){ var _local1:int; var _local2:int; var _local3:PuzzleObserver; _local1 = ((puzzleTable_.width / 2) - ((ParentGame.puzzItemsArr_.length * 50) / 2)); _local2 = 0; while (_local2 < ParentGame.puzzItemsArr_.length) { _local3 = ParentGame.ftrPuzObservers_.GetObserver(_local1, 20, ParentGame.puzzItemsArr_[_local2], ParentGame.puzzItemsCount_[_local2]); _local1 = (_local1 + 50); puzzle_observers_.push(_local3); _local2++; }; puzzleTable_.y = gameconst.PUZZLE_TABLE_Y; puzzleTable_.x = gameconst.PUZZLE_TABLE_X; ParentGame.addChild(puzzleTable_); } public function Create(_arg1:XML){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; this.entrArray = new Array(); _local2 = 1000; _local3 = 1000; _local4 = 0; while (_local4 < gameconst.CELLS_XCOUNT) { _local5 = 0; while (_local5 < gameconst.CELLS_YCOUNT) { if (((boardArray[_local5][_local4]) && (!((boardArray[_local5][_local4].x == -100))))){ if (boardArray[_local5][_local4].y < _local2){ _local2 = boardArray[_local5][_local4].y; _local3 = _local5; }; }; _local5++; }; _local4++; }; _local2--; _local4 = 0; while (_local4 < gameconst.CELLS_XCOUNT) { if (((((boardArray[_local3][_local4]) && (!((boardArray[_local3][_local4].x == -100))))) && ((boardArray[_local3][_local4].curritem == null)))){ entrArray.push(boardArray[_local3][_local4]); }; _local4++; }; CreateClothes(); if (ParentGame.gplay_type == gameconst.GAMEPLAY_PUZZLE){ puzzleTable_ = new puzzle_table(); CreatePuzzleObservers(); }; createMenuBtn(); ParentGame.addChild(menuBtn); } public function LastTry(){ this.removeEventListener(Event.ENTER_FRAME, BoardLoop); removeCloves(); if (ParentGame.contains(atimebar_.resultSprite)){ ParentGame.removeChild(atimebar_.resultSprite); }; HidePuzleTable(); RemoveAllItems(); RemoveAllCells(); } public function RemoveAllCells(){ var _local1:int; var _local2:int; _local1 = 0; while (_local1 < gameconst.CELLS_YCOUNT) { _local2 = 0; while (_local2 < gameconst.CELLS_XCOUNT) { if (boardArray[_local1][_local2] != null){ if (ParentGame.contains(boardArray[_local1][_local2])){ ParentGame.removeChild(boardArray[_local1][_local2]); }; }; _local2++; }; _local1++; }; } public function addNew(_arg1:int, _arg2:int):cell_item_japan{ var _local3:cell_item_japan; var _local4:int; var _local5:int; var _local6:int; var _local7:bonusitem; _local3 = ParentGame.factory_items.getItem(); _local3.col = _arg1; _local3.row = _arg2; _local3.x = boardArray[_arg2][_arg1].x; _local3.y = boardArray[_arg2][_arg1].y; _local4 = 0; _local5 = 0; while (_local5 < gameconst.CELLS_YCOUNT) { _local6 = 0; while (_local6 < gameconst.CELLS_XCOUNT) { if (((!((boardArray[_local5][_local6].theItem == null))) && (!((boardArray[_local5][_local6].theItem.abonus == null))))){ _local4++; }; _local6++; }; _local5++; }; if ((((_local4 == 0)) && ((ParentGame.afactory_game_bonus.storesLength() > 0)))){ if (Math.random() > 0.95){ _local7 = ParentGame.afactory_game_bonus.getRndBonus(); if (_local7 != null){ _local3.setAbonus(_local7); _local4++; }; }; }; isDropping = true; ParentGame.soundFactory.playSound(SoundFactory.SND_ITEM_FALL); return (_local3); } public function findAndRemoveMatches(){ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; var _local5:Boolean; var _local6:Boolean; var _local7:int; _local1 = lookForMatches(); if (doublesword != 0){ boardState = STATE_START_DOUBLES; return; }; _local2 = 0; while (_local2 < _local1.length) { _local3 = 0; while (_local3 < _local1[_local2].length) { _local4 = 0; while (_local4 < _local1[_local2].length) { if (((!((_local1[_local2][_local4].abonus == null))) && ((_local1[_local2][_local4].fiering == false)))){ trace("FireBonus()"); _local1[_local2][_local4].FireBonus(); break; }; _local4++; }; _local5 = false; _local6 = false; if (BombArr.length > 0){ _local6 = true; }; if (blackHoles.length > 0){ _local7 = 0; while (_local7 < blackHoles.length) { if (blackHoles[_local7].hasItem(_local1[_local2][_local3])){ _local5 = true; break; }; _local7++; }; }; if (_local5){ } else { if (_local6){ } else { if (ParentGame.contains(_local1[_local2][_local3])){ _local1[_local2][_local3].startRemoving(cell_item_japan.REMOVING_AND_SCORE_AND_FLYING); } else { ParentGame.score_counter.update(((10 * x2_scale) * ParentGame.score_index_)); ParentGame.lev_score_counter.update(((10 * x2_scale) * ParentGame.score_index_)); }; UpdateObservers(_local1[_local2][_local3].killingprice); if (ParentGame.gplay_type == gameconst.GAMEPLAY_PUZZLE){ UpdatePuzleObservers(_local1[_local2][_local3].imageInd_); }; }; }; _local3++; }; _local2++; }; LevelDone(); } public function unRegisterObserver(_arg1:i_Observer){ var _local2:int; _local2 = 0; while (_local2 < observers_.length) { if (observers_[_local2] == _arg1){ observers_.splice(_local2, 1); break; }; _local2++; }; } public function RemoveAllItems(){ var _local1:int; var _local2:int; _local1 = 0; while (_local1 < gameconst.CELLS_YCOUNT) { _local2 = 0; while (_local2 < gameconst.CELLS_XCOUNT) { if (((!((boardArray[_local1][_local2] == null))) && (!((boardArray[_local1][_local2].theItem == null))))){ if (ParentGame.contains(boardArray[_local1][_local2].theItem)){ ParentGame.removeChild(boardArray[_local1][_local2].theItem); ParentGame.factory_items.pushToStore(boardArray[_local1][_local2].theItem); }; }; _local2++; }; _local1++; }; } public function removeAnimtext(){ AnimText = null; } public function hasBlackHoling():Boolean{ var _local1:int; _local1 = 0; while (_local1 < itemsArray.length) { if (itemsArray[_local1].currEffState == cell_item_japan.EFF_BLACKHOLE){ return (true); }; _local1++; }; return (false); } public function ProcSources(_arg1, _arg2:int){ var _local3:Array; var _local4:int; var _local5:int; var _local6:cell_japan; var _local7:int; var _local8:Boolean; _local3 = new Array(); _local4 = 1; while (_local4 < gameconst.CELLS_YCOUNT) { _local5 = 0; while (_local5 < gameconst.CELLS_XCOUNT) { if (boardArray[_local4][_local5].dataSource == boardArray[_arg1][_arg2]){ if (boardArray[_local4][_local5].theItem == null){ _local3.push(boardArray[_local4][_local5]); }; }; _local5++; }; _local4++; }; if (_local3.length > 0){ _local7 = 0; while (_local7 < _local3.length) { if (_local3[_local7].x == boardArray[_arg1][_arg2].x){ _local6 = _local3[_local7]; break; }; _local7++; }; if (_local6 == null){ _local7 = 0; while (_local7 < _local3.length) { if (_local3[_local7].x < boardArray[_arg1][_arg2].x){ _local6 = _local3[_local7]; break; }; _local7++; }; }; if (_local6 == null){ _local7 = 0; while (_local7 < _local3.length) { if (_local3[_local7].x > boardArray[_arg1][_arg2].x){ _local6 = _local3[_local7]; break; }; _local7++; }; }; _local8 = AffectDataSource(boardArray[_arg1][_arg2].theItem, _local6.logX, _local6.logY); }; if ((((boardArray[_arg1][_arg2].dataSource == null)) && ((boardArray[_arg1][_arg2].theItem == null)))){ boardArray[_arg1][_arg2].theItem = addNew(_arg2, _arg1); boardArray[_arg1][_arg2].theItem.y = (boardArray[_arg1][_arg2].theItem.y - boardArray[_arg1][_arg2].theItem.height); ParentGame.addChildAt(boardArray[_arg1][_arg2].theItem, game_vars.itemsJapanDepth); }; } public function UpdateObservers(_arg1:int){ var _local2:int; _local2 = 0; while (_local2 < observers_.length) { observers_[_local2].update(_arg1); _local2++; }; } public function AffectDataSource(_arg1:cell_item_japan, _arg2, _arg3:int):Boolean{ if (((!((_arg1 == null))) && (!((boardArray[_arg1.row][_arg1.col].theItem == null))))){ boardArray[_arg3][_arg2].theItem = _arg1; boardArray[_arg1.row][_arg1.col].theItem = null; _arg1.row = _arg3; _arg1.col = _arg2; return (true); }; return (false); } public function CreateClothes(){ var _local1:int; var _local2:i_clother; var _local3:SimpleButton; var _local4:int; var _local5:*; var _local6:i_Observer; cloverArr = new Array(); _local1 = 0; while (_local1 < ParentGame.clovesArr.length) { _local2 = fact_clothes.CreateClother(ParentGame.clovesArr[_local1]); _local3 = _local2.GetCloverButton(); _local4 = 0; while (_local4 < ParentGame.clothesposes.length) { if (ParentGame.clothesposes[_local4] == ParentGame.clovesArr[_local1]){ _local3.x = int(ParentGame.clothesposes[(_local4 + 1)]); _local3.y = int(ParentGame.clothesposes[(_local4 + 2)]); break; }; _local4 = (_local4 + 3); }; _local5 = _local2.GetCloverBorder(); _local5.x = _local3.x; _local5.y = _local3.y; _local3.x = (_local5.x + ((_local5.width - _local3.width) / 2)); _local3.y = (_local5.y + ((_local5.height - _local3.height) / 2)); cloverArr.push(_local2); this.ParentGame.addChild(_local5); this.ParentGame.addChild(_local3); _local2.Deactivate(); _local6 = i_Observer(_local2); _local6.update(0); RegisterObserver(_local6); _local1++; }; } public function BootsQuake(){ var _local1:Array; var _local2:int; var _local3:int; _local1 = new Array(); _local2 = 0; while (_local2 < itemsArray.length) { _local1.push(itemsArray[_local2]); _local2++; }; while (_local1.length > 10) { _local1.splice((Math.random() * _local1.length), 1); }; _local3 = 0; while (_local3 < _local1.length) { _local1[_local3].startQuaking(); _local3++; }; } public function isDone():Boolean{ var _local1:Boolean; var _local2:int; var _local3:int; var _local4:int; _local1 = true; if (ParentGame.gplay_type == gameconst.GAMEPLAY_ARCADE){ _local2 = 0; while (_local2 < gameconst.CELLS_YCOUNT) { _local3 = 0; while (_local3 < gameconst.CELLS_XCOUNT) { if ((((boardArray[_local2][_local3].cellType == "btn_single_rect")) || ((boardArray[_local2][_local3].cellType == "btn_double_rect")))){ _local1 = false; break; }; if (!_local1){ break; }; _local3++; }; _local2++; }; } else { if (ParentGame.gplay_type == gameconst.GAMEPLAY_PUZZLE){ _local1 = true; _local4 = 0; while (_local4 < puzzle_observers_.length) { if (puzzle_observers_[_local4].getvalue() > 0){ _local1 = false; break; }; _local4++; }; }; }; return (_local1); } public function getMatchVert(_arg1, _arg2):Array{ var _local3:Array; var _local4:int; _local3 = new Array(boardArray[_arg2][_arg1].theItem); if (((!((boardArray[_arg2][_arg1].theItem == null))) && ((boardArray[_arg2][_arg1].theItem.y >= game_vars.MinCellYpos)))){ _local4 = 1; while ((_arg2 + _local4) < gameconst.CELLS_YCOUNT) { if (((!((boardArray[(_arg2 + _local4)][_arg1].theItem == null))) && ((boardArray[_arg2][_arg1].theItem.imageInd_ == boardArray[(_arg2 + _local4)][_arg1].theItem.imageInd_)))){ _local3.push(boardArray[(_arg2 + _local4)][_arg1].theItem); } else { return (_local3); }; _local4++; }; }; return (_local3); } public function createMenuBtn(){ if (menuBtn == null){ menuBtn = new MenuBtn("MENU", gameconst.MENU_CODE_GAME_MENU, this.ParentGame, true, TextFormats.fmtGameMenu); menuBtn.x = gameconst.GAMEMENU_BTN_X; menuBtn.y = gameconst.GAMEMENU_BTN_Y; menuBtn.addEventListener(MouseEvent.CLICK, menubtnClick); menuBtn.addEventListener(MouseEvent.MOUSE_OVER, menubtnMouseOn); menuBtn.addEventListener(MouseEvent.MOUSE_OUT, menubtnMouseOut); }; } public function ResumeGame(){ atimebar_.Resume(); } public function Release(_arg1:int){ ParentGame.menu_result_ = gameconst.MENU_RESULT_NONE; ParentGame.menu_code_ = _arg1; } public function getMatchHoriz(_arg1, _arg2):Array{ var _local3:Array; var _local4:int; _local3 = new Array(boardArray[_arg2][_arg1].theItem); if (((!((boardArray[_arg2][_arg1].theItem == null))) && ((boardArray[_arg2][_arg1].theItem.y >= game_vars.MinCellYpos)))){ _local4 = 1; while ((_arg1 + _local4) < gameconst.CELLS_XCOUNT) { if (((!((boardArray[_arg2][(_arg1 + _local4)].theItem == null))) && ((boardArray[_arg2][_arg1].theItem.imageInd_ == boardArray[_arg2][(_arg1 + _local4)].theItem.imageInd_)))){ _local3.push(boardArray[_arg2][(_arg1 + _local4)].theItem); } else { return (_local3); }; _local4++; }; }; return (_local3); } public function UpdatePuzleObservers(_arg1:int){ var _local2:int; _local2 = 0; while (_local2 < puzzle_observers_.length) { if (puzzle_observers_[_local2].getImageInd() == _arg1){ puzzle_observers_[_local2].update(1); break; }; _local2++; }; } } }//package
Section 57
//gameconst (gameconst) package { public class gameconst { public static const MENU_CODE_RELAX_ARCADE:int = 23; public static const DEPTH_EMPTY_CELLS:int = 2; public static const LABEL_PUZZLE:String = "Пазл-режим"; public static const MENU_STATUS_OPTIONS:int = 5; public static const BTN_DOUBLE_Y:int = 120; public static const DEPTH_HERO:int = 4; public static const GSTATE_FROMGAME2SHOP:int = 5; public static const MENU_RESULT_RESUME_DONE:int = 2; public static const MENU_CODE_RESUME_OPTIONS:int = 12; public static const MENU_CODE_MAIN_OPTIONS:int = 4; public static const CELLBORDER_WIDTH:int = 3; public static const MENU_STATUS_RESUME:int = 2; public static const MENU_STATUS_SCORES:int = 6; public static const GSTATE_ITEMS_COLLAPSING:int = 3; public static const MENU_CODE_RELAX_EXIT:int = 25; public static const DEPTH_BACKGROUND:int = 1; public static const DESCRFIELDMENU_X:int = 240; public static const DESCRFIELDMENU_Y:int = 135; public static const GSTATE_CELLS_FADING_ON:int = 1; public static const CELLS_XCOUNT:int = 11; public static const GSTATE_LOADING:int = 0; public static const GSTATE_IDLE:int = 4; public static const DEPTH_TIMEBAR:int = 2; public static const GSTATE_FADEOUTBOARD:int = 12; public static const MENU_RESULT_RELAX_DONE:int = 7; public static const LABEL_ITEMS:String = "Уничтожить объектов"; public static const GAMEPLAY_PUZZLE:int = 0; public static const MENU_CODE_SCORES_DONE:int = 21; public static const MENU_CODE_RESUME_SCORES:int = 13; public static const MENU_STATUS_NONE:int = 0; public static const STAGEOFFSET_X:int = 40; public static const STAGEOFFSET_Y:int = 40; public static const MENU_CODE_RESUME_RESUME:int = 10; public static const MENU_CODE_OK:int = 7; public static const GSTATE_FROMSHOP2GAME:int = 10; public static const MENU_CODE_GAME_MENU:int = 17; public static const GSTATE_INTER_AD:int = 18; public static const MENU_RESULT_SCORES_DONE:int = 6; public static const MENU_RESULT_OPTIONS_DONE:int = 5; public static const DEPTH_BACK_MASK:int = 4; public static const ITEM_MOVING_SPEED:Number = 0.03; public static const MENU_CODE_TIME_OUT_RESTART:int = 8; public static const MENU_CODE_RESUME_ABORT:int = 11; public static const GSTATE_FADEOUTBOARDTIMEOUT:int = 17; public static const MENU_STATUS_RELAX:int = 7; public static const BTN_SINGLE_Y:int = 80; public static const CELLFIRST_X:int = 136; public static const CELLFIRST_Y:int = 58; public static const MENU_CODE_TIME_OUT_EXIT:int = 9; public static const MENU_CODE_OPTIONS_DONE:int = 18; public static const LABEL_ARCADE:String = "Arcade-режим"; public static const LEVELSCOUNT:int = 8; public static const GSTATE_SHOP_CREATING:int = 7; public static const MENU_STATUS_PLAYER:int = 4; public static const MENU_CODE_MAIN_SCORES:int = 5; public static const GSTATE_LOADNEXT:int = 11; public static const DEPTH_HERO_FON:int = 2; public static const CELLS_YCOUNT:int = 10; public static const CELLS_FADING_TIME:int = 1000; public static const PUZZLE_TABLE_X:int = 180; public static const PUZZLE_TABLE_Y:int = -15; public static const MENU_STATUS_MAIN:int = 1; public static const BTN_BROKEN_Y:int = 40; public static const MENU_CODE_RELAX_PUZZLE:int = 24; public static const MENU_CODE_MAIN_RELAX:int = 22; public static const SCORE_COUNTER_X:int = 0; public static const SCORE_COUNTER_Y:int = 40; public static const MENU_CODE_MAIN_PUZZLE:int = 2; public static const DESCRFIELD_X:int = 370; public static const DESCRFIELD_Y:int = 150; public static const GSTATE_FROMLEVEL2LEVEL:int = 9; public static const MENU_RESULT_NONE:int = 0; public static const MENU_CODE_RESUME_PLAYER:int = 16; public static const GAMEPLAY_ARCADE:int = 1; public static const ITEM_TYPE_DOUBLE:int = 2; public static const MENU_CODE_OPTIONS_SOUND_CHANGE:int = 19; public static const LABEL_TIME:String = "Отведено времени"; public static const GSTATE_TRANSLATOR_LOADED:int = 15; public static const ITEM_TYPE_BROKEN:int = 0; public static const MENU_RESULT_TIME_OUT_DONE:int = 3; public static const MENU_CODE_NONE:int = 0; public static const DEPTH_CELLS_ITEMS:int = 3; public static const BTN_SAVE_X:int = 610; public static const BTN_SAVE_Y:int = 520; public static const MENU_CODE_OPTIONS_MUSIC_CHANGE:int = 20; public static const MENU_CODE_RESUME_EXIT:int = 15; public static const GSTATE_STARTFADE2SHOP:int = 13; public static const CELLWIDTH:int = 38; public static const MENU_STATUS_TIME_OUT:int = 3; public static const GSTATE_SHOP:int = 8; public static const MENU_RESULT_MAIN_DONE:int = 1; public static const SCORES_EXIT_BTN_X:int = 110; public static const SCORES_EXIT_BTN_Y:int = 390; public static const MENU_CODE_MAIN_GETIT:int = 6; public static const LEVEL_COUNTER_X:int = 0; public static const LEVEL_COUNTER_Y:int = 80; public static const MENU_CODE_RESUME_HELP:int = 14; public static const HEROOFFSET_X:int = 0; public static const HEROOFFSET_Y:int = 110; public static const GAMEMENU_BTN_Y:int = 405; public static const DEPTH_FREECELLS:int = 2; public static const GAMEMENU_BTN_X:int = 5; public static const GSTATE_RANDOM_SHUFFLE:int = 16; public static const MENU_CODE_MAIN_PLAYER:int = 3; public static const GSTATE_FADE2SHOP:int = 6; public static const ITEM_TYPE_SINGLE:int = 1; public static const GSTATE_TRANSLATOR_LOADING:int = 14; public static const GSTATE_ITEMS_FALLING:int = 2; public static const MENU_RESULT_PLAYER_DONE:int = 4; public static const MENU_CODE_MAIN_ARCADE:int = 1; public static const DEPTH_HERO_FLAG:int = 3; } }//package
Section 58
//GameItemSkin (GameItemSkin) package { import flash.display.*; public dynamic class GameItemSkin extends MovieClip { } }//package
Section 59
//gloves_a (gloves_a) package { import flash.display.*; public dynamic class gloves_a extends BitmapData { public function gloves_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 60
//gloves_d (gloves_d) package { import flash.display.*; public dynamic class gloves_d extends BitmapData { public function gloves_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 61
//gloves_h_a (gloves_h_a) package { import flash.display.*; public dynamic class gloves_h_a extends BitmapData { public function gloves_h_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 62
//gloves_h_n (gloves_h_n) package { import flash.display.*; public dynamic class gloves_h_n extends BitmapData { public function gloves_h_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 63
//gloves_n (gloves_n) package { import flash.display.*; public dynamic class gloves_n extends BitmapData { public function gloves_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 64
//gloves_p (gloves_p) package { import flash.display.*; public dynamic class gloves_p extends BitmapData { public function gloves_p(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 65
//helmet_a (helmet_a) package { import flash.display.*; public dynamic class helmet_a extends BitmapData { public function helmet_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 66
//helmet_d (helmet_d) package { import flash.display.*; public dynamic class helmet_d extends BitmapData { public function helmet_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 67
//helmet_h_a (helmet_h_a) package { import flash.display.*; public dynamic class helmet_h_a extends BitmapData { public function helmet_h_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 68
//helmet_h_n (helmet_h_n) package { import flash.display.*; public dynamic class helmet_h_n extends BitmapData { public function helmet_h_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 69
//helmet_n (helmet_n) package { import flash.display.*; public dynamic class helmet_n extends BitmapData { public function helmet_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 70
//helmet_p (helmet_p) package { import flash.display.*; public dynamic class helmet_p extends BitmapData { public function helmet_p(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 71
//hero (hero) package { import flash.display.*; public dynamic class hero extends BitmapData { public function hero(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 72
//hero_fon (hero_fon) package { import flash.display.*; public dynamic class hero_fon extends BitmapData { public function hero_fon(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 73
//HorSlider (HorSlider) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.geom.*; public class HorSlider extends Sprite { private var agame_:game; private var resultSprite:Sprite; public var btnframe:MovieClip; private var result_data:BitmapData; private var btnId_:int; private var pbar_empty:Bitmap; private var pbar_full:Bitmap; public var tField:TextField; private var result_bar:Bitmap; static const fontBold:Boolean = true; static const fontSize:int = 16; static const fontColor:Number = 0xFF0000; static const fontFace:String = "Arial Black"; public function HorSlider(_arg1:String, _arg2:int, _arg3:game){ var _local4:BitmapData; var _local5:BitmapData; var _local6:TextFormat; var _local7:MovieClip; super(); agame_ = _arg3; btnId_ = _arg2; resultSprite = new Sprite(); btnframe = new btn_frame(); btnframe.visible = false; this.addChild(btnframe); _local4 = new pbar_n_empty(0, 0); _local5 = new pbar_n_full(0, 0); pbar_empty = new Bitmap(_local4); pbar_full = new Bitmap(_local5); result_data = new BitmapData(_local5.width, _local5.height, true, 0); result_data.draw(pbar_full); result_bar = new Bitmap(result_data); this.addChild(result_bar); _local6 = new TextFormat(); _local6.font = fontFace; _local6.size = fontSize; _local6.bold = fontBold; _local6.color = fontColor; _local6.align = "center"; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = _local6; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = agame_.translator_.Translate(_arg1)[0]; btnframe.width = (tField.width + 40); tField.x = ((result_data.width / 2) - (tField.width / 2)); tField.y = (result_bar.height + 10); tField.mouseEnabled = false; this.addChild(tField); _local7 = new btn_hit(); _local7.width = btnframe.width; this.hitArea = _local7; this.addChild(_local7); _local7.visible = false; resultSprite.addChild(result_bar); this.addChild(resultSprite); resultSprite.addEventListener(MouseEvent.MOUSE_MOVE, onMouseOver); resultSprite.addEventListener(MouseEvent.MOUSE_DOWN, onMouseOver); } public function onMouseOver(_arg1:MouseEvent){ var _local2:*; if (_arg1.buttonDown == true){ result_data.draw(pbar_empty); _local2 = (pbar_full.width * (_arg1.localX / resultSprite.width)); result_data.draw(pbar_full, null, null, null, new Rectangle(0, 0, _local2, pbar_full.height)); if (this.btnId_ == gameconst.MENU_CODE_OPTIONS_SOUND_CHANGE){ agame_.soundFactory.setSndVol((_arg1.localX / resultSprite.width)); } else { if (this.btnId_ == gameconst.MENU_CODE_OPTIONS_MUSIC_CHANGE){ agame_.soundFactory.setMusVol((_arg1.localX / resultSprite.width)); }; }; agame_.soundFactory.playSound(SoundFactory.SND_ITEM_FALL); }; } } }//package
Section 74
//i_clother (i_clother) package { import flash.events.*; import flash.display.*; public interface i_clother { function Start():void; function SetShirma(_arg1:Bitmap):void; function GetCloverButton():SimpleButton; function GetShirma():Bitmap; function BtnClick(_arg1:Event):void; function Activate():void; function Deactivate():void; function Fire(_arg1, _arg2:int):void; function GetCloverManipulator():Sprite; function GetCloverBorder():Bitmap; } }//package
Section 75
//i_Observer (i_Observer) package { public interface i_Observer { function getname():String; function update(_arg1:int); function getvalue():int; function reset():void; } }//package
Section 76
//ice_a (ice_a) package { import flash.display.*; public dynamic class ice_a extends BitmapData { public function ice_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 77
//ice_d (ice_d) package { import flash.display.*; public dynamic class ice_d extends BitmapData { public function ice_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 78
//ice_n (ice_n) package { import flash.display.*; public dynamic class ice_n extends BitmapData { public function ice_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 79
//item_destroy (item_destroy) package { import flash.media.*; public dynamic class item_destroy extends Sound { } }//package
Section 80
//item_fall (item_fall) package { import flash.media.*; public dynamic class item_fall extends Sound { } }//package
Section 81
//item_move (item_move) package { import flash.media.*; public dynamic class item_move extends Sound { } }//package
Section 82
//ItemsFactory (ItemsFactory) package { public class ItemsFactory { private var agame_:game; private var storesArr:Array; public function ItemsFactory(_arg1:game){ storesArr = new Array(); agame_ = _arg1; } public function FillStores(_arg1:Array){ var _local2:*; var _local3:int; var _local4:int; var _local5:int; var _local6:cell_item_japan; if (storesArr.length > 0){ storesArr.splice(0, storesArr.length); } else { _local2 = ((gameconst.CELLS_XCOUNT * gameconst.CELLS_YCOUNT) * 5); _local5 = 0; while (_local5 < _local2) { _local4 = (Math.random() * _arg1.length); _local3 = _arg1[_local4]; _local6 = new cell_item_japan(this.agame_, _local3); _local6.ParentGame = this.agame_; storesArr.push(_local6); _local5++; }; }; } public function getItem():cell_item_japan{ var _local1:int; var _local2:cell_item_japan; _local1 = (Math.random() * storesArr.length); _local2 = storesArr[_local1]; storesArr.splice(_local1, 1); _local2.restartData(); return (_local2); } public function pushToStore(_arg1:cell_item_japan){ if (_arg1.abonus != null){ _arg1.ParentGame.afactory_game_bonus.RetireToStore(_arg1.abonus); _arg1.removeChild(_arg1.abonus.GetBonusImage()); _arg1.abonus = null; }; _arg1.resetData(); storesArr.push(_arg1); } } }//package
Section 83
//LevelCounter (LevelCounter) package { import flash.display.*; import flash.text.*; public class LevelCounter extends Sprite implements i_Observer { public var agame_:game; public var caption_:TextField; public var level_:int;// = 1 public var tField:TextField; public function LevelCounter(_arg1:game, _arg2, _arg3:int){ level_ = 1; super(); agame_ = _arg1; this.x = _arg2; this.y = _arg3; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = TextFormats.fmtCounter; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = String(level_); caption_ = new TextField(); caption_.embedFonts = true; caption_.selectable = false; caption_.defaultTextFormat = TextFormats.fmtCounter; caption_.autoSize = TextFieldAutoSize.CENTER; caption_.text = agame_.translator_.Translate("LEVEL")[0]; caption_.y = -20; this.addChild(caption_); tField.mouseEnabled = false; this.addChild(tField); agame_.addChild(this); } public function reset():void{ level_ = 1; tField.text = String(level_); } public function update(_arg1:int){ level_ = (level_ + _arg1); tField.text = String(level_); } public function getvalue():int{ return (level_); } public function getname():String{ return (""); } } }//package
Section 84
//LevelManager (LevelManager) package { import flash.events.*; import flash.net.*; public class LevelManager { private var lvl_ind:int; public var levels_arr_p:Array; public var xmlnames_arr_a:Array; public var levels_arr_a:Array; public var xmlnames_arr_p:Array; private var agame_:game; public var lvls_xml_arr_a:Array; private var levelXML:XML; public var lvls_xml_arr_p:Array; public static const LTYPE_BONUS:int = 2; public static const LTYPE_PUZZLE:int = 1; public static const LTYPE_ARCADE:int = 0; public function LevelManager(_arg1:game){ xmlnames_arr_a = ["level_a1.xml", "level_a2.xml", "level_a3.xml", "level_a4.xml", "level_a5.xml"]; xmlnames_arr_p = ["level_p1.xml", "level_p2.xml", "level_p3.xml", "level_p4.xml", "level_p5.xml"]; lvls_xml_arr_p = [<level_p1> <cells> <a0> <x>5</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a0> <a1> <x>6</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a1> <a2> <x>4</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a2> <a3> <x>3</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a3> <a4> <x>7</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a4> <a5> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a5> <a6> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a6> <a7> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a7> <a8> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a8> <a9> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a9> <a10> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a10> <a11> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a11> <a12> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a12> <a13> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a13> <a19> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a19> <a20> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a20> <a21> <x>3</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a21> <a22> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a22> <a23> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a23> <a24> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a24> <a25> <x>7</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a25> <a26> <x>3</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a26> <a27> <x>4</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a27> <a28> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a28> <a29> <x>6</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a29> <a30> <x>7</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a30> <a31> <x>0</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a31> <a32> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a32> <a33> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a33> <a34> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a34> <a35> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a35> <a36> <x>10</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a36> <a37> <x>0</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a37> <a38> <x>1</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a38> <a39> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a39> <a40> <x>3</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a40> <a41> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a41> <a42> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a42> <a43> <x>6</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a43> <a44> <x>7</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a44> <a45> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a45> <a46> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a46> <a47> <x>10</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a47> <a48> <x>0</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a48> <a49> <x>1</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a49> <a50> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a50> <a51> <x>3</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a51> <a52> <x>4</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a52> <a53> <x>5</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a53> <a54> <x>6</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a54> <a55> <x>7</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a55> <a56> <x>3</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a56> <a57> <x>4</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a57> <a58> <x>5</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a58> <a59> <x>6</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a59> <a60> <x>7</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a60> <a61> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a61> <a62> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a62> <a63> <x>10</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a63> <a64> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a64> <a65> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a65> <a66> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a66> <a67> <x>1</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a67> <a68> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a68> <a69> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a69> <a70> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a70> <a71> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a71> <a72> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a72> <a73> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a73> <a74> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a74> <a75> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a75> <a76> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a76> <a77> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a77> <a78> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a78> <a79> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a79> </cells> </level_p1> , <level_p2> <cells> <a0> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a0> <a1> <x>4</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a1> <a2> <x>3</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a2> <a3> <x>2</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a3> <a4> <x>6</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a4> <a5> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a5> <a6> <x>8</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a6> <a7> <x>1</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a7> <a8> <x>2</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a8> <a9> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a9> <a10> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a10> <a11> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a11> <a12> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a12> <a13> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a13> <a14> <x>8</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a14> <a15> <x>9</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a15> <a16> <x>1</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a16> <a17> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a17> <a18> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a18> <a19> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a19> <a20> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a20> <a21> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a21> <a22> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a22> <a23> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a23> <a24> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a24> <a25> <x>1</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a25> <a26> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a26> <a27> <x>3</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a27> <a28> <x>4</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a28> <a29> <x>5</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a29> <a30> <x>6</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a30> <a31> <x>7</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a31> <a32> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a32> <a33> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a33> <a34> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a34> <a35> <x>3</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a35> <a36> <x>4</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a36> <a38> <x>5</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a38> <a39> <x>6</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a39> <a40> <x>7</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a40> <a41> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a41> <a42> <x>1</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a42> <a43> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a43> <a44> <x>3</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a44> <a45> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a45> <a46> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a46> <a47> <x>6</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a47> <a48> <x>7</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a48> <a49> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a49> <a50> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a50> <a51> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a51> <a52> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a52> <a53> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a53> <a54> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a54> <a55> <x>3</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a55> <a56> <x>4</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a56> <a57> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a57> <a58> <x>6</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a58> <a59> <x>7</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a59> <a60> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a60> <a61> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a61> <a62> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a62> <a63> <x>3</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a63> <a64> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a64> <a65> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a65> <a66> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a66> <a67> <x>7</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a67> <a68> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a68> <a69> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a69> <a70> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a70> <a71> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a71> <a72> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a72> <a73> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a73> <a74> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a74> <a75> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a75> </cells> </level_p2> , <level_p3> <cells> <a79> <x>10</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a79> <a80> <x>10</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a80> <a81> <x>10</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a81> <a82> <x>10</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a82> <a83> <x>10</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a83> <a84> <x>9</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a84> <a85> <x>8</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a85> <a86> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a86> <a87> <x>6</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a87> <a88> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a88> <a89> <x>9</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a89> <a90> <x>8</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a90> <a91> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a91> <a92> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a92> <a93> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a93> <a94> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a94> <a95> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a95> <a96> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a96> <a97> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a97> <a98> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a98> <a99> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a99> <a100> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a100> <a101> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a101> <a102> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a102> <a103> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a103> <a104> <x>7</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a104> <a105> <x>6</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a105> <a106> <x>5</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a106> <a107> <x>4</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a107> <a108> <x>3</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a108> <a109> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a109> <a110> <x>1</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a110> <a111> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a111> <a112> <x>3</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a112> <a113> <x>4</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a113> <a114> <x>5</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a114> <a115> <x>6</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a115> <a116> <x>7</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a116> <a117> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a117> <a118> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a118> <a119> <x>1</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a119> <a120> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a120> <a121> <x>3</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a121> <a122> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a122> <a123> <x>6</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a123> <a124> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a124> <a125> <x>7</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a125> <a126> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a126> <a127> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a127> <a128> <x>10</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a128> <a129> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a129> <a130> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a130> <a131> <x>7</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a131> <a132> <x>6</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a132> <a133> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a133> <a134> <x>4</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a134> <a135> <x>3</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a135> <a136> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a136> <a137> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a137> <a138> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a138> <a139> <x>7</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a139> <a140> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a140> <a141> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a141> <a142> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a142> <a143> <x>3</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a143> <a144> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a144> <a145> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a145> <a146> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a146> <a147> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a147> <a148> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a148> <a149> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a149> <a150> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a150> <a151> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a151> <a152> <x>1</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a152> <a153> <x>6</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a153> <a154> <x>5</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a154> <a155> <x>4</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a155> <a156> <x>3</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a156> <a157> <x>2</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a157> <a158> <x>1</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a158> </cells> </level_p3> , <level_p4> <cells> <a160> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a160> <a161> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a161> <a162> <x>3</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a162> <a163> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a163> <a164> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a164> <a165> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a165> <a166> <x>8</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a166> <a167> <x>2</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a167> <a168> <x>1</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a168> <a169> <x>9</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a169> <a170> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a170> <a171> <x>1</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a171> <a172> <x>2</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a172> <a173> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a173> <a175> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a175> <a176> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a176> <a177> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a177> <a178> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a178> <a179> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a179> <a180> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a180> <a181> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a181> <a182> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a182> <a183> <x>3</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a183> <a184> <x>3</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a184> <a185> <x>3</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a185> <a186> <x>3</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a186> <a187> <x>3</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a187> <a188> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a188> <a189> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a189> <a190> <x>4</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a190> <a191> <x>4</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a191> <a192> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a192> <a193> <x>4</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a193> <a194> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a194> <a195> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a195> <a196> <x>5</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a196> <a197> <x>5</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a197> <a198> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a198> <a199> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a199> <a200> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a200> <a201> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a201> <a202> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a202> <a203> <x>6</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a203> <a204> <x>6</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a204> <a205> <x>6</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a205> <a206> <x>6</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a206> <a207> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a207> <a208> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a208> <a209> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a209> <a210> <x>7</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a210> <a211> <x>7</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a211> <a212> <x>7</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a212> <a213> <x>7</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a213> <a214> <x>7</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a214> <a215> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a215> <a216> <x>8</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a216> <a217> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a217> <a218> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a218> <a219> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a219> <a220> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a220> <a221> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a221> <a222> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a222> <a223> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a223> <a227> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a227> <a228> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a228> <a230> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a230> <a231> <x>1</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a231> <a232> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a232> <a233> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a233> </cells> </level_p4> , <level_p5> <cells> <a241> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a241> <a242> <x>4</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a242> <a243> <x>6</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a243> <a244> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a244> <a245> <x>3</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a245> <a247> <x>2</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a247> <a248> <x>1</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a248> <a249> <x>8</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a249> <a250> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a250> <a251> <x>7</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a251> <a252> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a252> <a253> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a253> <a254> <x>6</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a254> <a255> <x>5</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a255> <a256> <x>4</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a256> <a258> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a258> <a259> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a259> <a260> <x>2</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a260> <a261> <x>1</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a261> <a262> <x>0</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a262> <a263> <x>2</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a263> <a264> <x>1</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a264> <a265> <x>0</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a265> <a266> <x>3</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a266> <a267> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a267> <a268> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a268> <a269> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a269> <a270> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a270> <a271> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a271> <a273> <x>7</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a273> <a274> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a274> <a275> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a275> <a276> <x>3</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a276> <a277> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a277> <a278> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a278> <a279> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a279> <a280> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a280> <a281> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a281> <a282> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a282> <a283> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a283> <a284> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a284> <a285> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a285> <a286> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a286> <a287> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a287> <a288> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a288> <a289> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a289> <a290> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a290> <a291> <x>7</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a291> <a293> <x>7</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a293> <a294> <x>7</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a294> <a295> <x>7</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a295> <a296> <x>6</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a296> <a297> <x>6</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a297> <a298> <x>6</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a298> <a299> <x>6</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a299> <a300> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a300> <a301> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a301> <a302> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a302> <a303> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a303> <a304> <x>5</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a304> <a305> <x>5</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a305> <a306> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a306> <a307> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a307> <a308> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a308> <a309> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a309> <a310> <x>4</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a310> <a311> <x>4</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a311> <a312> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a312> <a313> <x>4</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a313> <a314> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a314> <a315> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a315> <a316> <x>3</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a316> <a317> <x>3</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a317> <a319> <x>3</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a319> <a320> <x>3</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a320> <a321> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a321> <a322> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a322> <a323> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a323> <a324> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a324> <a325> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a325> <a326> <x>0</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a326> <a327> <x>0</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a327> <a329> <x>0</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a329> <a330> <x>0</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a330> <a331> <x>1</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a331> <a332> <x>1</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a332> <a333> <x>1</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a333> <a334> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a334> </cells> </level_p5> ]; lvls_xml_arr_a = [<level_a1> <cells> <a0> <x>5</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a0> <a1> <x>6</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a1> <a2> <x>4</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a2> <a3> <x>3</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a3> <a4> <x>7</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a4> <a5> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a5> <a6> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a6> <a7> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a7> <a8> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a8> <a9> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a9> <a10> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a10> <a11> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a11> <a12> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a12> <a13> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a13> <a19> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a19> <a20> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a20> <a21> <x>3</x> <y>7</y> <cellType>btn_single_rect</cellType> </a21> <a22> <x>4</x> <y>7</y> <cellType>btn_single_rect</cellType> </a22> <a23> <x>5</x> <y>7</y> <cellType>btn_single_rect</cellType> </a23> <a24> <x>6</x> <y>7</y> <cellType>btn_single_rect</cellType> </a24> <a25> <x>7</x> <y>7</y> <cellType>btn_single_rect</cellType> </a25> <a26> <x>3</x> <y>6</y> <cellType>btn_single_rect</cellType> </a26> <a27> <x>4</x> <y>6</y> <cellType>btn_single_rect</cellType> </a27> <a28> <x>5</x> <y>6</y> <cellType>btn_single_rect</cellType> </a28> <a29> <x>6</x> <y>6</y> <cellType>btn_single_rect</cellType> </a29> <a30> <x>7</x> <y>6</y> <cellType>btn_single_rect</cellType> </a30> <a31> <x>0</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a31> <a32> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a32> <a33> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a33> <a34> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a34> <a35> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a35> <a36> <x>10</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a36> <a37> <x>0</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a37> <a38> <x>1</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a38> <a39> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a39> <a40> <x>3</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a40> <a41> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a41> <a42> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a42> <a43> <x>6</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a43> <a44> <x>7</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a44> <a45> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a45> <a46> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a46> <a47> <x>10</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a47> <a48> <x>0</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a48> <a49> <x>1</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a49> <a50> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a50> <a51> <x>3</x> <y>4</y> <cellType>btn_single_rect</cellType> </a51> <a52> <x>4</x> <y>4</y> <cellType>btn_single_rect</cellType> </a52> <a53> <x>5</x> <y>4</y> <cellType>btn_single_rect</cellType> </a53> <a54> <x>6</x> <y>4</y> <cellType>btn_single_rect</cellType> </a54> <a55> <x>7</x> <y>4</y> <cellType>btn_single_rect</cellType> </a55> <a56> <x>3</x> <y>3</y> <cellType>btn_single_rect</cellType> </a56> <a57> <x>4</x> <y>3</y> <cellType>btn_single_rect</cellType> </a57> <a58> <x>5</x> <y>3</y> <cellType>btn_single_rect</cellType> </a58> <a59> <x>6</x> <y>3</y> <cellType>btn_single_rect</cellType> </a59> <a60> <x>7</x> <y>3</y> <cellType>btn_single_rect</cellType> </a60> <a61> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a61> <a62> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a62> <a63> <x>10</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a63> <a64> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a64> <a65> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a65> <a66> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a66> <a67> <x>1</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a67> <a68> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a68> <a69> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a69> <a70> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a70> <a71> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a71> <a72> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a72> <a73> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a73> <a74> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a74> <a75> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a75> <a76> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a76> <a77> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a77> <a78> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a78> <a79> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a79> </cells> </level_a1> , <level_a2> <cells> <a0> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a0> <a1> <x>6</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a1> <a2> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a2> <a3> <x>8</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a3> <a4> <x>4</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a4> <a5> <x>3</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a5> <a6> <x>2</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a6> <a7> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a7> <a8> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a8> <a9> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a9> <a10> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a10> <a11> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a11> <a12> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a12> <a13> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a13> <a14> <x>1</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a14> <a15> <x>1</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a15> <a16> <x>1</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a16> <a17> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a17> <a18> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a18> <a19> <x>1</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a19> <a20> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a20> <a21> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a21> <a22> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a22> <a23> <x>9</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a23> <a24> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a24> <a25> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a25> <a26> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a26> <a27> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a27> <a28> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a28> <a29> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a29> <a30> <x>8</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a30> <a31> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a31> <a32> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a32> <a33> <x>2</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a33> <a34> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a34> <a35> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a35> <a36> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a36> <a37> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a37> <a38> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a38> <a39> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a39> <a40> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a40> <a41> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a41> <a42> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a42> <a43> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a43> <a44> <x>2</x> <y>1</y> <cellType>btn_single_rect</cellType> </a44> <a45> <x>3</x> <y>1</y> <cellType>btn_single_rect</cellType> </a45> <a46> <x>7</x> <y>1</y> <cellType>btn_single_rect</cellType> </a46> <a47> <x>8</x> <y>1</y> <cellType>btn_single_rect</cellType> </a47> <a48> <x>2</x> <y>7</y> <cellType>btn_single_rect</cellType> </a48> <a49> <x>3</x> <y>7</y> <cellType>btn_single_rect</cellType> </a49> <a50> <x>7</x> <y>7</y> <cellType>btn_single_rect</cellType> </a50> <a51> <x>8</x> <y>7</y> <cellType>btn_single_rect</cellType> </a51> <a52> <x>7</x> <y>2</y> <cellType>btn_single_rect</cellType> </a52> <a53> <x>7</x> <y>3</y> <cellType>btn_single_rect</cellType> </a53> <a54> <x>7</x> <y>4</y> <cellType>btn_single_rect</cellType> </a54> <a55> <x>7</x> <y>5</y> <cellType>btn_single_rect</cellType> </a55> <a56> <x>7</x> <y>6</y> <cellType>btn_single_rect</cellType> </a56> <a57> <x>6</x> <y>2</y> <cellType>btn_single_rect</cellType> </a57> <a58> <x>6</x> <y>3</y> <cellType>btn_single_rect</cellType> </a58> <a59> <x>6</x> <y>4</y> <cellType>btn_single_rect</cellType> </a59> <a60> <x>6</x> <y>5</y> <cellType>btn_single_rect</cellType> </a60> <a61> <x>6</x> <y>6</y> <cellType>btn_single_rect</cellType> </a61> <a62> <x>4</x> <y>2</y> <cellType>btn_single_rect</cellType> </a62> <a63> <x>4</x> <y>3</y> <cellType>btn_single_rect</cellType> </a63> <a64> <x>4</x> <y>4</y> <cellType>btn_single_rect</cellType> </a64> <a65> <x>4</x> <y>5</y> <cellType>btn_single_rect</cellType> </a65> <a66> <x>4</x> <y>6</y> <cellType>btn_single_rect</cellType> </a66> <a67> <x>3</x> <y>2</y> <cellType>btn_single_rect</cellType> </a67> <a68> <x>3</x> <y>3</y> <cellType>btn_single_rect</cellType> </a68> <a69> <x>3</x> <y>4</y> <cellType>btn_single_rect</cellType> </a69> <a70> <x>3</x> <y>5</y> <cellType>btn_single_rect</cellType> </a70> <a71> <x>3</x> <y>6</y> <cellType>btn_single_rect</cellType> </a71> <a72> <x>5</x> <y>3</y> <cellType>btn_single_rect</cellType> </a72> <a73> <x>5</x> <y>4</y> <cellType>btn_single_rect</cellType> </a73> <a74> <x>5</x> <y>5</y> <cellType>btn_single_rect</cellType> </a74> </cells> </level_a2> , <level_a3> <cells> <a75> <x>9</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a75> <a76> <x>8</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a76> <a77> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a77> <a78> <x>6</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a78> <a79> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a79> <a80> <x>4</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a80> <a81> <x>9</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a81> <a82> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a82> <a83> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a83> <a84> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a84> <a85> <x>9</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a85> <a86> <x>8</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a86> <a90> <x>8</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a90> <a91> <x>7</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a91> <a92> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a92> <a93> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a93> <a94> <x>6</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a94> <a95> <x>5</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a95> <a96> <x>4</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a96> <a97> <x>3</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a97> <a98> <x>2</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a98> <a99> <x>1</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a99> <a100> <x>0</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a100> <a101> <x>0</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a101> <a102> <x>0</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a102> <a103> <x>0</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a103> <a104> <x>0</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a104> <a105> <x>0</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a105> <a106> <x>1</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a106> <a107> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a107> <a108> <x>2</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a108> <a109> <x>3</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a109> <a110> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a110> <a111> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a111> <a112> <x>5</x> <y>1</y> <cellType>btn_single_rect</cellType> </a112> <a113> <x>6</x> <y>1</y> <cellType>btn_single_rect</cellType> </a113> <a114> <x>7</x> <y>1</y> <cellType>btn_single_rect</cellType> </a114> <a115> <x>8</x> <y>1</y> <cellType>btn_single_rect</cellType> </a115> <a116> <x>8</x> <y>2</y> <cellType>btn_single_rect</cellType> </a116> <a117> <x>7</x> <y>2</y> <cellType>btn_single_rect</cellType> </a117> <a118> <x>6</x> <y>2</y> <cellType>btn_single_rect</cellType> </a118> <a119> <x>5</x> <y>2</y> <cellType>btn_single_rect</cellType> </a119> <a120> <x>4</x> <y>2</y> <cellType>btn_single_rect</cellType> </a120> <a121> <x>3</x> <y>3</y> <cellType>btn_single_rect</cellType> </a121> <a122> <x>4</x> <y>3</y> <cellType>btn_single_rect</cellType> </a122> <a123> <x>5</x> <y>3</y> <cellType>btn_single_rect</cellType> </a123> <a124> <x>6</x> <y>3</y> <cellType>btn_single_rect</cellType> </a124> <a125> <x>7</x> <y>3</y> <cellType>btn_single_rect</cellType> </a125> <a126> <x>8</x> <y>3</y> <cellType>btn_single_rect</cellType> </a126> <a127> <x>1</x> <y>4</y> <cellType>btn_single_rect</cellType> </a127> <a128> <x>2</x> <y>4</y> <cellType>btn_single_rect</cellType> </a128> <a129> <x>3</x> <y>4</y> <cellType>btn_single_rect</cellType> </a129> <a130> <x>4</x> <y>4</y> <cellType>btn_single_rect</cellType> </a130> <a131> <x>5</x> <y>4</y> <cellType>btn_single_rect</cellType> </a131> <a132> <x>6</x> <y>4</y> <cellType>btn_single_rect</cellType> </a132> <a133> <x>7</x> <y>4</y> <cellType>btn_single_rect</cellType> </a133> <a134> <x>8</x> <y>4</y> <cellType>btn_single_rect</cellType> </a134> <a135> <x>1</x> <y>5</y> <cellType>btn_single_rect</cellType> </a135> <a136> <x>2</x> <y>5</y> <cellType>btn_single_rect</cellType> </a136> <a137> <x>3</x> <y>5</y> <cellType>btn_single_rect</cellType> </a137> <a138> <x>4</x> <y>5</y> <cellType>btn_single_rect</cellType> </a138> <a139> <x>5</x> <y>5</y> <cellType>btn_single_rect</cellType> </a139> <a140> <x>6</x> <y>5</y> <cellType>btn_single_rect</cellType> </a140> <a141> <x>7</x> <y>5</y> <cellType>btn_single_rect</cellType> </a141> <a142> <x>8</x> <y>5</y> <cellType>btn_single_rect</cellType> </a142> <a143> <x>7</x> <y>6</y> <cellType>btn_single_rect</cellType> </a143> <a144> <x>6</x> <y>6</y> <cellType>btn_single_rect</cellType> </a144> <a145> <x>5</x> <y>6</y> <cellType>btn_single_rect</cellType> </a145> <a146> <x>4</x> <y>6</y> <cellType>btn_single_rect</cellType> </a146> <a147> <x>3</x> <y>6</y> <cellType>btn_single_rect</cellType> </a147> <a148> <x>2</x> <y>6</y> <cellType>btn_single_rect</cellType> </a148> <a149> <x>1</x> <y>6</y> <cellType>btn_single_rect</cellType> </a149> <a150> <x>1</x> <y>7</y> <cellType>btn_single_rect</cellType> </a150> <a151> <x>2</x> <y>7</y> <cellType>btn_single_rect</cellType> </a151> <a152> <x>3</x> <y>7</y> <cellType>btn_single_rect</cellType> </a152> <a153> <x>4</x> <y>7</y> <cellType>btn_single_rect</cellType> </a153> <a154> <x>5</x> <y>7</y> <cellType>btn_single_rect</cellType> </a154> <a155> <x>6</x> <y>7</y> <cellType>btn_single_rect</cellType> </a155> <a156> <x>5</x> <y>8</y> <cellType>btn_single_rect</cellType> </a156> <a157> <x>4</x> <y>8</y> <cellType>btn_single_rect</cellType> </a157> <a158> <x>3</x> <y>8</y> <cellType>btn_single_rect</cellType> </a158> <a159> <x>2</x> <y>8</y> <cellType>btn_single_rect</cellType> </a159> <a160> <x>1</x> <y>8</y> <cellType>btn_single_rect</cellType> </a160> </cells> </level_a3> , <level_a4> <cells> <a164> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a164> <a165> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a165> <a166> <x>8</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a166> <a167> <x>3</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a167> <a168> <x>2</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a168> <a169> <x>1</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a169> <a170> <x>1</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a170> <a171> <x>1</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a171> <a172> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a172> <a173> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a173> <a174> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a174> <a175> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a175> <a176> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a176> <a177> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a177> <a178> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a178> <a179> <x>9</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a179> <a180> <x>9</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a180> <a181> <x>9</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a181> <a182> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a182> <a183> <x>9</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a183> <a184> <x>2</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a184> <a185> <x>2</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a185> <a186> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a186> <a187> <x>8</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a187> <a188> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a188> <a189> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a189> <a190> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a190> <a191> <x>6</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a191> <a192> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a192> <a193> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a193> <a194> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a194> <a195> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a195> <a196> <x>2</x> <y>1</y> <cellType>btn_single_rect</cellType> </a196> <a197> <x>3</x> <y>1</y> <cellType>btn_single_rect</cellType> </a197> <a198> <x>2</x> <y>2</y> <cellType>btn_single_rect</cellType> </a198> <a199> <x>3</x> <y>2</y> <cellType>btn_single_rect</cellType> </a199> <a200> <x>4</x> <y>2</y> <cellType>btn_single_rect</cellType> </a200> <a201> <x>6</x> <y>2</y> <cellType>btn_single_rect</cellType> </a201> <a202> <x>7</x> <y>2</y> <cellType>btn_single_rect</cellType> </a202> <a203> <x>8</x> <y>2</y> <cellType>btn_single_rect</cellType> </a203> <a204> <x>8</x> <y>1</y> <cellType>btn_single_rect</cellType> </a204> <a205> <x>7</x> <y>1</y> <cellType>btn_single_rect</cellType> </a205> <a206> <x>8</x> <y>4</y> <cellType>btn_single_rect</cellType> </a206> <a207> <x>7</x> <y>3</y> <cellType>btn_single_rect</cellType> </a207> <a208> <x>7</x> <y>4</y> <cellType>btn_single_rect</cellType> </a208> <a209> <x>7</x> <y>5</y> <cellType>btn_single_rect</cellType> </a209> <a210> <x>8</x> <y>6</y> <cellType>btn_single_rect</cellType> </a210> <a211> <x>7</x> <y>6</y> <cellType>btn_single_rect</cellType> </a211> <a212> <x>7</x> <y>7</y> <cellType>btn_single_rect</cellType> </a212> <a213> <x>8</x> <y>7</y> <cellType>btn_single_rect</cellType> </a213> <a214> <x>3</x> <y>7</y> <cellType>btn_single_rect</cellType> </a214> <a215> <x>2</x> <y>7</y> <cellType>btn_single_rect</cellType> </a215> <a216> <x>2</x> <y>6</y> <cellType>btn_single_rect</cellType> </a216> <a217> <x>3</x> <y>6</y> <cellType>btn_single_rect</cellType> </a217> <a218> <x>4</x> <y>6</y> <cellType>btn_single_rect</cellType> </a218> <a219> <x>6</x> <y>6</y> <cellType>btn_single_rect</cellType> </a219> <a220> <x>6</x> <y>5</y> <cellType>btn_single_rect</cellType> </a220> <a221> <x>5</x> <y>5</y> <cellType>btn_single_rect</cellType> </a221> <a222> <x>4</x> <y>5</y> <cellType>btn_single_rect</cellType> </a222> <a223> <x>3</x> <y>5</y> <cellType>btn_single_rect</cellType> </a223> <a224> <x>2</x> <y>4</y> <cellType>btn_single_rect</cellType> </a224> <a225> <x>3</x> <y>4</y> <cellType>btn_single_rect</cellType> </a225> <a226> <x>3</x> <y>3</y> <cellType>btn_single_rect</cellType> </a226> <a227> <x>4</x> <y>3</y> <cellType>btn_single_rect</cellType> </a227> <a228> <x>4</x> <y>4</y> <cellType>btn_single_rect</cellType> </a228> <a229> <x>5</x> <y>4</y> <cellType>btn_single_rect</cellType> </a229> <a230> <x>6</x> <y>4</y> <cellType>btn_single_rect</cellType> </a230> <a231> <x>6</x> <y>3</y> <cellType>btn_single_rect</cellType> </a231> <a232> <x>5</x> <y>3</y> <cellType>btn_single_rect</cellType> </a232> </cells> </level_a4> , <level_a5> <cells> <a238> <x>2</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a238> <a239> <x>3</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a239> <a240> <x>4</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a240> <a241> <x>5</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a241> <a242> <x>6</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a242> <a243> <x>7</x> <y>0</y> <cellType>btn_broken_rect</cellType> </a243> <a244> <x>1</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a244> <a245> <x>2</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a245> <a246> <x>3</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a246> <a247> <x>4</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a247> <a248> <x>5</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a248> <a249> <x>6</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a249> <a250> <x>7</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a250> <a251> <x>8</x> <y>1</y> <cellType>btn_broken_rect</cellType> </a251> <a252> <x>2</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a252> <a253> <x>3</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a253> <a254> <x>4</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a254> <a255> <x>5</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a255> <a256> <x>6</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a256> <a257> <x>7</x> <y>9</y> <cellType>btn_broken_rect</cellType> </a257> <a258> <x>1</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a258> <a259> <x>2</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a259> <a260> <x>3</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a260> <a261> <x>4</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a261> <a262> <x>5</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a262> <a263> <x>6</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a263> <a264> <x>7</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a264> <a265> <x>8</x> <y>8</y> <cellType>btn_broken_rect</cellType> </a265> <a266> <x>0</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a266> <a267> <x>2</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a267> <a268> <x>1</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a268> <a269> <x>3</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a269> <a270> <x>4</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a270> <a271> <x>5</x> <y>7</y> <cellType>btn_broken_rect</cellType> </a271> <a276> <x>0</x> <y>2</y> <cellType>btn_single_rect</cellType> </a276> <a277> <x>1</x> <y>2</y> <cellType>btn_single_rect</cellType> </a277> <a278> <x>2</x> <y>2</y> <cellType>btn_single_rect</cellType> </a278> <a279> <x>3</x> <y>2</y> <cellType>btn_single_rect</cellType> </a279> <a280> <x>9</x> <y>7</y> <cellType>btn_single_rect</cellType> </a280> <a281> <x>8</x> <y>7</y> <cellType>btn_single_rect</cellType> </a281> <a282> <x>7</x> <y>7</y> <cellType>btn_single_rect</cellType> </a282> <a283> <x>6</x> <y>7</y> <cellType>btn_single_rect</cellType> </a283> <a284> <x>6</x> <y>6</y> <cellType>btn_single_rect</cellType> </a284> <a285> <x>6</x> <y>5</y> <cellType>btn_single_rect</cellType> </a285> <a286> <x>6</x> <y>4</y> <cellType>btn_single_rect</cellType> </a286> <a287> <x>7</x> <y>4</y> <cellType>btn_single_rect</cellType> </a287> <a288> <x>8</x> <y>4</y> <cellType>btn_single_rect</cellType> </a288> <a289> <x>9</x> <y>4</y> <cellType>btn_single_rect</cellType> </a289> <a290> <x>9</x> <y>5</y> <cellType>btn_single_rect</cellType> </a290> <a291> <x>9</x> <y>6</y> <cellType>btn_single_rect</cellType> </a291> <a292> <x>0</x> <y>3</y> <cellType>btn_single_rect</cellType> </a292> <a293> <x>0</x> <y>4</y> <cellType>btn_single_rect</cellType> </a293> <a294> <x>0</x> <y>5</y> <cellType>btn_single_rect</cellType> </a294> <a295> <x>1</x> <y>5</y> <cellType>btn_single_rect</cellType> </a295> <a296> <x>2</x> <y>5</y> <cellType>btn_single_rect</cellType> </a296> <a297> <x>3</x> <y>5</y> <cellType>btn_single_rect</cellType> </a297> <a298> <x>3</x> <y>4</y> <cellType>btn_single_rect</cellType> </a298> <a299> <x>3</x> <y>3</y> <cellType>btn_single_rect</cellType> </a299> <a300> <x>1</x> <y>3</y> <cellType>btn_double_rect</cellType> </a300> <a301> <x>2</x> <y>3</y> <cellType>btn_double_rect</cellType> </a301> <a302> <x>2</x> <y>4</y> <cellType>btn_double_rect</cellType> </a302> <a303> <x>1</x> <y>4</y> <cellType>btn_double_rect</cellType> </a303> <a304> <x>7</x> <y>6</y> <cellType>btn_double_rect</cellType> </a304> <a305> <x>8</x> <y>6</y> <cellType>btn_double_rect</cellType> </a305> <a306> <x>8</x> <y>5</y> <cellType>btn_double_rect</cellType> </a306> <a307> <x>7</x> <y>5</y> <cellType>btn_double_rect</cellType> </a307> <a308> <x>0</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a308> <a309> <x>1</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a309> <a310> <x>2</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a310> <a311> <x>3</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a311> <a312> <x>4</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a312> <a313> <x>4</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a313> <a314> <x>4</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a314> <a315> <x>4</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a315> <a316> <x>4</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a316> <a317> <x>5</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a317> <a318> <x>5</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a318> <a319> <x>5</x> <y>4</y> <cellType>btn_broken_rect</cellType> </a319> <a320> <x>5</x> <y>5</y> <cellType>btn_broken_rect</cellType> </a320> <a321> <x>5</x> <y>6</y> <cellType>btn_broken_rect</cellType> </a321> <a322> <x>6</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a322> <a323> <x>7</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a323> <a324> <x>8</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a324> <a325> <x>9</x> <y>3</y> <cellType>btn_broken_rect</cellType> </a325> <a326> <x>9</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a326> <a327> <x>8</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a327> <a328> <x>7</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a328> <a329> <x>6</x> <y>2</y> <cellType>btn_broken_rect</cellType> </a329> </cells> </level_a5> ]; super(); this.agame_ = _arg1; } public function restartLevel(){ lvl_ind = 0; if (agame_.gplay_type == gameconst.GAMEPLAY_ARCADE){ agame_.LoadLevelA(levels_arr_a[lvl_ind], Number(levels_arr_a[(lvl_ind + 1)]), levels_arr_a[(lvl_ind + 2)]); } else { if (agame_.gplay_type == gameconst.GAMEPLAY_PUZZLE){ agame_.LoadLevelP(levels_arr_p[lvl_ind], Number(levels_arr_p[(lvl_ind + 1)]), levels_arr_p[(lvl_ind + 2)], levels_arr_p[(lvl_ind + 3)], levels_arr_p[(lvl_ind + 4)]); }; }; } public function handleComplete(_arg1:Event):void{ var event = _arg1; try { levelXML = new XML(event.target.data); ProcessLevelXml(); } catch(e:TypeError) { trace("Could not parse text into XML"); trace(e.message); }; } public function nextLevel(){ if (agame_.gplay_type == gameconst.GAMEPLAY_ARCADE){ lvl_ind = (lvl_ind + 3); if (lvl_ind >= levels_arr_a.length){ lvl_ind = 0; if ((agame_.time_index_ - 0.2) > 0.05){ agame_.time_index_ = (agame_.time_index_ - 0.2); } else { if ((agame_.time_index_ - 0.01) > 0.01){ agame_.time_index_ = (agame_.time_index_ - 0.01); }; }; agame_.score_index_ = (agame_.score_index_ + 0.2); }; loadLevel(lvl_ind, 0); } else { lvl_ind = (lvl_ind + 5); if (lvl_ind >= levels_arr_p.length){ lvl_ind = 0; if ((agame_.time_index_ - 0.2) > 0.05){ agame_.time_index_ = (agame_.time_index_ - 0.2); } else { if ((agame_.time_index_ - 0.01) > 0.01){ agame_.time_index_ = (agame_.time_index_ - 0.01); }; }; agame_.score_index_ = (agame_.score_index_ + 0.2); }; loadLevel(lvl_ind, 0); }; } private function progressHandler(_arg1:ProgressEvent):void{ trace(((("progressHandler loaded:" + _arg1.bytesLoaded) + " total: ") + _arg1.bytesTotal)); } public function loadMainXml(){ if (levelXML == null){ createInternalLevelXml(); ProcessLevelXml(); } else { lvl_ind = 0; loadLevel(lvl_ind, 0); }; } public function ProcessLevelXml(){ var _local1:int; var _local2:*; var _local3:Array; var _local4:*; var _local5:int; var _local6:Array; var _local7:Array; var _local8:*; levels_arr_a = new Array(); levels_arr_p = new Array(); _local1 = 0; while (_local1 < levelXML.elements("arcade").elements("*").length()) { levels_arr_a.push(levelXML.elements("arcade").elements("*")[_local1].elements("name")); levels_arr_a.push(int(levelXML.elements("arcade").elements("*")[_local1].elements("time"))); _local2 = levelXML.elements("arcade").elements("*")[_local1].elements("items").elements("*").length(); _local3 = new Array(); _local4 = 0; while (_local4 < _local2) { _local3.push(int(levelXML.elements("arcade").elements("*")[_local1].elements("items").elements("*")[_local4])); _local4++; }; levels_arr_a.push(_local3); _local1++; }; _local1 = 0; while (_local1 < levelXML.elements("puzzle").elements("*").length()) { levels_arr_p.push(levelXML.elements("puzzle").elements("*")[_local1].elements("name")); levels_arr_p.push(int(levelXML.elements("puzzle").elements("*")[_local1].elements("time"))); _local2 = levelXML.elements("puzzle").elements("*")[_local1].elements("items").elements("*").length(); _local3 = new Array(); _local4 = 0; while (_local4 < _local2) { _local3.push(int(levelXML.elements("puzzle").elements("*")[_local1].elements("items").elements("*")[_local4])); _local4++; }; levels_arr_p.push(_local3); _local5 = levelXML.elements("puzzle").elements("*")[_local1].elements("pitems").elements("*").length(); _local6 = new Array(); _local7 = new Array(); _local8 = 0; while (_local8 < _local5) { _local6.push(int(levelXML.elements("puzzle").elements("*")[_local1].elements("pitems").elements("*")[_local8].elements("id")[0])); _local7.push(int(levelXML.elements("puzzle").elements("*")[_local1].elements("pitems").elements("*")[_local8].elements("num")[0])); _local8++; }; levels_arr_p.push(_local6); levels_arr_p.push(_local7); _local1++; }; lvl_ind = 0; if (agame_.gplay_type == gameconst.GAMEPLAY_ARCADE){ agame_.LoadLevelA(levels_arr_a[lvl_ind], int(levels_arr_a[(lvl_ind + 1)]), levels_arr_a[(lvl_ind + 2)]); } else { if (agame_.gplay_type == gameconst.GAMEPLAY_PUZZLE){ agame_.LoadLevelP(levels_arr_p[lvl_ind], int(levels_arr_p[(lvl_ind + 1)]), levels_arr_p[(lvl_ind + 2)], levels_arr_p[(lvl_ind + 3)], levels_arr_p[(lvl_ind + 4)]); }; }; } public function getXMLindA(_arg1:String):int{ var _local2:int; _local2 = 0; while (_local2 < xmlnames_arr_a.length) { if (xmlnames_arr_a[_local2] == _arg1){ return (_local2); }; _local2++; }; return (-1); } public function getXMLindP(_arg1:String):int{ var _local2:int; _local2 = 0; while (_local2 < xmlnames_arr_p.length) { if (xmlnames_arr_p[_local2] == _arg1){ return (_local2); }; _local2++; }; return (-1); } public function createInternalLevelXml(){ levelXML = <levels> <background> </background> <arcade> <L1> <name>level_a1.xml</name> <time>1</time> <items> <l1>4</l1> <l2>8</l2> <l3>5</l3> <l4>2</l4> <l5>10</l5> </items> </L1> <L2> <name>level_a2.xml</name> <time>4</time> <items> <l1>1</l1> <l2>8</l2> <l3>5</l3> <l4>2</l4> <l5>10</l5> </items> </L2> <L3> <name>level_a3.xml</name> <time>4</time> <items> <l1>4</l1> <l2>6</l2> <l3>5</l3> <l4>2</l4> <l5>9</l5> </items> </L3> <L3> <name>level_a4.xml</name> <time>4</time> <items> <l1>4</l1> <l2>8</l2> <l3>2</l3> <l4>7</l4> <l5>10</l5> </items> </L3> <L3> <name>level_a5.xml</name> <time>4</time> <items> <l1>4</l1> <l2>8</l2> <l3>5</l3> <l4>2</l4> <l5>6</l5> </items> </L3> </arcade> <puzzle> <L1> <name>level_p1.xml</name> <time>4</time> <items> <l1>2</l1> <l2>4</l2> <l3>5</l3> <l4>8</l4> <l5>10</l5> </items> <pitems> <a1> <id>2</id> <num>10</num> </a1> <a2> <id>5</id> <num>10</num> </a2> <a3> <id>10</id> <num>10</num> </a3> </pitems> </L1> <L2> <name>level_p2.xml</name> <time>4</time> <items> <a1>8</a1> <a2>10</a2> <a3>2</a3> <a4>5</a4> <a5>1</a5> </items> <pitems> <a1> <id>8</id> <num>15</num> </a1> <a2> <id>10</id> <num>15</num> </a2> <a3> <id>2</id> <num>10</num> </a3> </pitems> </L2> <L3> <name>level_p3.xml</name> <time>4</time> <items> <a1>4</a1> <a2>6</a2> <a3>5</a3> <a4>2</a4> <a5>10</a5> </items> <pitems> <a1> <id>4</id> <num>15</num> </a1> <a2> <id>6</id> <num>15</num> </a2> <a3> <id>5</id> <num>15</num> </a3> <a4> <id>2</id> <num>20</num> </a4> </pitems> </L3> <L3> <name>level_p4.xml</name> <time>4</time> <items> <a1>4</a1> <a2>8</a2> <a3>9</a3> <a4>7</a4> <a5>10</a5> </items> <pitems> <a1> <id>4</id> <num>30</num> </a1> <a2> <id>8</id> <num>30</num> </a2> <a3> <id>9</id> <num>20</num> </a3> <a4> <id>10</id> <num>20</num> </a4> </pitems> </L3> <L3> <name>level_p5.xml</name> <time>4</time> <items> <a1>4</a1> <a2>8</a2> <a3>5</a3> <a4>2</a4> <a5>6</a5> </items> <pitems> <a1> <id>4</id> <num>35</num> </a1> <a2> <id>5</id> <num>35</num> </a2> <a3> <id>6</id> <num>25</num> </a3> <a4> <id>2</id> <num>25</num> </a4> </pitems> </L3> </puzzle> <bonus> </bonus> </levels> ; } public function loadLevel(_arg1:int, _arg2:int){ if (agame_.gplay_type == gameconst.GAMEPLAY_ARCADE){ agame_.LoadLevelA(levels_arr_a[_arg1], Number(levels_arr_a[(_arg1 + 1)]), levels_arr_a[(_arg1 + 2)]); } else { if (agame_.gplay_type == gameconst.GAMEPLAY_PUZZLE){ agame_.LoadLevelP(levels_arr_p[_arg1], Number(levels_arr_p[(_arg1 + 1)]), levels_arr_p[(_arg1 + 2)], levels_arr_p[(_arg1 + 3)], levels_arr_p[(_arg1 + 4)]); }; }; } } }//package
Section 85
//Loading (Loading) package { import flash.display.*; public dynamic class Loading extends MovieClip { } }//package
Section 86
//loading_back (loading_back) package { import flash.display.*; public dynamic class loading_back extends MovieClip { } }//package
Section 87
//MainMenu (MainMenu) package { import flash.events.*; import flash.display.*; public class MainMenu extends Sprite { public var agame_:game; public function MainMenu(_arg1:game){ this.agame_ = _arg1; } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:String=null){ var _local6:MultiText; var _local7:Array; var _local8:BitmapData; var _local9:Bitmap; var _local10:MenuBtn; _local6 = new MultiText(agame_); _local7 = agame_.translator_.Translate(("DESCR" + _arg1)); _local6.Create(_local7, TextFormats.fmtMenuDescr, gameconst.DESCRFIELDMENU_X, gameconst.DESCRFIELDMENU_Y); _local8 = new result_back(0, 0); _local9 = new Bitmap(_local8); _local9.width = (_local6.width + 60); _local9.height = (_local6.height + 40); _local9.x = -20; _local9.y = -20; _local6.addChildAt(_local9, 0); _local10 = new MenuBtn(_arg1, _arg2, this.agame_, true, TextFormats.fmtGameMenu, _local6); _local10.addEventListener(MouseEvent.CLICK, ButtonClick); _local10.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); _local10.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(_local10); _local10.x = (_arg3 - (_local10.width / 2)); _local10.y = _arg4; } public function Create(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){ var _local6:int; var _local7:MovieClip; if (_arg5 != ""){ _local7 = new (loading_back); addChild(_local7); }; _local6 = 0; while (_local6 < _arg1.length) { AddButton(_arg1[_local6], _arg2[_local6], _arg3[_local6], _arg4[_local6]); _local6++; }; } public function Show(){ agame_.addChild(this); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; agame_.soundFactory.playSound(SoundFactory.SND_TOGGLE); } public function ButtonClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); trace("Relesing"); this.Release(_local2.btnId_); agame_.soundFactory.playSound(SoundFactory.SND_CLICK); } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function Release(_arg1:int){ agame_.menu_result_ = gameconst.MENU_RESULT_MAIN_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); } } }//package
Section 88
//mainmenu_back (mainmenu_back) package { import flash.display.*; public dynamic class mainmenu_back extends BitmapData { public function mainmenu_back(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 89
//menu_click (menu_click) package { import flash.media.*; public dynamic class menu_click extends Sound { } }//package
Section 90
//menu_toggle (menu_toggle) package { import flash.media.*; public dynamic class menu_toggle extends Sound { } }//package
Section 91
//MenuBtn (MenuBtn) package { import flash.events.*; import flash.display.*; import flash.text.*; public class MenuBtn extends Sprite { private var agame_:game; private var descrField_:MultiText; public var btnframe:MovieClip; public var btnId_:int; public var tField:TextField; public function MenuBtn(_arg1:String, _arg2:int, _arg3:game, _arg4:Boolean=true, _arg5:TextFormat=null, _arg6:MultiText=null){ var _local7:MovieClip; super(); agame_ = _arg3; descrField_ = _arg6; if (descrField_ != null){ this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); }; this.btnId_ = _arg2; btnframe = new btn_frame(); btnframe.visible = false; if (_arg5 == null){ _arg5 = new TextFormat(); _arg5.font = "Arial Black"; _arg5.size = 10; _arg5.bold = false; _arg5.color = 0xFF0000; _arg5.align = "center"; }; this.addChild(btnframe); tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = _arg5; tField.autoSize = TextFieldAutoSize.CENTER; if (_arg4){ tField.text = agame_.translator_.Translate(_arg1)[0]; } else { tField.text = _arg1; }; btnframe.width = (tField.width + 40); tField.x = ((btnframe.width / 2) - (tField.width / 2)); tField.y = ((btnframe.height / 2) - (tField.height / 2)); tField.mouseEnabled = false; this.addChild(tField); _local7 = new btn_hit(); _local7.width = btnframe.width; this.hitArea = _local7; this.addChild(_local7); _local7.visible = false; } public function MouseOut(_arg1:Event){ descrField_.Hide(); } public function MouseOver(_arg1:Event){ descrField_.Show(); } } }//package
Section 92
//MenuFactory (MenuFactory) package { public class MenuFactory { public var agame_:game; private static var aMenu:MainMenu = null; private static var aMenuScores:MenuScores = null; private static var aMenuUser:MenuUser = null; private static var aMenuResume:MenuResume = null; private static var aMenuRelax:MenuRelax = null; private static var aMenuOptions:MenuOptions = null; public function MenuFactory(_arg1:game){ this.agame_ = _arg1; } public function drawScores(_arg1:Array, _arg2:Array, _arg3:Array){ aMenuScores.DrawScores(_arg1, _arg2, _arg3); } public function CreateMenu(_arg1:int){ var _local2:*; var _local3:Array; var _local4:Array; var _local5:Array; var _local6:Array; var _local7:MenuTimeOut; var _local8:Array; var _local9:Array; var _local10:Array; var _local11:Array; var _local12:Array; var _local13:Array; var _local14:Array; var _local15:Array; var _local16:Array; var _local17:Array; var _local18:Array; var _local19:Array; var _local20:Array; var _local21:Array; var _local22:Array; var _local23:Array; var _local24:Array; var _local25:Array; var _local26:Array; var _local27:Array; var _local28:Array; var _local29:Array; var _local30:Array; var _local31:Array; switch (_arg1){ case gameconst.MENU_STATUS_MAIN: if (aMenu == null){ aMenu = new MainMenu(agame_); _local12 = ["ARCADE", "PUZZLE", "PLAYER", "OPTIONS", "SCORES", "GETIT", "RELAX"]; _local13 = [gameconst.MENU_CODE_MAIN_ARCADE, gameconst.MENU_CODE_MAIN_PUZZLE, gameconst.MENU_CODE_MAIN_PLAYER, gameconst.MENU_CODE_MAIN_OPTIONS, gameconst.MENU_CODE_MAIN_SCORES, gameconst.MENU_CODE_MAIN_GETIT, gameconst.MENU_CODE_MAIN_RELAX]; _local14 = [110, 110, 110, 110, 110, 110, 110]; _local15 = [130, 170, 210, 250, 290, 330, 370]; aMenu.Create(_local12, _local13, _local14, _local15, "mainmenu_back"); }; aMenu.Show(); agame_.PushMenuState(_arg1); break; case gameconst.MENU_STATUS_RELAX: _local2 = new MenuRelax(agame_); _local3 = ["ARCADE", "PUZZLE", "EXIT"]; _local4 = [gameconst.MENU_CODE_RELAX_ARCADE, gameconst.MENU_CODE_RELAX_PUZZLE, gameconst.MENU_CODE_RELAX_EXIT]; _local5 = [110, 110, 110, 110, 110, 110, 110]; _local6 = [130, 170, 370]; _local2.Create(_local3, _local4, _local5, _local6, "mainmenu_back"); _local2.Show(); agame_.PushMenuState(_arg1); break; case gameconst.MENU_STATUS_TIME_OUT: _local7 = new MenuTimeOut(agame_); _local8 = ["TIMEOUT", "GOTOMENU", "RESTARTGAME"]; _local9 = [-1, gameconst.MENU_CODE_TIME_OUT_EXIT, gameconst.MENU_CODE_TIME_OUT_RESTART]; _local10 = [30, 10, 10]; _local11 = [200, 300, 350]; _local7.Create(_local8, _local9, _local10, _local11, "mainmenu_back"); _local7.Show(); agame_.PushMenuState(_arg1); break; case gameconst.MENU_STATUS_RESUME: if (aMenuResume == null){ aMenuResume = new MenuResume(agame_); _local16 = ["RESUME", "ABORT", "OPTIONS", "SCORES", "PLAYER"]; _local17 = [gameconst.MENU_CODE_RESUME_RESUME, gameconst.MENU_CODE_RESUME_ABORT, gameconst.MENU_CODE_RESUME_OPTIONS, gameconst.MENU_CODE_RESUME_SCORES, gameconst.MENU_CODE_RESUME_PLAYER]; _local18 = [10, 10, 10, 10, 10]; _local19 = [150, 200, 250, 300, 350]; aMenuResume.Create(_local16, _local17, _local18, _local19, "mainmenu_back"); }; aMenuResume.Show(); agame_.PushMenuState(_arg1); break; case gameconst.MENU_STATUS_OPTIONS: if (aMenuOptions == null){ aMenuOptions = new MenuOptions(agame_); _local20 = ["OK"]; _local21 = [gameconst.MENU_CODE_OPTIONS_DONE]; _local22 = [110]; _local23 = [350]; _local24 = ["SOUNDVOL", "MUSICVOL"]; _local25 = [gameconst.MENU_CODE_OPTIONS_SOUND_CHANGE, gameconst.MENU_CODE_OPTIONS_MUSIC_CHANGE]; _local26 = [30, 30]; _local27 = [180, 280]; aMenuOptions.Create(_local20, _local21, _local22, _local23, "mainmenu_back", _local24, _local25, _local26, _local27); }; aMenuOptions.Show(); agame_.PushMenuState(_arg1); break; case gameconst.MENU_STATUS_PLAYER: if (aMenuUser == null){ aMenuUser = new MenuUser(agame_); _local28 = ["PLAYERNAME", "SUBMIT"]; _local29 = [-1, gameconst.MENU_CODE_OK]; _local30 = [110, 110]; _local31 = [150, 250]; aMenuUser.Create(_local28, _local29, _local30, _local31, "mainmenu_back"); }; aMenuUser.Show(); agame_.PushMenuState(_arg1); break; case gameconst.MENU_STATUS_SCORES: trace("SCORES OPENEING"); if (aMenuScores == null){ aMenuScores = new MenuScores(agame_); aMenuScores.Create(); }; aMenuScores.Show(); agame_.PushMenuState(_arg1); break; }; } } }//package
Section 93
//MenuOptions (MenuOptions) package { import flash.events.*; import flash.display.*; import flash.media.*; public class MenuOptions extends Sprite { public var agame_:game; public function MenuOptions(_arg1:game){ this.agame_ = _arg1; } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ var _local5:MenuBtn; _local5 = new MenuBtn(_arg1, _arg2, this.agame_, true, TextFormats.fmtGameMenu); _local5.addEventListener(MouseEvent.CLICK, ButtonClick); _local5.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); _local5.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(_local5); _local5.x = (_arg3 - (_local5.width / 2)); _local5.y = _arg4; } public function Create(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String, _arg6:Array, _arg7:Array, _arg8:Array, _arg9:Array){ var _local10:int; var _local11:int; var _local12:MovieClip; if (_arg5 != ""){ _local12 = new (loading_back); addChild(_local12); }; _local10 = 0; while (_local10 < _arg1.length) { AddButton(_arg1[_local10], _arg2[_local10], _arg3[_local10], _arg4[_local10]); _local10++; }; _local11 = 0; while (_local11 < _arg6.length) { AddSlider(_arg6[_local11], _arg7[_local11], _arg8[_local11], _arg9[_local11]); _local11++; }; } public function Show(){ agame_.addChild(this); SoundMixer.stopAll(); agame_.soundFactory.playMusic(); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; } public function ButtonClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); trace("Relesing"); this.Release(_local2.btnId_); } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function AddSlider(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ var _local5:HorSlider; _local5 = new HorSlider(_arg1, _arg2, this.agame_); this.addChild(_local5); _local5.x = _arg3; _local5.y = _arg4; } public function Release(_arg1:int){ agame_.menu_result_ = gameconst.MENU_RESULT_OPTIONS_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); } } }//package
Section 94
//MenuRelax (MenuRelax) package { import flash.events.*; import flash.display.*; public class MenuRelax extends Sprite { public var agame_:game; public var exitBtn:MenuBtn; public function MenuRelax(_arg1:game){ this.agame_ = _arg1; } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ var _local5:MenuBtn; _local5 = new MenuBtn(_arg1, _arg2, this.agame_, true, TextFormats.fmtGameMenu); _local5.addEventListener(MouseEvent.CLICK, ButtonClick); _local5.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); _local5.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(_local5); _local5.x = (_arg3 - (_local5.width / 2)); _local5.y = _arg4; } public function Create(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){ var _local6:int; var _local7:MovieClip; if (_arg5 != ""){ _local7 = new (loading_back); addChild(_local7); }; _local6 = 0; while (_local6 < _arg1.length) { if (_arg2[_local6] > -1){ AddButton(_arg1[_local6], _arg2[_local6], _arg3[_local6], _arg4[_local6]); }; _local6++; }; } public function Show(){ agame_.addChild(this); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; agame_.soundFactory.playSound(SoundFactory.SND_TOGGLE); } public function ButtonClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); trace("Relesing"); this.Release(_local2.btnId_); agame_.soundFactory.playSound(SoundFactory.SND_CLICK); } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function Release(_arg1:int){ agame_.menu_result_ = gameconst.MENU_RESULT_RELAX_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); } } }//package
Section 95
//MenuResume (MenuResume) package { import flash.events.*; import flash.display.*; public class MenuResume extends Sprite { public var agame_:game; public function MenuResume(_arg1:game){ this.agame_ = _arg1; } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ var _local5:MenuBtn; _local5 = new MenuBtn(_arg1, _arg2, this.agame_, true, TextFormats.fmtGameMenu); _local5.addEventListener(MouseEvent.CLICK, ButtonClick); _local5.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); _local5.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(_local5); _local5.x = _arg3; _local5.y = _arg4; } public function Create(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){ var _local6:int; var _local7:MovieClip; if (_arg5 != ""){ _local7 = new (loading_back); addChild(_local7); }; _local6 = 0; while (_local6 < _arg1.length) { AddButton(_arg1[_local6], _arg2[_local6], _arg3[_local6], _arg4[_local6]); _local6++; }; } public function Show(){ agame_.addChild(this); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; } public function ButtonClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); trace("Relesing"); this.Release(_local2.btnId_); } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function Release(_arg1:int){ agame_.menu_result_ = gameconst.MENU_RESULT_RESUME_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); } } }//package
Section 96
//MenuScores (MenuScores) package { import flash.events.*; import flash.display.*; import flash.text.*; public dynamic class MenuScores extends Sprite { public var agame_:game; private var loadingtext:MenuBtn; public var menuEdt:MenuBtn; private var ScoreFields:Array; public static const scoresUpMrg:int = 120; public function MenuScores(_arg1:game){ this.agame_ = _arg1; ScoreFields = new Array(); } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:TextFormat=null):MenuBtn{ var _local6:MenuBtn; _local6 = new MenuBtn(_arg1, _arg2, this.agame_, true, _arg5); _local6.addEventListener(MouseEvent.CLICK, ButtonClick); _local6.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); _local6.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(_local6); _local6.x = (_arg3 - (_local6.width / 2)); _local6.y = _arg4; return (_local6); } public function Create(){ var _local1:MovieClip; var _local2:MenuBtn; _local1 = new (loading_back); this.addChild(_local1); _local2 = AddTextField("SCORES", 110, (scoresUpMrg - 30), true, TextFormats.fmtGameMenu); _local2.x = (110 - (_local2.width / 2)); } public function Show(){ agame_.addChild(this); loadingtext = AddTextField("LOADING", 60, scoresUpMrg, true, TextFormats.fmtScore); loadingtext.x = (110 - (loadingtext.width / 2)); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; agame_.soundFactory.playSound(SoundFactory.SND_TOGGLE); } public function AddTextField(_arg1:String, _arg2:int, _arg3:int, _arg4:Boolean=true, _arg5:TextFormat=null):MenuBtn{ menuEdt = new MenuBtn(_arg1, -1, this.agame_, _arg4, _arg5); this.addChild(menuEdt); menuEdt.x = _arg2; menuEdt.y = _arg3; return (menuEdt); } public function ButtonClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); trace("Relesing"); if (menuEdt.tField.text != ""){ agame_.PlayerName_ = menuEdt.tField.text; } else { menuEdt.tField.text = agame_.translator_.Translate("PLAYERNAME")[0]; }; this.Release(_local2.btnId_); agame_.soundFactory.playSound(SoundFactory.SND_CLICK); } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function DrawScores(_arg1:Array, _arg2:Array, _arg3:Array){ var _local4:int; removeChild(loadingtext); if (_arg1 != null){ _local4 = 0; while (_local4 < _arg1.length) { trace("DrawingScore:"); ScoreFields.push(AddTextField(_arg1[_local4], 3, (scoresUpMrg + (_local4 * 25)), false, TextFormats.fmtScore)); ScoreFields.push(AddTextField(_arg2[_local4], 30, (scoresUpMrg + (_local4 * 25)), false, TextFormats.fmtScore)); ScoreFields.push(AddTextField(_arg3[_local4], 140, (scoresUpMrg + (_local4 * 25)), false, TextFormats.fmtScore)); _local4++; }; }; ScoreFields.push(AddButton("EXIT", gameconst.MENU_CODE_SCORES_DONE, 110, gameconst.SCORES_EXIT_BTN_Y, TextFormats.fmtGameMenu)); } public function Release(_arg1:int){ var _local2:int; _local2 = 0; while (_local2 < ScoreFields.length) { removeChild(ScoreFields[_local2]); _local2++; }; ScoreFields.splice(0, ScoreFields.length); agame_.menu_result_ = gameconst.MENU_RESULT_SCORES_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); } } }//package
Section 97
//MenuTimeOut (MenuTimeOut) package { import flash.events.*; import flash.display.*; import flash.text.*; public class MenuTimeOut extends Sprite { public var agame_:game; public var tField:TextField; static const fontBold:Boolean = true; static const fontSize:int = 20; static const fontColor:Number = 0xFF0000; static const fontFace:String = "Arial Black"; public function MenuTimeOut(_arg1:game){ this.agame_ = _arg1; } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ var _local5:MenuBtn; _local5 = new MenuBtn(_arg1, _arg2, this.agame_, true, TextFormats.fmtTimeOutBtn); _local5.addEventListener(MouseEvent.CLICK, ButtonClick); _local5.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); _local5.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(_local5); _local5.x = _arg3; _local5.y = _arg4; } public function Create(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){ var _local6:int; var _local7:MovieClip; if (_arg5 != ""){ _local7 = new (loading_back); addChild(_local7); }; _local6 = 0; while (_local6 < _arg1.length) { if (_arg2[_local6] != -1){ AddButton(_arg1[_local6], _arg2[_local6], _arg3[_local6], _arg4[_local6]); } else { AddTextLabel(_arg1[_local6], _arg3[_local6], _arg4[_local6]); }; _local6++; }; } public function Show(){ agame_.addChild(this); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; } public function ButtonClick(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); trace("Relesing:", _local2.btnId_); this.Release(_local2.btnId_); } public function AddTextLabel(_arg1:String, _arg2, _arg3:int){ tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = TextFormats.fmtGameMenu; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = agame_.translator_.Translate(_arg1)[0]; tField.x = _arg2; tField.y = _arg3; tField.mouseEnabled = false; this.addChild(tField); } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function Release(_arg1:int){ agame_.menu_result_ = gameconst.MENU_RESULT_TIME_OUT_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); delete ??getglobalscope [this]; } } }//package
Section 98
//MenuUser (MenuUser) package { import flash.events.*; import flash.display.*; import flash.text.*; public class MenuUser extends Sprite { public var agame_:game; public var exitBtn:MenuBtn; public var menuEdt:MenuBtn; public function MenuUser(_arg1:game){ this.agame_ = _arg1; } public function AddButton(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ exitBtn = new MenuBtn(_arg1, _arg2, this.agame_, true, TextFormats.fmtGameMenu); exitBtn.addEventListener(MouseEvent.CLICK, ButtonClick); exitBtn.addEventListener(MouseEvent.MOUSE_OVER, MouseOn); exitBtn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.addChild(exitBtn); exitBtn.x = (_arg3 - (exitBtn.width / 2)); exitBtn.y = _arg4; } public function Create(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){ var _local6:int; var _local7:MovieClip; if (_arg5 != ""){ _local7 = new (loading_back); addChild(_local7); }; _local6 = 0; while (_local6 < _arg1.length) { if (_arg2[_local6] > -1){ AddButton(_arg1[_local6], _arg2[_local6], _arg3[_local6], _arg4[_local6]); } else { AddTextField(_arg1[_local6], _arg3[_local6], _arg4[_local6]); }; _local6++; }; } public function Show(){ agame_.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); agame_.addChild(this); } public function MouseOn(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = true; agame_.soundFactory.playSound(SoundFactory.SND_TOGGLE); } public function AddTextField(_arg1:String, _arg2:int, _arg3:int){ menuEdt = new MenuBtn(_arg1, -1, this.agame_, false, TextFormats.fmtGameMenu); menuEdt.tField.type = TextFieldType.INPUT; menuEdt.tField.border = true; menuEdt.tField.background = true; menuEdt.tField.selectable = true; menuEdt.tField.mouseEnabled = true; menuEdt.tField.maxChars = 12; this.addChild(menuEdt); menuEdt.x = (_arg2 - (menuEdt.width / 2)); menuEdt.y = _arg3; } public function processExitClick(){ if (menuEdt.tField.text != ""){ agame_.PlayerName_ = menuEdt.tField.text; } else { menuEdt.tField.text = agame_.translator_.Translate("PLAYERNAME")[0]; }; this.Release(exitBtn.btnId_); agame_.soundFactory.playSound(SoundFactory.SND_CLICK); } public function ButtonClick(_arg1:MouseEvent){ processExitClick(); } public function keyDownHandler(_arg1:KeyboardEvent):void{ trace(("keyDownHandler: " + _arg1.keyCode)); if (_arg1.keyCode == 13){ processExitClick(); }; } public function MouseOut(_arg1:MouseEvent){ var _local2:MenuBtn; _local2 = MenuBtn(_arg1.currentTarget); _local2.btnframe.visible = false; } public function Release(_arg1:int){ agame_.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); agame_.menu_result_ = gameconst.MENU_RESULT_PLAYER_DONE; agame_.menu_code_ = _arg1; agame_.removeChild(this); } } }//package
Section 99
//MochiAd (MochiAd) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.1"); } public static function showTimedAd(_arg1:Object):void{ MochiAd.showInterLevelAd(_arg1); } public static function _allowDomains(_arg1:String):String{ var _local2:String; _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function load(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var depth:Number; var mc:MovieClip; var wh:Array; var lv:URLVariables; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var f:Function; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip._mochiad_loaded){ return (null); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; lv = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; lv.lc = name; lv.st = getTimer(); loader = new Loader(); f = function (_arg1:Object):void{ mc._mochiad_ctr_failed = true; }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); g = function (_arg1:Object):void{ MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function sendHighScore(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["sendHighScore", _arg1], _arg2, _arg3); return (true); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local3:Object; var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; _local3 = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; return (_local3); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; _arg1.removeChild(_arg1._mochiad); delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ options.ad_finished(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = _local1.loaderInfo.bytesTotal; if ((((_local4 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ _local3 = true; }; }; }; if ((((_local2 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local3:Object; var _local4:Number; var _local5:Number; var _local6:Array; _local3 = _arg2.getBounds(_arg2.root); _local4 = 0; _local5 = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip; _local4 = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _loadCommunicator(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var clipname:String; var server:String; var depth:Number; var mc:MovieClip; var lv:URLVariables; var k:String; var lc:LocalConnection; var name:String; var req:URLRequest; var loader:Loader; var options = _arg1; DEFAULTS = {com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; clipname = ("_mochiad_com_" + options.id); if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip[clipname]){ return (clip[clipname]); }; server = (options.com_server + options.id); MochiAd._allowDomains(server); delete options.id; delete options.com_server; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, clipname, depth); lv = new URLVariables(); for (k in options) { lv[k] = options[k]; }; lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.name = name; mc.lc = lc; lv.lc = name; mc._id = 0; mc._queue = []; mc.rpcResult = function (_arg1:Object):void{ var _local3:Array; var _local4:Array; var _local5:Number; var _local6:Object; var _local7:Object; _arg1 = parseInt(_arg1.toString()); _local3 = mc._callbacks[_arg1]; if (typeof(_local3) == "undefined"){ return; }; delete mc._callbacks[_arg1]; _local4 = []; _local5 = 2; while (_local5 < _local3.length) { _local4.push(_local3[_local5]); _local5++; }; _local5 = 1; while (_local5 < arguments.length) { _local4.push(arguments[_local5]); _local5++; }; _local6 = _local3[1]; _local7 = _local3[0]; if (((_local7) && ((typeof(_local6) == "string")))){ _local6 = _local7[_local6]; }; if (typeof(_local6) == "function"){ _local6.apply(_local7, _local4); }; }; mc._didConnect = function (_arg1:String):void{ var _local2:Array; var _local3:Function; var _local4:Number; var _local5:Array; mc._endpoint = _arg1; _local2 = mc._queue; delete mc._queue; _local3 = mc.doSend; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local2[_local4]; _local3.apply(this, _local5); _local4++; }; }; mc.doSend = function (_arg1:Array, _arg2:Object, _arg3:Object):void{ var _local5:Number; var _local6:LocalConnection; var _local7:Array; var _local8:Number; if (mc._endpoint == null){ _local7 = []; _local8 = 0; while (_local8 < arguments.length) { _local7.push(arguments[_local8]); _local8++; }; mc._queue.push(_local7); return; }; mc._id = (mc._id + 1); _local5 = mc._id; mc._callbacks[_local5] = [_arg2, ((_arg3) || (_arg2))]; _local6 = new LocalConnection(); _local6.send(mc._endpoint, "rpc", _local5, _arg1); }; mc._callbacks = {}; mc._callbacks[0] = [mc, "_didConnect"]; lv.st = getTimer(); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader = new Loader(); loader.load(req); mc.addChild(loader); mc._mochiad_com = loader; return (mc); } public static function showPreGameAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var bar:MovieClip; var bar_color:Number; var bar_background:Number; var bar_outline:Number; var backing_mc:MovieClip; var backing:Object; var inside_mc:MovieClip; var inside:Object; var outline_mc:MovieClip; var outline:Object; var complete:Boolean; var unloaded:Boolean; var f:Function; var r:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function; fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); bar = createEmptyMovieClip(chk, "_mochiad_bar", 4); bar.x = 10; bar.y = (h - 20); bar_color = options.color; delete options.color; bar_background = options.background; delete options.background; bar_outline = options.outline; delete options.outline; backing_mc = createEmptyMovieClip(bar, "_outline", 1); backing = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); inside_mc = createEmptyMovieClip(bar, "_inside", 2); inside = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; outline_mc = createEmptyMovieClip(bar, "_outline", 3); outline = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; f = function (_arg1:Event):void{ complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Object; var _local3:Number; var _local4:Boolean; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Object; var _local10:Number; var _local11:Number; if (!this.parent.parent){ delete this["onEnterFrame"]; return; }; _local1 = this.parent.parent.root; _local2 = this.parent._mochiad_ctr; _local3 = (getTimer() - this.started); _local4 = false; _local5 = _local1.loaderInfo.bytesTotal; _local6 = _local1.loaderInfo.bytesLoaded; _local7 = ((100 * _local6) / _local5); _local8 = ((100 * _local3) / chk.ad_msec); _local9 = this._mochiad_bar._inside; _local10 = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); if (!chk.showing){ _local11 = _local2.loaderInfo.bytesTotal; if ((((_local11 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local3 > chk.ad_timeout){ _local4 = true; }; }; }; if ((((_local3 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ MochiAd.showPreGameAd(_arg1); } public static function fetchHighScores(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; var _local5:DisplayObject; trace("options.clip.parent:", _arg1.clip.parent); _local4 = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ _local5 = _arg1.clip.stage.getChildAt(0); game(_local5).drawScore(null, null, null); return (false); }; _local4.doSend(["fetchHighScores", _arg1], _arg2, _arg3); return (true); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var f:Function; var mc = _arg1; f = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { mc.removeEventListener(Event.ENTER_FRAME, f); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 100
//ModalTempAnimText (ModalTempAnimText) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class ModalTempAnimText extends Sprite { private var agame_:game; private var burstSprites:Array; private var animTimer:Timer; static const startScale:Number = 0.5; static const fontFace:String = "Arial Black"; static const endScale:Number = 1; static const fontSize:int = 120; static const animStepTime:int = 40; static const fontBold:Boolean = true; static const animSteps:int = 150; static const fontColor:Number = 64009; public function ModalTempAnimText(_arg1:String, _arg2, _arg3, _arg4:int, _arg5:game){ var _local6:TextFormat; var _local7:int; var _local8:*; var _local9:TextField; var _local10:int; var _local11:Sprite; super(); agame_ = _arg5; burstSprites = new Array(); _local6 = new TextFormat(); _local6.font = fontFace; _local6.size = fontSize; _local6.bold = fontBold; _local6.color = fontColor; _local6.align = "center"; this.x = 0; this.y = 0; _local7 = 0; _local8 = 0; _local10 = 0; while (_local10 < _arg1.length) { _local9 = new TextField(); _local9.embedFonts = true; _local9.selectable = false; _local9.defaultTextFormat = _local6; _local9.autoSize = TextFieldAutoSize.CENTER; _local9.text = _arg1.charAt(_local10); trace(_local9.text); _local9.mouseEnabled = false; _local11 = new Sprite(); _local11.mouseEnabled = false; _local11.alpha = 1; _local11.scaleX = startScale; _local11.scaleY = startScale; _local11.addChild(_local9); _local11.y = _local8; _local11.x = _local7; _local7 = (_local7 + (_local9.width * startScale)); burstSprites.push(_local11); this.addChild(_local11); _local10++; }; this.x = ((800 / 2) - (_local7 / 2)); this.y = ((600 / 2) - (this.height / 2)); this.mouseEnabled = false; _arg5.addChild(this); animTimer = new Timer(animStepTime, animSteps); animTimer.addEventListener(TimerEvent.TIMER, rescaleBurst); animTimer.addEventListener(TimerEvent.TIMER_COMPLETE, removeBurst); animTimer.start(); } public function removeBurst(_arg1:TimerEvent){ var _local2:int; trace("REMOVING"); _local2 = 0; while (_local2 < burstSprites.length) { this.removeChild(burstSprites[_local2]); delete burstSprites[_local2]; _local2++; }; agame_.removeChild(this); agame_.result_board.ShowBoard(); agame_.aboard.HidePuzleTable(); agame_.CurrentGameState = gameconst.GSTATE_FADEOUTBOARD; agame_.aboard.removeAnimtext(); delete ??getglobalscope [this]; } public function rescaleBurst(_arg1:TimerEvent){ var _local2:Number; var _local3:int; var _local4:int; var _local5:int; _local2 = (_arg1.target.currentCount / animSteps); _local3 = 0; _local4 = 0; _local5 = 0; while (_local5 < burstSprites.length) { burstSprites[_local5].scaleX = (((1 - _local2) * startScale) + (_local2 * endScale)); burstSprites[_local5].scaleY = (((1 - _local2) * startScale) + (_local2 * endScale)); if (burstSprites[_local5].height > _local4){ _local4 = burstSprites[_local5].height; }; burstSprites[_local5].alpha = (1 - _local2); _local3 = (_local3 + (burstSprites[_local5].width + (burstSprites[_local5].width * burstSprites[_local5].scaleX))); _local5++; }; this.width = _local3; this.height = _local4; this.x = ((800 / 2) - (_local3 / 2)); this.y = ((600 / 2) - 20); } } }//package
Section 101
//mouse_sword (mouse_sword) package { import flash.display.*; public dynamic class mouse_sword extends BitmapData { public function mouse_sword(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 102
//move_wrong (move_wrong) package { import flash.media.*; public dynamic class move_wrong extends Sound { } }//package
Section 103
//MultiText (MultiText) package { import flash.display.*; import flash.text.*; public class MultiText extends Sprite { public const MARGIN:int = 5; private var agame_:game; private var fieldsArray:Array; public function MultiText(_arg1:game){ this.agame_ = _arg1; fieldsArray = new Array(); } public function Create(_arg1:Array, _arg2:TextFormat, _arg3:int, _arg4:int){ var _local5:int; var _local6:int; var _local7:TextField; this.x = _arg3; this.y = _arg4; _local5 = 0; _local6 = 0; while (_local6 < _arg1.length) { _local7 = new TextField(); _local7.embedFonts = true; _local7.selectable = false; _local7.defaultTextFormat = _arg2; _local7.autoSize = TextFieldAutoSize.CENTER; _local7.text = _arg1[_local6]; _local7.mouseEnabled = false; _local7.y = (MARGIN + _local5); _local7.x = MARGIN; _local5 = (_local5 + _local7.height); fieldsArray.push(_local7); this.addChild(_local7); _local6++; }; } public function Show(){ agame_.addChild(this); } public function Hide(){ agame_.removeChild(this); } } }//package
Section 104
//music1 (music1) package { import flash.media.*; public dynamic class music1 extends Sound { } }//package
Section 105
//pbar_n_empty (pbar_n_empty) package { import flash.display.*; public dynamic class pbar_n_empty extends BitmapData { public function pbar_n_empty(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 106
//pbar_n_full (pbar_n_full) package { import flash.display.*; public dynamic class pbar_n_full extends BitmapData { public function pbar_n_full(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 107
//power_a (power_a) package { import flash.display.*; public dynamic class power_a extends BitmapData { public function power_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 108
//power_d (power_d) package { import flash.display.*; public dynamic class power_d extends BitmapData { public function power_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 109
//power_n (power_n) package { import flash.display.*; public dynamic class power_n extends BitmapData { public function power_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 110
//puzzle_table (puzzle_table) package { import flash.display.*; public dynamic class puzzle_table extends MovieClip { } }//package
Section 111
//PuzzleObserver (PuzzleObserver) package { import flash.display.*; import flash.text.*; public class PuzzleObserver extends Sprite implements i_Observer { private var agame_:game; private var tokill_:int; private var imageId_:int; private var itemImage_:GameItemSkin; private var tField:TextField; static const fontBold:Boolean = true; static const fontSize:int = 13; static const fontColor:Number = 0; static const fontFace:String = "Arial Black"; public function PuzzleObserver(_arg1:game){ var _local2:TextFormat; super(); this.agame_ = _arg1; itemImage_ = new GameItemSkin(); itemImage_.width = (itemImage_.width - 5); itemImage_.height = (itemImage_.height - 5); _local2 = new TextFormat(); _local2.font = fontFace; _local2.size = fontSize; _local2.bold = fontBold; _local2.color = fontColor; _local2.align = "center"; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = _local2; tField.autoSize = TextFieldAutoSize.CENTER; tField.mouseEnabled = false; } public function getImageInd(){ return (imageId_); } public function ShowObserver(){ } public function Create(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ this.x = _arg1; this.y = _arg2; this.tokill_ = _arg4; itemImage_.gotoAndStop(_arg3); this.imageId_ = _arg3; this.addChild(itemImage_); tField.text = String(_arg4); tField.x = ((this.width / 2) - (tField.width / 2)); tField.y = 29; this.addChild(tField); agame_.aboard.puzzleTable_.addChild(this); } public function HideObserver(){ } public function reset():void{ tokill_ = -1; } public function update(_arg1:int){ tokill_ = (tokill_ - _arg1); if (tokill_ < 0){ tokill_ = 0; }; tField.text = String(tokill_); } public function getvalue():int{ return (tokill_); } public function getname():String{ return (""); } } }//package
Section 112
//quake_a (quake_a) package { import flash.display.*; public dynamic class quake_a extends BitmapData { public function quake_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 113
//quake_d (quake_d) package { import flash.display.*; public dynamic class quake_d extends BitmapData { public function quake_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 114
//quake_n (quake_n) package { import flash.display.*; public dynamic class quake_n extends BitmapData { public function quake_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 115
//result_back (result_back) package { import flash.display.*; public dynamic class result_back extends BitmapData { public function result_back(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 116
//resultBoard (resultBoard) package { import flash.events.*; import flash.display.*; import flash.text.*; public class resultBoard extends Sprite { public var agame_:game; public var nFormat:TextFormat; public var time_field:TextField; public var score_field:TextField; public var time_field_cap:TextField; public var deleted_field:TextField; public var lvl_score_field:TextField; private var score_cap:TextField; public var deleted_cap:TextField; public var money_field:TextField; public var aFormat:TextFormat; public var lvl_score_cap:TextField; public var money_cap:TextField; public var ok_field:TextField; public var isVisible:Boolean;// = false static const fontFace:String = "Arial Black"; static const fontColorGreen:Number = 655113; static const fontSize:int = 12; static const fontBold:Boolean = true; static const fontColorRed:Number = 16713993; static const TextYoffset:int = 20; public function resultBoard(_arg1:game){ var _local2:BitmapData; var _local3:Bitmap; isVisible = false; super(); this.agame_ = _arg1; _local2 = new result_back(0, 0); _local3 = new Bitmap(_local2); this.addChild(_local3); aFormat = new TextFormat(); aFormat.font = fontFace; aFormat.size = fontSize; aFormat.bold = fontBold; aFormat.color = fontColorGreen; aFormat.align = "center"; nFormat = new TextFormat(); nFormat.font = fontFace; nFormat.size = fontSize; nFormat.bold = fontBold; nFormat.color = fontColorRed; nFormat.align = "center"; score_cap = new TextField(); score_cap.embedFonts = true; score_cap.selectable = false; score_cap.defaultTextFormat = nFormat; score_cap.autoSize = TextFieldAutoSize.CENTER; score_cap.x = (_local3.width / 2); score_cap.y = TextYoffset; score_cap.mouseEnabled = false; score_cap.text = agame_.translator_.Translate("SCORE")[0]; this.addChild(score_cap); score_field = new TextField(); score_field.embedFonts = true; score_field.selectable = false; score_field.defaultTextFormat = nFormat; score_field.autoSize = TextFieldAutoSize.CENTER; score_field.x = (_local3.width / 2); score_field.y = (score_cap.y + score_cap.height); score_field.mouseEnabled = false; this.addChild(score_field); lvl_score_cap = new TextField(); lvl_score_cap.embedFonts = true; lvl_score_cap.selectable = false; lvl_score_cap.defaultTextFormat = nFormat; lvl_score_cap.autoSize = TextFieldAutoSize.CENTER; lvl_score_cap.x = (_local3.width / 2); lvl_score_cap.y = ((score_field.y + score_field.height) + 30); lvl_score_cap.mouseEnabled = false; lvl_score_cap.text = agame_.translator_.Translate("LEVELSCORE")[0]; this.addChild(lvl_score_cap); lvl_score_field = new TextField(); lvl_score_field.embedFonts = true; lvl_score_field.selectable = false; lvl_score_field.defaultTextFormat = nFormat; lvl_score_field.autoSize = TextFieldAutoSize.CENTER; lvl_score_field.x = (_local3.width / 2); lvl_score_field.y = (lvl_score_cap.y + lvl_score_cap.height); lvl_score_field.mouseEnabled = false; this.addChild(lvl_score_field); time_field_cap = new TextField(); time_field_cap.embedFonts = true; time_field_cap.selectable = false; time_field_cap.defaultTextFormat = nFormat; time_field_cap.autoSize = TextFieldAutoSize.CENTER; time_field_cap.x = (_local3.width / 2); time_field_cap.y = ((lvl_score_field.y + lvl_score_field.height) + 30); time_field_cap.mouseEnabled = false; time_field_cap.text = agame_.translator_.Translate("LEVELTIME")[0]; this.addChild(time_field_cap); time_field = new TextField(); time_field.embedFonts = true; time_field.selectable = false; time_field.defaultTextFormat = nFormat; time_field.autoSize = TextFieldAutoSize.CENTER; time_field.x = (_local3.width / 2); time_field.y = (time_field_cap.y + time_field_cap.height); time_field.mouseEnabled = false; this.addChild(time_field); deleted_cap = new TextField(); deleted_cap.embedFonts = true; deleted_cap.selectable = false; deleted_cap.defaultTextFormat = nFormat; deleted_cap.autoSize = TextFieldAutoSize.CENTER; deleted_cap.x = (_local3.width / 2); deleted_cap.y = ((time_field.y + time_field.height) + 30); deleted_cap.mouseEnabled = false; deleted_cap.text = agame_.translator_.Translate("DELETED")[0]; this.addChild(deleted_cap); deleted_field = new TextField(); deleted_field.embedFonts = true; deleted_field.selectable = false; deleted_field.defaultTextFormat = nFormat; deleted_field.autoSize = TextFieldAutoSize.CENTER; deleted_field.x = (_local3.width / 2); deleted_field.y = (deleted_cap.y + deleted_cap.height); deleted_field.mouseEnabled = false; this.addChild(deleted_field); ok_field = new TextField(); ok_field.embedFonts = true; ok_field.selectable = false; ok_field.defaultTextFormat = nFormat; ok_field.autoSize = TextFieldAutoSize.CENTER; ok_field.x = (_local3.width / 2); ok_field.y = ((this.height - ok_field.height) - 30); ok_field.text = "OK"; score_field.mouseEnabled = true; this.addChild(ok_field); this.x = ((agame_.stage.stageWidth / 2) - (this.width / 2)); this.y = ((agame_.stage.stageHeight / 2) - (this.height / 2)); ok_field.addEventListener(MouseEvent.MOUSE_OVER, OKMouseOn); ok_field.addEventListener(MouseEvent.MOUSE_OUT, OKMouseOut); } public function OKClick(_arg1:MouseEvent){ trace("OK clicked"); if (agame_.CountCellsByState(cell_japan.STATE_IDLE) <= 0){ agame_.CurrentGameState = gameconst.GSTATE_STARTFADE2SHOP; this.removeEventListener(MouseEvent.CLICK, OKClick); RemoveBoard(); }; } public function OKMouseOut(_arg1:MouseEvent){ ok_field.textColor = fontColorRed; trace("OutBoard"); } public function RemoveBoard(){ isVisible = false; agame_.removeChild(this); } public function ShowBoard(){ var _local1:int; var _local2:int; var _local3:String; var _local4:String; isVisible = true; this.addEventListener(MouseEvent.CLICK, OKClick); score_field.text = String(agame_.score_counter.getvalue()); lvl_score_field.text = String(agame_.lev_score_counter.getvalue()); _local1 = Math.floor((agame_.time_counter.getvalue() / 1000)); _local2 = Math.floor((_local1 / 60)); _local1 = (_local1 - (_local2 * 60)); if (_local2 < 10){ _local3 = ("0" + _local2); } else { _local3 = String(_local2); }; if (_local1 < 10){ _local4 = ("0" + _local1); } else { _local4 = String(_local1); }; time_field.text = ((_local3 + ":") + _local4); deleted_field.text = String(agame_.deleted_counter.getvalue()); agame_.addChild(this); } public function OKMouseOn(_arg1:MouseEvent){ ok_field.textColor = fontColorGreen; trace("OnBoard"); } } }//package
Section 117
//Score_Table (Score_Table) package { import flash.display.*; import flash.text.*; public dynamic class Score_Table extends MovieClip { public var scores_tf:TextField; public var dates_tf:TextField; public var names_tf:TextField; public var status_tf:TextField; public var ranks_tf:TextField; } }//package
Section 118
//ScoreCounter (ScoreCounter) package { import flash.display.*; import flash.text.*; public class ScoreCounter extends Sprite implements i_Observer { public var agame_:game; public var caption_:TextField; public var scores_:int; public var tField:TextField; static const fontBold:Boolean = true; static const fontSize:int = 16; static const fontColor:Number = 16713993; static const fontFace:String = "Arial Black"; public function ScoreCounter(_arg1:game, _arg2, _arg3:int){ agame_ = _arg1; this.x = _arg2; this.y = _arg3; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = TextFormats.fmtCounter; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = String(0); caption_ = new TextField(); caption_.embedFonts = true; caption_.selectable = false; caption_.defaultTextFormat = TextFormats.fmtCounter; caption_.autoSize = TextFieldAutoSize.CENTER; caption_.text = agame_.translator_.Translate("SCORE")[0]; caption_.y = -20; this.addChild(caption_); tField.mouseEnabled = false; this.addChild(tField); agame_.addChild(this); } public function reset():void{ scores_ = 0; tField.text = String(scores_); } public function update(_arg1:int){ scores_ = (scores_ + _arg1); tField.text = String(scores_); } public function getvalue():int{ return (scores_); } public function getname():String{ return (""); } } }//package
Section 119
//shelf1_a (shelf1_a) package { import flash.display.*; public dynamic class shelf1_a extends BitmapData { public function shelf1_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 120
//shelf1_n (shelf1_n) package { import flash.display.*; public dynamic class shelf1_n extends BitmapData { public function shelf1_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 121
//shelf2_a (shelf2_a) package { import flash.display.*; public dynamic class shelf2_a extends BitmapData { public function shelf2_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 122
//shelf2_n (shelf2_n) package { import flash.display.*; public dynamic class shelf2_n extends BitmapData { public function shelf2_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 123
//shop_back (shop_back) package { import flash.display.*; public dynamic class shop_back extends BitmapData { public function shop_back(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 124
//shopitem (shopitem) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class shopitem extends Sprite { private var disabledImage_:Bitmap; private var descrField_:MultiText; private var itemprice_:int; private var activeImage_:Bitmap; private var shelf_id_:int; private var parentGame_:game; private var normalImage_:Bitmap; private var heroImageN_:Bitmap; private var priceField_:TextField; private var _itemname:String; private var heroImageA_:Bitmap; public static const SHELF_2:int = 1; static const fontFace:String = "Arial Black"; static const fontColorGreen:Number = 655113; static const fontSize:int = 12; static const fontBold:Boolean = true; public static const SHELF_1:int = 0; static const fontColorRed:Number = 16713993; public function shopitem(_arg1:int, _arg2:int, _arg3:String, _arg4:game){ var _local5:TextFormat; var _local6:Array; super(); if (_arg1 == SHELF_1){ createHeroImages(_arg3); }; descrField_ = new MultiText(_arg4); this.parentGame_ = _arg4; this.shelf_id_ = _arg1; this.itemprice_ = _arg2; this._itemname = _arg3; createUpImage(_arg3); createOverImage(_arg3); createDisabledImage(_arg3); this.addChild(normalImage_); this.addEventListener(MouseEvent.CLICK, itemClick); this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); _local5 = new TextFormat(); _local5.font = fontFace; _local5.size = fontSize; _local5.bold = fontBold; _local5.color = fontColorRed; _local5.align = "center"; priceField_ = new TextField(); priceField_.embedFonts = true; priceField_.selectable = false; priceField_.defaultTextFormat = _local5; priceField_.autoSize = TextFieldAutoSize.CENTER; priceField_.text = String(_arg2); priceField_.mouseEnabled = false; priceField_.y = normalImage_.height; priceField_.x = ((normalImage_.width / 2) - (priceField_.width / 2)); addChild(priceField_); _local6 = _arg4.translator_.Translate(_itemname); descrField_.Create(_local6, _local5, gameconst.DESCRFIELD_X, gameconst.DESCRFIELD_Y); } public function get itemname():String{ return (_itemname); } public function createHeroImages(_arg1:String){ var _local2:Class; var _local3:BitmapData; var _local4:Class; var _local5:BitmapData; _local2 = (getDefinitionByName((_arg1 + "_h_n")) as Class); _local3 = new _local2(0, 0); heroImageN_ = new Bitmap(_local3); _local4 = (getDefinitionByName((_arg1 + "_h_a")) as Class); _local5 = new _local2(0, 0); heroImageA_ = new Bitmap(_local5); } public function itemClick(_arg1:Event){ var _local2:*; trace("Click:", _itemname); _local2 = this.parentGame_.money_counter.getvalue(); if (_local2 >= itemprice_){ if (shelf_id_ == SHELF_2){ this.parentGame_.afactory_game_bonus.UpdateStores(_itemname); } else { if (shelf_id_ == SHELF_1){ this.parentGame_.addClother(this); }; }; this.removeChild(activeImage_); this.addChild(disabledImage_); this.removeEventListener(MouseEvent.MOUSE_OVER, MouseOver); this.removeEventListener(MouseEvent.MOUSE_OUT, MouseOut); this.removeEventListener(MouseEvent.CLICK, itemClick); descrField_.Hide(); this.parentGame_.money_counter.update(-(itemprice_)); this.parentGame_.abonushop.tMoney.text = String(this.parentGame_.money_counter.getvalue()); }; } public function get activeHeroImage():Bitmap{ return (heroImageA_); } public function createOverImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_a")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); activeImage_ = _local4; return (_local4); } public function get normalHeroImage():Bitmap{ return (heroImageN_); } public function MouseOut(_arg1:Event){ this.removeChild(activeImage_); this.addChild(normalImage_); descrField_.Hide(); } public function createDisabledImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_d")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); disabledImage_ = _local4; return (_local4); } public function createUpImage(_arg1:String):Bitmap{ var _local2:Class; var _local3:BitmapData; var _local4:Bitmap; _local2 = (getDefinitionByName((_arg1 + "_n")) as Class); _local3 = new _local2(0, 0); _local4 = new Bitmap(_local3); normalImage_ = _local4; return (_local4); } public function MouseOver(_arg1:Event){ this.removeChild(normalImage_); this.addChild(activeImage_); descrField_.Show(); } } }//package
Section 125
//shopitemfactory (shopitemfactory) package { public class shopitemfactory { public static function CreateItem(_arg1:int, _arg2:int, _arg3:String, _arg4:game):shopitem{ return (new shopitem(_arg1, _arg2, _arg3, _arg4)); } } }//package
Section 126
//SoundFactory (SoundFactory) package { import flash.events.*; import flash.media.*; import flash.utils.*; public class SoundFactory { private var musVolume_:Number;// = 1 private var sndVolume_:Number;// = 0.5 public var musTrans:SoundTransform; private var musicChannel:SoundChannel; public var amusic:Sound; private var sndObjs:Array; private var agame_:game; private var soundChannel:SoundChannel; private var sndClasses:Array; public var sndTrans:SoundTransform; public static const SND_ITEM_DESTROY:int = 3; public static const SND_ITEM_SWAP:int = 1; public static const SND_TOGGLE:int = 4; public static const SND_ITEM_FALL:int = 0; public static const SND_BLACK_HOLE:int = 6; public static const SND_ITEM_RETIRE:int = 2; public static const SND_CLICK:int = 5; public function SoundFactory(_arg1:game){ sndVolume_ = 0.5; musVolume_ = 1; sndClasses = ["item_fall", "item_move", "move_wrong", "item_destroy", "menu_toggle", "menu_click", "bonus_blackhole"]; super(); this.agame_ = _arg1; sndObjs = new Array(); musicChannel = new SoundChannel(); soundChannel = new SoundChannel(); sndTrans = new SoundTransform(); sndTrans.volume = sndVolume_; musTrans = new SoundTransform(); musTrans.volume = 0.2; musicChannel.soundTransform = musTrans; } public function CreateSounds(){ var _local1:int; var _local2:String; var _local3:Class; var _local4:*; amusic = new music1(); _local1 = 0; while (_local1 < sndClasses.length) { _local2 = sndClasses[_local1]; _local3 = (getDefinitionByName(_local2) as Class); _local4 = new (_local3); sndObjs.push(_local4); _local1++; }; playMusic(); } public function stopMusic(){ } public function MusicCompleteHandler(_arg1:Event){ playMusic(); } public function setMusVol(_arg1:Number){ musVolume_ = _arg1; musTrans.volume = musVolume_; musicChannel.soundTransform = musTrans; } public function playSound(_arg1:int){ sndObjs[_arg1].play(0, 0, sndTrans); } public function getSound(_arg1:int){ return (sndObjs[_arg1]); } public function playMusic(){ musicChannel = amusic.play(0, 0, musTrans); musicChannel.addEventListener(Event.SOUND_COMPLETE, MusicCompleteHandler); } public function setSndVol(_arg1:Number){ sndVolume_ = _arg1; sndTrans.volume = sndVolume_; } } }//package
Section 127
//soundItemSelect (soundItemSelect) package { import flash.media.*; public dynamic class soundItemSelect extends Sound { } }//package
Section 128
//Splinter (Splinter) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; public class Splinter extends Sprite { private const GRAVITATION_Y:int = 3; private const LIFETIME_MIN:int = 300; private const LIFETIME_MAX:int = 1000; private const VELOCITY_MIN:int = 2; private const VELOCITY_MAX:int = 5; private var agame_:game; private var start_x_:int; private var starttime_:int; private var start_y_:int; private var partImage:BitmapData; private var livedtime_:int;// = 0 private var velocity_x_:Number; private var velocity_y_:Number; var maskSprite:Sprite; private var abitmap:Bitmap; private var timetolive_:int; public function Splinter(_arg1:game, _arg2, _arg3, _arg4, _arg5:int, _arg6:BitmapData){ var _local7:*; var _local8:int; livedtime_ = 0; maskSprite = new Sprite(); super(); this.agame_ = _arg1; partImage = new BitmapData(_arg4, _arg5); _local7 = ((Math.random() * 10) + 10); _local8 = ((Math.random() * 10) + 10); partImage.copyPixels(_arg6, new Rectangle(_local7, _local8, _arg4, _arg5), new Point(0, 0)); abitmap = new Bitmap(partImage); this.addChild(abitmap); this.start_x_ = (this.x = _arg2); this.start_y_ = (this.y = _arg3); this.alpha = 1; agame_.addChild(this); this.velocity_x_ = ((Math.random() * (VELOCITY_MAX - VELOCITY_MIN)) + VELOCITY_MIN); this.velocity_y_ = ((Math.random() * (VELOCITY_MAX - VELOCITY_MIN)) + VELOCITY_MIN); this.timetolive_ = ((Math.random() * (LIFETIME_MAX - LIFETIME_MIN)) + LIFETIME_MIN); if (Math.random() > 0.5){ this.velocity_x_ = -(this.velocity_x_); }; if (Math.random() > 0.5){ this.velocity_y_ = -(this.velocity_y_); }; starttime_ = getTimer(); this.addEventListener(Event.ENTER_FRAME, SplinterFrame); } public function SplinterFrame(_arg1:Event){ this.livedtime_ = (getTimer() - starttime_); if (this.livedtime_ >= timetolive_){ this.removeEventListener(Event.ENTER_FRAME, SplinterFrame); agame_.removeChild(this); delete ??getglobalscope [this]; } else { this.alpha = (1 - (this.livedtime_ / timetolive_)); this.x = (this.start_x_ + (velocity_x_ * (livedtime_ / 1000))); this.y = (this.start_y_ + (velocity_y_ * (livedtime_ / 1000))); }; } } }//package
Section 129
//sword_a (sword_a) package { import flash.display.*; public dynamic class sword_a extends BitmapData { public function sword_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 130
//sword_d (sword_d) package { import flash.display.*; public dynamic class sword_d extends BitmapData { public function sword_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 131
//sword_n (sword_n) package { import flash.display.*; public dynamic class sword_n extends BitmapData { public function sword_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 132
//sword_p (sword_p) package { import flash.display.*; public dynamic class sword_p extends BitmapData { public function sword_p(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 133
//TextFormats (TextFormats) package { import flash.text.*; public class TextFormats { static const fontColorDarkRed:Number = 0xA00800; static const fontColorDarkDarkRed:Number = 0xA80000; static const fontColorDarkGreen:Number = 565248; static const fontColorRed:Number = 0xFF0000; public static var fmtShopCaps:TextFormat; public static var fmtScore:TextFormat; public static var fmtGameMenu:TextFormat; public static var fmtTimeOutBtn:TextFormat; public static var fmtShopItms:TextFormat; public static var fmtMenuDescr:TextFormat; public static var fmtCounter:TextFormat; public static var fmtSelfCaps:TextFormat; public function TextFormats(){ fmtShopItms = new TextFormat(); fmtShopItms.font = "Arial Black"; fmtShopItms.size = 10; fmtShopItms.bold = false; fmtShopItms.color = fontColorRed; fmtShopItms.align = "center"; fmtShopCaps = new TextFormat(); fmtShopCaps.font = "Arial Black"; fmtShopCaps.size = 10; fmtShopCaps.bold = false; fmtShopCaps.color = fontColorRed; fmtShopCaps.align = "center"; fmtSelfCaps = new TextFormat(); fmtSelfCaps.font = "Arial Black"; fmtSelfCaps.size = 16; fmtSelfCaps.bold = false; fmtSelfCaps.color = fontColorRed; fmtSelfCaps.align = "center"; fmtScore = new TextFormat(); fmtScore.font = "Arial Black"; fmtScore.size = 10; fmtScore.bold = false; fmtScore.color = fontColorRed; fmtScore.align = "center"; fmtCounter = new TextFormat(); fmtCounter.font = "Arial Black"; fmtCounter.size = 12; fmtCounter.bold = true; fmtCounter.color = fontColorDarkRed; fmtCounter.align = "center"; fmtGameMenu = new TextFormat(); fmtGameMenu.font = "Arial Black"; fmtGameMenu.size = 20; fmtGameMenu.bold = true; fmtGameMenu.color = fontColorDarkDarkRed; fmtGameMenu.align = TextFormatAlign.CENTER; fmtTimeOutBtn = new TextFormat(); fmtTimeOutBtn.font = "Arial Black"; fmtTimeOutBtn.size = 22; fmtTimeOutBtn.bold = true; fmtTimeOutBtn.color = fontColorDarkDarkRed; fmtTimeOutBtn.align = TextFormatAlign.CENTER; fmtMenuDescr = new TextFormat(); fmtMenuDescr.font = "Arial Black"; fmtMenuDescr.size = 14; fmtMenuDescr.bold = true; fmtMenuDescr.color = fontColorDarkRed; fmtMenuDescr.align = "center"; } } }//package
Section 134
//TextScoreTable (TextScoreTable) package { import flash.display.*; import flash.text.*; public dynamic class TextScoreTable extends Sprite { private var _max_scores:Number; private var _status:TextField; private var _mc:MovieClip; private var _names:TextField; private var _scores:TextField; private var _dates:TextField; public var _ranks:TextField; public function TextScoreTable(_arg1:MovieClip, _arg2:Number=10){ init(_arg1, _arg2); } public function init(_arg1:MovieClip, _arg2:Number=10):void{ _mc = _arg1; _max_scores = _arg2; _status = _mc.status_tf; _ranks = _mc.ranks_tf; _names = _mc.names_tf; _dates = _mc.dates_tf; _scores = _mc.scores_tf; reset(); } public function msecToDateString(_arg1:Number):String{ var _local2:Date; _local2 = new Date(_arg1); return ([_local2.getFullYear(), (1 + _local2.getMonth()), _local2.getDate()].join("-")); } public function reset(_arg1:String=""):void{ _ranks.text = ""; _names.text = ""; _scores.text = ""; _dates.text = ""; _status.text = _arg1; } public function commafy(_arg1:Number):String{ var _local2:String; var _local3:Array; _local2 = Math.floor(_arg1).toString(); _local3 = []; while (_local2.length > 3) { _local3.unshift(_local2.slice((_local2.length - 3), _local2.length)); _local2 = _local2.slice(0, (_local2.length - 3)); }; _local3.unshift(_local2); return (_local3.join(",")); } public function gotScores(_arg1:Array, _arg2:Number=-1):void{ var _local3:Number; var _local4:String; var _local5:String; var _local6:String; var _local7:String; var _local8:Array; var _local9:Array; var _local10:Array; var _local11:Number; var _local12:DisplayObject; var _local13:Array; var _local14:String; var _local15:String; var _local16:String; var _local17:String; reset(); _local3 = Math.min(_max_scores, _arg1.length); if (_local3 == 0){ this.mc.status_text = "No high scores yet!"; _local12 = this.stage.getChildAt(0); game(_local12).drawScore(_local8, _local9, _local10); return; }; _local4 = ""; _local5 = ""; _local6 = ""; _local7 = ""; _local8 = new Array(); _local9 = new Array(); _local10 = new Array(); _local11 = 0; while (_local11 < _local3) { _local13 = _arg1[_local11]; _local14 = ((_local11 + 1) + "."); if (_local11 == _arg2){ _local14 = ("*" + _local14); }; _local15 = _local13[0]; _local16 = commafy(_local13[1]); _local17 = msecToDateString(_local13[2]); _local8.push(_local14); _local9.push(_local15); _local10.push(_local16); _local4 = (_local4 + (_local14 + "\n")); _local5 = (_local5 + (_local15 + "\n")); _local6 = (_local6 + (_local16 + "\n")); _local7 = (_local7 + (_local17 + "\n")); _local11++; }; _ranks.text = _local4; _names.text = _local5; _scores.text = _local6; _dates.text = _local7; _local12 = this.stage.getChildAt(0); game(_local12).drawScore(_local8, _local9, _local10); } } }//package
Section 135
//TimeBar (TimeBar) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; public class TimeBar { private const POS_EMPTY_X:int = 60; private const POS_EMPTY_Y:int = 7; private const POS_RESULT_X:int = 80; private const POS_RESULT_Y:int = 405; private var fullTime:int;// = 60000 private var bar_full_:Bitmap; private var pauseLength:int;// = 0 private var timeStart:int;// = -1 private var pauseDone:int; private var bar_:Bitmap; private var wasLength:int; private var timePercent:int;// = 0 public var resultSprite:Sprite; private var bar_empty_curr_:Bitmap; private var iceLength:int; private var pauseTime:int;// = 0 private var agame_:game; private var bar_empty_:Bitmap; private var timeDone:int;// = 0 public var paused_:Boolean;// = false private var bar_freeze_:Bitmap; public var time_paused_:Boolean;// = false public function TimeBar(_arg1:game){ var _local2:BitmapData; timeDone = 0; timePercent = 0; fullTime = (60 * 1000); timeStart = -1; pauseTime = 0; pauseLength = 0; paused_ = false; time_paused_ = false; super(); this.resultSprite = new Sprite(); _local2 = new bar_empty(0, 0); this.bar_empty_ = new Bitmap(_local2); this.bar_empty_.y = POS_EMPTY_Y; this.bar_empty_.x = POS_EMPTY_X; _local2 = new bar_full(0, 0); this.bar_full_ = new Bitmap(_local2); this.bar_full_.y = POS_EMPTY_Y; this.bar_full_.x = POS_EMPTY_X; this.bar_empty_curr_ = new Bitmap(_local2); this.bar_empty_curr_.y = POS_EMPTY_Y; this.bar_empty_curr_.x = POS_EMPTY_X; this.resultSprite.addChild(this.bar_empty_); this.resultSprite.addChild(this.bar_empty_curr_); agame_ = _arg1; this.resultSprite.x = POS_RESULT_X; this.resultSprite.y = POS_RESULT_Y; agame_.addChild(this.resultSprite); } public function setFullTime(_arg1:Number){ fullTime = ((_arg1 * 1000) * 60); } public function barEnterframe(_arg1:Event){ var _local2:Number; var _local3:int; if (agame_.isRelax){ return; }; if (wasLength > 0){ iceLength = (getTimer() - pauseDone); if (iceLength < wasLength){ return; }; timeStart = (timeStart + wasLength); wasLength = 0; }; if (timeStart < 0){ timeStart = getTimer(); } else { timeDone = (getTimer() - timeStart); agame_.time_counter.reset(); agame_.time_counter.update(timeDone); _local2 = (timeDone / fullTime); _local3 = (bar_empty_.width * _local2); if (_local2 >= 1){ trace("TimeOut"); this.resultSprite.removeEventListener(Event.ENTER_FRAME, barEnterframe); agame_.aboard.OnTimeOut(); } else { this.resultSprite.removeChild(bar_empty_curr_); bar_empty_curr_ = new Bitmap(new BitmapData((bar_full_.width - _local3), bar_full_.height)); bar_empty_curr_.bitmapData.copyPixels(bar_full_.bitmapData, new Rectangle((0 + _local3), 0, bar_full_.width, bar_full_.height), new Point(0, 0)); bar_empty_curr_.x = (POS_EMPTY_X + _local3); bar_empty_curr_.y = POS_EMPTY_Y; this.resultSprite.addChild(bar_empty_curr_); }; }; } public function PauseByTime(_arg1:int){ time_paused_ = true; if (wasLength == 0){ pauseDone = getTimer(); iceLength = 0; wasLength = _arg1; } else { wasLength = (wasLength + _arg1); }; } public function Terminate(){ this.resultSprite.removeEventListener(Event.ENTER_FRAME, barEnterframe); } public function Resume():void{ paused_ = false; pauseLength = (getTimer() - pauseTime); timeStart = (timeStart + pauseLength); pauseLength = 0; pauseTime = 0; this.resultSprite.addEventListener(Event.ENTER_FRAME, barEnterframe); } public function Pause():void{ paused_ = true; this.resultSprite.removeEventListener(Event.ENTER_FRAME, barEnterframe); pauseTime = getTimer(); } public function Start():void{ if (timeStart == -1){ timeStart = getTimer(); this.resultSprite.addEventListener(Event.ENTER_FRAME, barEnterframe); }; } public function reset():void{ timeDone = 0; timeStart = -1; } } }//package
Section 136
//Translator (Translator) package { import flash.events.*; import flash.net.*; public class Translator { public var agame_:game; private var languageXML:XML; public function Translator(_arg1:game){ this.agame_ = _arg1; } public function Load(){ } private function handleComplete(_arg1:Event):void{ var event = _arg1; try { languageXML = new XML(event.target.data); agame_.AfterTranslator(); } catch(e:TypeError) { trace("Could not parse text into XML"); trace(e.message); }; } public function Translate(_arg1:String):Array{ var _local2:Array; var _local3:int; var _local4:String; var _local5:int; var _local6:String; _local2 = new Array(); _local3 = languageXML.elements(_arg1).elements("*").length(); if (_local3 == 0){ _local4 = languageXML.elements(_arg1); _local2.push(_local4); } else { if (_local3 > 1){ _local5 = 0; while (_local5 < _local3) { _local6 = languageXML.elements(_arg1).elements("*")[_local5]; _local2.push(_local6); _local5++; }; }; }; return (_local2); } public function loadLanguageXmlInt(){ languageXML = <dictionary> <ARCADE> ARCADE </ARCADE> <PUZZLE> PUZZLE </PUZZLE> <PLAYER> PLAYER </PLAYER> <OPTIONS> OPTIONS </OPTIONS> <SCORES> SCORES </SCORES> <GETIT> GET IT </GETIT> <LEVEL> LEVEL </LEVEL> <SCORE> SCORES </SCORE> <LEVELSCORE> LEVEL SCORES </LEVELSCORE> <MONEY> MONEY </MONEY> <FULLTIME> FULL TIME </FULLTIME> <LEVELTIME> LEVEL TIME </LEVELTIME> <DELETED> DELETED </DELETED> <BONUSES> BONUSES </BONUSES> <ARMOURES> ARMOURES </ARMOURES> <helmet> <line>Shuffles all elements</line> <line> on the board.</line> </helmet> <boots> <line>Moves any element </line> <line>in any direction.</line> </boots> <gloves> <line>Destroys a fifth of </line> <line>all elements on the board.</line> </gloves> <x2> <line>a double score bonus </line> <line>for a level.</line> </x2> <quake> <line>Destroys all double </line> <line>elements on the board.</line> </quake> <ice> <line>Freezes time </line> <line>for a limited period.</line> </ice> <flash> <line>Destroys the nearest </line> <line>elements.</line> </flash> <blackhole> <line>Destroys a group of elements </line> <line>from the board.</line> </blackhole> <TIMEOUT> TIME OUT! </TIMEOUT> <GOTOMENU> MENU </GOTOMENU> <RESTARTGAME> RESTART </RESTARTGAME> <RESUME> RESUME </RESUME> <ABORT> ABORT </ABORT> <EXIT> EXIT </EXIT> <SUBMIT> SUBMIT </SUBMIT> <PLAYERNAME> INPUT NAME </PLAYERNAME> <MENU> MENU </MENU> <URLREALORE> http://en.realore.com/games/ageofjapan2/ </URLREALORE> <SOUNDVOL> SOUND VOLUME </SOUNDVOL> <MUSICVOL> MUSIC VOLUME </MUSICVOL> <OK> EXIT </OK> <LOADING> LOADING... </LOADING> <CONTINUE> CONTINUE </CONTINUE> <RELAX> RELAX </RELAX> <DESCRARCADE> <line>Playing Arcade mode you must destroy</line> <line>all the mounts during fixed period of time.</line> <line>Mounts can be destroyed if you make </line> <line> triple or more same elements combination.</line> </DESCRARCADE> <DESCRPUZZLE> <line>Playing Puzzle mode you must</line> <line>get sufficient elements. </line> </DESCRPUZZLE> <DESCRPLAYER> <line>Here you can change your</line> <line>name or nick name.</line> </DESCRPLAYER> <DESCROPTIONS> Music and sound options. </DESCROPTIONS> <DESCRSCORES> Scores. </DESCRSCORES> <DESCRGETIT> <line>Buy full version of the game.</line> <line>Get new levels and bonuses.</line> </DESCRGETIT> <DESCRRELAX> <line>Relaxed mode. No time mode, </line> <line>no scores. Just play and relax.</line> </DESCRRELAX> </dictionary> ; agame_.AfterTranslator(); } public function loadLanguageXml(){ var _local1:URLLoader; _local1 = new URLLoader(); _local1.dataFormat = URLLoaderDataFormat.TEXT; _local1.addEventListener(Event.COMPLETE, handleComplete); _local1.load(new URLRequest("translate.xml")); } } }//package
Section 137
//unVisibleCounter (unVisibleCounter) package { public class unVisibleCounter implements i_Observer { private var counter_name_:String; private var counter_data_:int; public function getname():String{ return (counter_name_); } public function update(_arg1:int){ counter_data_ = (counter_data_ + _arg1); } public function getvalue():int{ return (counter_data_); } public function setname(_arg1:String){ counter_name_ = _arg1; } public function reset():void{ counter_data_ = 0; } } }//package
Section 138
//x2_a (x2_a) package { import flash.display.*; public dynamic class x2_a extends BitmapData { public function x2_a(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 139
//x2_d (x2_d) package { import flash.display.*; public dynamic class x2_d extends BitmapData { public function x2_d(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 140
//x2_n (x2_n) package { import flash.display.*; public dynamic class x2_n extends BitmapData { public function x2_n(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package

Library Items

Symbol 1 Sound {soundItemSelect}
Symbol 2 Sound {move_wrong}
Symbol 3 Sound {menu_toggle}
Symbol 4 Sound {menu_click}
Symbol 5 Sound {item_move}
Symbol 6 Sound {item_fall}
Symbol 7 Sound {item_destroy}
Symbol 8 Sound {bonus_blackhole}
Symbol 9 Bitmap {fx_flash_hor_bmp}Used by:10
Symbol 10 MovieClip {fx_flash_hor}Uses:9
Symbol 11 FontUsed by:12 13 14 15 16 17
Symbol 12 EditableTextUses:11Used by:18
Symbol 13 EditableTextUses:11Used by:18
Symbol 14 EditableTextUses:11Used by:18
Symbol 15 EditableTextUses:11Used by:18
Symbol 16 EditableTextUses:11Used by:18
Symbol 17 EditableTextUses:11Used by:18
Symbol 18 MovieClip {Score_Table}Uses:12 13 14 15 16 17Used by:117
Symbol 19 Bitmap {btn_broken_rect}Used by:117
Symbol 20 Bitmap {btn_double_rect}Used by:117
Symbol 21 Bitmap {btn_single_rect}Used by:117
Symbol 22 Bitmap {flag}Used by:117
Symbol 23 Bitmap {hero}Used by:117
Symbol 24 Bitmap {hero_fon}Used by:117
Symbol 25 Bitmap {mainmenu_back}Used by:113 117
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:28
Symbol 28 MovieClip {puzzle_table}Uses:27Used by:117
Symbol 29 Bitmap {blackhole_a}Used by:117
Symbol 30 Bitmap {blackhole_d}Used by:117
Symbol 31 Bitmap {blackhole_n}Used by:117
Symbol 32 Bitmap {bomb_a}Used by:117
Symbol 33 Bitmap {bomb_d}Used by:117
Symbol 34 Bitmap {bomb_n}Used by:117
Symbol 35 Bitmap {boots_a}Used by:117
Symbol 36 Bitmap {boots_d}Used by:117
Symbol 37 Bitmap {boots_h_a}Used by:117
Symbol 38 Bitmap {boots_h_n}Used by:117
Symbol 39 Bitmap {boots_n}Used by:117
Symbol 40 Bitmap {boots_p}Used by:117
Symbol 41 Bitmap {flash_a}Used by:117
Symbol 42 Bitmap {flash_d}Used by:117
Symbol 43 Bitmap {flash_n}Used by:117
Symbol 44 Bitmap {gloves_a}Used by:117
Symbol 45 Bitmap {gloves_d}Used by:117
Symbol 46 Bitmap {gloves_h_a}Used by:117
Symbol 47 Bitmap {gloves_h_n}Used by:117
Symbol 48 Bitmap {gloves_n}Used by:117
Symbol 49 Bitmap {gloves_p}Used by:117
Symbol 50 Bitmap {helmet_a}Used by:117
Symbol 51 Bitmap {helmet_d}Used by:117
Symbol 52 Bitmap {helmet_h_a}Used by:117
Symbol 53 Bitmap {helmet_h_n}Used by:117
Symbol 54 Bitmap {helmet_n}Used by:117
Symbol 55 Bitmap {helmet_p}Used by:117
Symbol 56 Bitmap {ice_a}Used by:117
Symbol 57 Bitmap {ice_d}Used by:117
Symbol 58 Bitmap {ice_n}Used by:117
Symbol 59 Bitmap {power_a}Used by:117
Symbol 60 Bitmap {power_d}Used by:117
Symbol 61 Bitmap {power_n}Used by:117
Symbol 62 Bitmap {quake_a}Used by:117
Symbol 63 Bitmap {quake_d}Used by:117
Symbol 64 Bitmap {quake_n}Used by:117
Symbol 65 Bitmap {shelf1_a}Used by:117
Symbol 66 Bitmap {shelf1_n}Used by:117
Symbol 67 Bitmap {shelf2_a}Used by:117
Symbol 68 Bitmap {shelf2_n}Used by:117
Symbol 69 Bitmap {shop_back}Used by:117
Symbol 70 Bitmap {sword_a}Used by:117
Symbol 71 Bitmap {sword_d}Used by:117
Symbol 72 Bitmap {sword_n}Used by:117
Symbol 73 Bitmap {sword_p}Used by:117
Symbol 74 Bitmap {x2_a}Used by:117
Symbol 75 Bitmap {x2_d}Used by:117
Symbol 76 Bitmap {x2_n}Used by:117
Symbol 77 Bitmap {back_1}Used by:117
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:98
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:98
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:98
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:98
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:98
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:98
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:98
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:98
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:98
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:98
Symbol 98 MovieClip {GameItemSkin}Uses:79 81 83 85 87 89 91 93 95 97Used by:117
Symbol 99 Bitmap {mouse_sword}Used by:117
Symbol 100 Bitmap {bar_empty}Used by:117
Symbol 101 Bitmap {bar_frozen}Used by:117
Symbol 102 Bitmap {bar_full}Used by:117
Symbol 103 Bitmap {btn_clothe_mask}Used by:117
Symbol 104 Bitmap {btn_clother_border}Used by:117
Symbol 105 GraphicUsed by:107
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClip {btn_frame}Uses:105 106Used by:117
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClip {btn_hit}Uses:108Used by:110 117
Symbol 110 MovieClip {btn_frame_area}Uses:109Used by:117
Symbol 111 Bitmap {pbar_n_empty}Used by:117
Symbol 112 Bitmap {pbar_n_full}Used by:117
Symbol 113 MovieClip {loading_back}Uses:25Used by:117
Symbol 114 Bitmap {result_back}Used by:117
Symbol 115 Font {AFont}Used by:116
Symbol 116 EditableTextUses:115Used by:117
Symbol 117 MovieClip {Loading}Uses:19 20 21 22 23 24 25 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 98 99 100 101 102 103 104 107 110 111 112 18 113 109 114 116Used by:Timeline
Symbol 118 Sound {music1}Used by:Timeline

Instance Names

"loading"Frame 2Symbol 117 MovieClip {Loading}
"ranks_tf"Symbol 18 MovieClip {Score_Table} Frame 1Symbol 13 EditableText
"names_tf"Symbol 18 MovieClip {Score_Table} Frame 1Symbol 14 EditableText
"scores_tf"Symbol 18 MovieClip {Score_Table} Frame 1Symbol 15 EditableText
"status_tf"Symbol 18 MovieClip {Score_Table} Frame 1Symbol 16 EditableText
"dates_tf"Symbol 18 MovieClip {Score_Table} Frame 1Symbol 17 EditableText

Special Tags

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




http://swfchan.com/10/48154/info.shtml
Created: 30/4 -2019 12:01:37 Last modified: 30/4 -2019 12:01:37 Server time: 22/12 -2024 09:18:26