text: function Component(a,b){this.initialize(),this.setSize(a,b)}function ComponentManager(){this.list=[]}function SpriteBase(a){this._sheet=new createjs.SpriteSheet(a),this.initialize(this._sheet)}function Heroes(a){this.__proto__=new SpriteBase(a),this.gotoAndPlay("run"),this.regX=100,this.regY=90,this.isArr=!1,this.player=!1,this.isDeath=!1,this.att=function(){if(!this.isArr){this.isArr=!0,this.gotoAndPlay("att");var a=this;setTimeout(function(){a.isArr=!1},400)}},this.death=function(){this.gotoAndPlay("death")}}function InfoView(){this.initUI()}function Shake(a){this.target=a,this.shakeX=0,this.shakeY=0,this.time=0,this.start=function(a,b){var c,d;this.time=0,c=null!=a?a:0,d=null!=b?b:0,this.shakeX=this.target.x,this.skakeY=this.target.y,this.target.x=this.shakeX-c,this.target.y=this.shakeY-3*d,this.target.addEventListener("tick",this.enterFrameEvent)},this.enterFrame=function(){this.time++,this.target.x+=1.7*(this.shakeX-this.target.x),this.target.y+=1.7*(this.shakeY-this.target.y),this.time>=15&&this.target.removeEventListener("tick",this.enterFrameEvent)},this.enterFrameEvent=getProxy(this,this.enterFrame)}function GameView(){App.Score=0,App.DESC="点击屏幕中刺客角色出现的方位，即可击杀BOSS。",this.initUI()}function GameManager(a){this.root=a,this.height=this.width=0,this.speed=15,this.enterFrameEvent=getProxy(this,this.enterFrame),this.isStart=!1,this.effect=new SpriteBase(GameItemLib.effect),this.effect.gotoAndStop(7),this.effect.x=210,this.isClick=!1,this.isGameOver=!1}function GameScore(a){App.GameManager.add(this),this.initUI(a)}function GameCount(){this.game=null,this.initUI()}function BackgroundSapre(){this.__proto__=new Component(800,960),this.backgroundBG=new createjs.Shape,this.addChild(this.backgroundBG),this.colorF=0,this.p=1,this.f=1,this.cloud_list=[],this.createCloud=function(){var a=new SpriteBase(GameItemLib.cloud);a.gotoAndStop(Math.random()>.5?0:1),a.check=function(){this.x<-(this.getTransformedBounds().width+20)&&this.reset()},a.reset=function(){this.speed=10*Math.random()+2,this.x=80*Math.random()+720,this.gotoAndStop(Math.random()>.5?0:1),this.y=Math.floor(200*Math.random()+100)},a.reset(),a.x=640*Math.random(),this.addChild(a),this.cloud_list.push(a)},this.createCloud(),this.createCloud(),this.createCloud(),this.RGBToHex=function(a){var b=a.toString(16);return b.length<2&&(b="0"+b),"#66"+b+"FF"},this.start=function(){this.addEventListener("tick",this.enterFrameEvent)},this.stop=function(){this.removeEventListener("tick",this.enterFrameEvent)},this.StageHeight=0,this.enterFrame=function(){var a,b;for(a in this.cloud_list)b=this.cloud_list[a],b.x-=b.speed,b.check();this.colorF-=this.p*this.f,(this.colorF>=255||this.colorF<=0)&&(this.f*=-1),this.colorF-=this.p*this.f,this.backgroundBG.graphics.clear(),this.backgroundBG.graphics.beginLinearGradientFill([this.RGBToHex(this.colorF),"#FFFFFF"],[0,1],0,0,0,this.StageHeight/2).drawRect(-80,-100,800,this.StageHeight+100)},this.resize=function(a,b){this.StageHeight=b},this.enterFrameEvent=getProxy(this,this.enterFrame)}function GameOverView(){this.initUI()}var gameLib,gameImages,createjs,ITEM_0,ITEM_1,ITEM_2,ITEM_3,ITEM_4,ITEM_5,GameItemLib,InfoItemLib;!function(a){a.properties={width:640,height:960,fps:30,color:"#FFFFFF",manifest:[{src:"images/item_0.png",id:"item_0"},{src:"images/item_1.png",id:"item_1"},{src:"images/item_2.png",id:"item_2"},{src:"images/item_3.png",id:"item_3"},{src:"images/item_4.png",id:"item_4"},{src:"images/item_5.png",id:"item_5"}]}}(gameLib=gameLib||{},gameImages=gameImages||{},createjs=createjs||{}),ITEM_0={images:["images/item_0.png"],frames:[[658,719,169,86,0,0,-7],[658,719,169,86,0,0,-7],[342,790,161,86,0,-8,-7],[342,790,161,86,0,-8,-7],[827,719,162,89,0,-7,0],[827,719,162,89,0,-7,0],[827,719,162,89,0,-7,0],[0,767,169,83,0,0,-6],[0,767,169,83,0,0,-6],[0,850,159,81,0,-10,-12],[0,850,159,81,0,-10,-12],[808,808,149,87,0,-20,-6],[808,808,149,87,0,-20,-6],[658,805,150,87,0,-19,0],[658,805,150,87,0,-19,0],[658,805,150,87,0,-19,0],[169,805,164,83,0,-5,-5],[169,805,164,83,0,-5,-5],[0,341,257,133,0,0,-21],[0,341,257,133,0,0,-21],[671,314,255,136,0,-1,-17],[671,314,255,136,0,-1,-17],[0,198,255,143,0,0,0],[0,198,255,143,0,0,0],[0,198,255,143,0,0,0],[507,450,255,131,0,0,-12],[507,450,255,131,0,0,-12],[342,678,172,112,0,0,14],[671,174,266,140,0,-15,22],[0,520,270,118,0,-18,2],[187,678,155,127,0,0,4],[384,174,287,212,0,-14,45],[270,581,264,97,0,-23,0],[384,0,413,174,0,0,5],[0,0,384,198,0,-2,26],[503,845,122,102,0,0,-42],[797,0,185,146,0,0,0],[0,638,187,129,0,-3,-15],[0,638,187,129,0,-3,-15],[723,588,188,131,0,-1,-12],[723,588,188,131,0,-1,-12],[762,450,188,138,0,-1,0],[762,450,188,138,0,-1,0],[762,450,188,138,0,-1,0],[534,581,189,131,0,0,-7],[534,581,189,131,0,0,-7],[257,386,250,134,0,-42,-5],[514,712,144,133,0,-62,-5],[255,198,126,130,0,-51,0]]},ITEM_1={images:["images/item_1.png"],frames:[[0,0,800,234,0,0,0],[0,234,800,234,0,0,0],[0,468,800,230,0,0,0],[558,699,385,122,0,0,-1],[801,0,162,72,0,0,0],[741,936,227,76,0,114,38],[272,906,234,86,0,0,0],[506,936,234,86,0,0,0],[0,807,558,99,0,279,47],[0,698,534,109,0,267,52],[558,821,282,115,0,141,55],[0,906,272,117,0,136,56]]},ITEM_2={images:["images/item_2.png"],frames:[[745,702,214,183,0,-104.75,-211],[485,0,344,413,0,-48.75,-29],[0,492,446,512,0,4.25,26],[0,0,485,492,0,26.25,14],[485,413,319,289,0,26.25,0],[446,702,299,288,0,4.25,-17],[804,537,62,67,0,8.25,-134],[0,0,0,0,0,.25,0],[829,248,91,124,0,45.25,62],[804,413,57,124,0,28.25,62],[829,124,93,124,0,46.25,62],[922,124,90,124,0,45.25,62],[829,0,97,124,0,48.25,62],[925,885,89,124,0,44.25,62],[926,0,93,124,0,46.25,62],[920,248,90,124,0,45.25,62],[745,885,90,124,0,45.25,62],[835,885,90,124,0,45.25,62]]},ITEM_3={images:["images/item_3.png"],frames:[[0,0,538,607,0,269,303.5],[0,607,538,156,0,269,75.5]]},ITEM_4={images:["images/item_4.png"],frames:[[0,0,554,544,0,277,272]]},ITEM_5={images:["images/item_5.png"],frames:[[1,1,519,526,0,228,184.55],[1,528,138,42,0,67,22.55000000000001]]},GameItemLib={},InfoItemLib={},InfoItemLib.tips={images:ITEM_3.images,frames:ITEM_3.frames.slice(0,1)},InfoItemLib.tgideas={images:ITEM_1.images,frames:ITEM_1.frames.slice(5,6)},InfoItemLib.startGame={images:ITEM_3.images,frames:ITEM_3.frames.slice(1,2)},InfoItemLib.score={images:ITEM_2.images,frames:ITEM_2.frames.slice(8,18)},InfoItemLib.gameOverTips={images:ITEM_5.images,frames:ITEM_5.frames},InfoItemLib.gameOverPlaen={images:ITEM_4.images,frames:ITEM_4.frames},InfoItemLib.gameOverback={images:ITEM_1.images,frames:ITEM_1.frames.slice(8,9)},InfoItemLib.gameOverRegame={images:ITEM_1.images,frames:ITEM_1.frames.slice(10,11)},InfoItemLib.gameOverShare={images:ITEM_1.images,frames:ITEM_1.frames.slice(11,12)},InfoItemLib.gameOverIngame={images:ITEM_1.images,frames:ITEM_1.frames.slice(9,10)},InfoItemLib.infoTips={images:ITEM_1.images,frames:ITEM_1.frames.slice(6,8)},GameItemLib.foot={images:ITEM_1.images,frames:ITEM_1.frames.slice(0,2),animations:{loop:{frames:[0,1],next:"loop",speed:.5}}},GameItemLib.foot_0={images:ITEM_1.images,frames:ITEM_1.frames.slice(2,3)},GameItemLib.Heroes_0={images:ITEM_0.images,frames:ITEM_0.frames.slice(0,18).concat(ITEM_0.frames.slice(27,33)).concat(ITEM_0.frames.slice(35,36)),animations:{run:{frames:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],next:"run",speed:1},att:{frames:[18,19,20,21,22,23],next:"run",speed:.5},death:{frames:[24],next:null,speed:1}}},GameItemLib.Boss_0={images:ITEM_0.images,frames:ITEM_0.frames.slice(18,27).concat(ITEM_0.frames.slice(33,35)).concat(ITEM_0.frames.slice(36,37)),animations:{run:{frames:[0,1,2,3,4,5,6,7],next:"run",speed:1},att:{frames:[8,9],next:"run",speed:.3},death:{frames:[10],next:null,speed:1}}},GameItemLib.Boss_1={images:ITEM_0.images,frames:ITEM_0.frames.slice(37,46).concat(ITEM_0.frames.slice(46,48)).concat(ITEM_0.frames.slice(48,49)),animations:{run:{frames:[0,1,2,3,4,5,6,7],next:"run",speed:1},att:{frames:[8,9],next:"run",speed:.2},death:{frames:[10],next:null,speed:1}}},GameItemLib.effect={images:ITEM_2.images,frames:ITEM_2.frames.slice(0,8),animations:{effect:{frames:[0,1,2,3,4,5,6,7],next:"",speed:.5}}},GameItemLib.cloud={images:ITEM_1.images,frames:ITEM_1.frames.slice(3,5)},Component.prototype=new createjs.Container,Component.prototype.container_init=Component.prototype.initialize,Component.prototype.initialize=function(){this.container_init()},Component.prototype.setSize=function(a,b){this.nominalBounds=new createjs.Rectangle(0,0,a,b)},Component.prototype.resize=function(){},Component.prototype.setMove=function(a,b){this.x=a,this.y=b},ComponentManager._interfac=null,ComponentManager.getInterface=function(){return null==ComponentManager._interfac?ComponentManager._interfac=new ComponentManager:ComponentManager._interfac},ComponentManager.prototype.removeAll=function(){},ComponentManager.prototype.add=function(a){this.list.push(a)},ComponentManager.prototype.remove=function(a){var b=this.list.indexOf(a);-1!=b&&this.list.splice(b,1)},ComponentManager.prototype.resize=function(a,b){for(var c in this.list)this.list[c]&&this.list[c].resize&&(this.list[c].parent?this.list[c].resize(a,b):this.remove(this.list[c]))},SpriteBase.prototype=new createjs.Sprite,SpriteBase.prototype.sprite_init=SpriteBase.prototype.initialize,SpriteBase.prototype.initialize=function(a){this.sprite_init(a),this.paused=!1},InfoView.prototype=new Component(640,960),InfoView.prototype.initUI=function(){var a=this;this.tips=new SpriteBase(InfoItemLib.tips),this.tips.gotoAndStop(0),this.addChild(this.tips),this.startGameBtn=new SpriteBase(InfoItemLib.startGame),this.startGameBtn.gotoAndStop(0),new createjs.ButtonHelper(this),this.startGameBtn.addEventListener("click",function(){App.GameManager.remove(a),App.getInterface().root.removeAllChildren();var b=new GameView;App.getInterface().root.addChild(b),App.GameManager.add(b),resizeCanvas(),onButtonEvent("start_name")}),this.addChild(this.startGameBtn),this.addChild(this.bu),this.tgideas=new SpriteBase(ITEM_5),this.tgideas.gotoAndStop(1),this.addChild(this.tgideas)},InfoView.prototype.resize=function(a,b){this.tips&&(this.tips.y=b/2-90,this.startGameBtn.x=this.tips.x=320,this.startGameBtn.y=this.tips.y+360,this.startGameBtn.x-269,this.startGameBtn.y-60.5,this.tgideas.x=320,this.tgideas.y=b-80)},GameManager.prototype.leftAtt=function(){var a,b;this.isGameOver||this.isClick||this.left&&!this.left.isDeath&&(this.left.att(),a=this.right.x-this.speed-(this.left.x+this.speed),300>a&&(this.isClick=!0,this.effect.x=this.right.x-150,this.right.isDeath=!0,this.right.death(),b=this.right,new Shake(this.root).start(5,5),createjs.Tween.get(this.right).to({x:750,y:160,rotation:720},400).call(function(){b.parent&&b.parent.removeChild(b)}),this.effect.gotoAndPlay("effect"),this.right.player?this.gameOver():this.root.scoreView.setScore(++this.root.score)))},GameManager.prototype.rightAtt=function(){var a,b;this.isGameOver||this.isClick||this.right&&!this.right.isDeath&&(this.right.att(),a=this.right.x-this.speed-(this.left.x+this.speed),300>a&&(this.isClick=!0,this.effect.x=this.left.x-210,this.left.isDeath=!0,this.left.death(),b=this.left,new Shake(this.root).start(5,5),createjs.Tween.get(this.left).to({x:-202,y:160,rotation:720},400).call(function(){b.parent&&b.parent.removeChild(b)}),this.effect.gotoAndPlay("effect"),this.left.player?this.gameOver():this.root.scoreView.setScore(++this.root.score)))},GameScore.prototype=new Component(300,300),GameScore.prototype.initUI=function(a){var b,c;for(this.back=new createjs.Shape,this.back.graphics.clear().beginFill("#ffffff").drawCircle(0,0,113),null==a&&this.addChild(this.back),this.content=new createjs.Container,this.addChild(this.content),b=0;3>b;b++)c=new SpriteBase(InfoItemLib.score),c.x=95*b,c.gotoAndStop(0),c.tid=0,c.gotoAndStop(0),c.visible=1>b,this.content.addChild(c),this.content["num_"+b]=c},GameScore.prototype.clearBackground=function(){this.back.graphics.clear()},GameScore.prototype.setScore=function(a){var c,d,e,b=a.toString();for(c=0;3>c;c++)d=this.content["num_"+c],d.visible=c<b.length,d.visible&&(e=Number(b.charAt(c)),d.gotoAndStop(e),d.scaleX=d.scaleY=2,d.alpha=0,createjs.Tween.get(d).to({scaleX:1,scaleY:1,alpha:1},200));this.content.x=(285-95*b.length)/2-95},GameScore.prototype.resize=function(){this.x=320,this.y=123},GameCount.prototype=new Component(640,960),GameCount.prototype.initUI=function(){var a,b;this.player=new Heroes(GameItemLib.Heroes_0),this.player.gotoAndPlay("run"),this.player.x=150,this.addChild(this.player),this.boos=new Heroes(GameItemLib.Boss_0),this.boos.gotoAndPlay("run"),this.boos.scaleX=-1,this.boos.x=480,this.addChild(this.boos),this.left=new createjs.Shape,this.addChild(this.left),this.left.alpha=.5,this.right=new createjs.Shape,this.addChild(this.right),this.right.alpha=.5,this.leftTxt=new SpriteBase(InfoItemLib.infoTips),this.leftTxt.gotoAndStop(1),this.leftTxt.x=60,this.leftTxt.y=150,this.leftTxt.alpha=0,this.rightTxt=new SpriteBase(InfoItemLib.infoTips),this.rightTxt.gotoAndStop(0),this.rightTxt.x=380,this.rightTxt.y=150,this.rightTxt.alpha=0,this.addChild(this.rightTxt),this.addChild(this.leftTxt),new createjs.ButtonHelper(this),a=1,b=this,this.addEventListener("click",function(){b.show(a),a++}),this.show(0)},GameCount.prototype.resize=function(a,b){this.player.y=b-450-10,this.boos.y=b-450-65,this.left.graphics.clear().beginFill("#0").drawRect(-80,0,400,b),this.right.graphics.clear().beginFill("#0").drawRect(320,0,400,b)},GameCount.prototype.show=function(a){if(0==a)createjs.Tween.get(this.left).to({alpha:.01},400),createjs.Tween.get(this.leftTxt).to({alpha:1},400),createjs.Tween.get(this.right).to({alpha:.5},400);else if(1==a)this.player.att(),createjs.Tween.get(this.left).to({alpha:.5},400),createjs.Tween.get(this.leftTxt).to({alpha:0},400),createjs.Tween.get(this.rightTxt).to({alpha:1},400),createjs.Tween.get(this.right).to({alpha:.01},400);else if(null==this.isNext){this.isNext=!0,this.boos.att();var b=this;setTimeout(function(){b.removeAllChildren(),App.GameManager.remove(b),b.parent.removeChild(b),b.game.createMonster()},1e3)}},GameManager.prototype.gameOver=function(){this.root.removeEventListener("tick",this.enterFrameEvent),this.isGameOver=!0;var a=this;App.Score=a.root.score,setTimeout(function(){this.left=null,this.right=null,App.getInterface().root.removeAllChildren(),a.root.removeAllChildren(),App.getInterface().root.removeAllChildren();var b=new GameOverView;App.GameManager.remove(a.root),App.GameManager.add(b),App.getInterface().root.addChild(b),resizeCanvas()},2e3)},GameManager.prototype.reGame=function(){this.isGameOver=!1,this.createMonster()},GameManager.prototype.enterFrame=function(){var b;this.isStart&&(this.left.isDeath||(this.left.x+=this.speed),this.right.isDeath||(this.right.x+=-this.speed),!this.left.isDeath&&!this.right.isDeath&&this.right.x-this.left.x<70?(this.isStart=!1,this.effect.gotoAndPlay("effect"),new Shake(this.root).start(5,5),this.left.player?(this.rightAtt(),b=this.left,this.effect.x=this.left.x-210,setTimeout(function(){b&&(b.death(),createjs.Tween.get(b).to({y:160,x:-200,rotation:720},400))},200)):(this.leftAtt(),this.effect.x=this.right.x-150,b=this.right,setTimeout(function(){b&&(b.death(),createjs.Tween.get(b).to({y:160,x:740,rotation:720},400))},200)),this.isClick=!0,this.gameOver()):(this.left.isDeath&&this.right.x<-90&&(this.root.removeEventListener("tick",this.enterFrameEvent),this.root.removeChild(this.right),this.createMonster()),this.right.isDeath&&this.left.x>762&&(this.root.removeEventListener("tick",this.enterFrameEvent),this.root.removeChild(this.left),this.createMonster())))},GameManager.prototype.createMonster=function(){var a,b,c,d;this.root.scoreView.visible=!0,this.isClick=!1,a=Math.random()>.5,b=new Heroes(GameItemLib["Heroes_0"],a),b.player=!0,this.root.addChild(b),b.y=this.height-450-10,c=Math.random()>.5?0:1,d=new Heroes(GameItemLib["Boss_"+c],a),this.root.addChild(d),d.y=this.height-450-(0==c?65:55),a?(this.left=b,this.right=d):(this.left=d,this.right=b),this.right.scaleX=-1,this.right.x=762+50*Math.random(),this.left.x=-(90+50*Math.random()),this.root.addEventListener("tick",this.enterFrameEvent),this.isStart=!0,this.root.addChild(this.effect),this.speed+=.5},GameManager.prototype.resize=function(a,b){this.width=a,this.height=b,this.effect.y=this.height-450-320},GameView.prototype=new Component(640,960),GameView.prototype.resize=function(a,b){this.footView&&(this.footView.y=b-450,this.gameManager.resize(a,b),this.backgroundBG.resize(a,b),this.gameCount&&this.gameCount.resize(a,b),this.scoreView.resize(a,b))},GameView.prototype.initUI=function(){var a=this;this.backgroundBG=new BackgroundSapre,this.backgroundBG.start(),this.addChild(this.backgroundBG),this.footView=new Component(706,464),this.addChild(this.footView),this.footView.foot=new SpriteBase(GameItemLib.foot),this.footView.foot.gotoAndPlay("loop"),this.footView.foot.y=229,this.footView.x=-80,this.footView.foot1=new SpriteBase(GameItemLib.foot_0),this.footView.addChild(this.footView.foot),this.footView.addChild(this.footView.foot1),this.gameManager=new GameManager(this),this.leftButton=new createjs.Shape,this.leftButton.graphics.beginFill("#0").drawRect(-33,0,353,960),this.leftButton.alpha=.01,this.rightButton=new createjs.Shape,this.rightButton.graphics.beginFill("#0").drawRect(320,0,353,960),this.rightButton.alpha=.01,this.scoreView=new GameScore,this.scoreView.visible=!1,this.score=0,this.addChild(this.scoreView),new createjs.ButtonHelper(this),this.leftButton.addEventListener("mousedown",function(){a.gameManager.leftAtt()}),this.rightButton.addEventListener("mousedown",function(){a.gameManager.rightAtt()}),this.addChild(this.leftButton),this.addChild(this.rightButton),null==App.isInfo?(App.isInfo=!0,this.gameCount=new GameCount,this.gameCount.game=this.gameManager):setTimeout(function(){a.gameManager.createMonster()},1e3),this.addChild(this.gameCount),resizeCanvas()},GameView.prototype.startGame=function(){},GameOverView.prototype=new Component(640,960),GameOverView.prototype.initUI=function(){this.page0()},GameOverView.prototype.page1=function(){this.content=null,this.removeAllChildren(),this.contentEnd=new Component(640,960),this.addChild(this.contentEnd),this.contentEnd.tips=new SpriteBase(InfoItemLib.gameOverTips),this.contentEnd.tips.gotoAndStop(0),this.contentEnd.addChild(this.contentEnd.tips),this.contentEnd.tips.y=210,this.contentEnd.backBun=new SpriteBase(InfoItemLib.gameOverback),new createjs.ButtonHelper(this.contentEnd),this.contentEnd.backBun.gotoAndStop(5),this.contentEnd.addChild(this.contentEnd.backBun),this.addChild(this.tgideas),new createjs.ButtonHelper(this.contentEnd);var a=this;this.contentEnd.backBun.addEventListener("click",function(){a.page0()}),resizeCanvas()},GameOverView.prototype.page0=function(){var a,b,c,d;for(this.removeAllChildren(),this.tgideas=new SpriteBase(InfoItemLib.tgideas),this.addChild(this.tgideas),this.content=new Component(640,960),this.content.plane=new SpriteBase(InfoItemLib.gameOverPlaen),this.content.regame=new SpriteBase(InfoItemLib.gameOverRegame),this.content.plane.y=277,this.content.share=new SpriteBase(InfoItemLib.gameOverShare),this.content.share.gotoAndStop(2),this.content.ingame=new SpriteBase(InfoItemLib.gameOverIngame),this.content.ingame.gotoAndStop(3),new createjs.ButtonHelper(this.content),this.content.addChild(this.content.plane),this.content.addChild(this.content.regame),this.content.addChild(this.content.share),this.content.addChild(this.content.ingame),this.content.score=new Component(300,300),this.content.addChild(this.content.score),a=0;3>a;a++)b=new SpriteBase(InfoItemLib.score),b.x=95*a,b.gotoAndStop(0),b.tid=0,b.gotoAndStop(0),b.visible=1>a,this.content.score.addChild(b),this.content.score["num_"+a]=b;this.content.score.y=250,this.addChild(this.content),c=0,c=App.Score/60,c=c>1?.99:c,App.DESC="我居然击杀了"+App.Score+"个BOSS，击败了"+Math.floor(100*c)+"%的人！你也来试试！",this.setScore(App.Score),d=this,this.content.regame.addEventListener("click",function(){App.GameManager=new ComponentManager,App.getInterface().root.removeAllChildren();var a=new GameView;App.GameManager.add(a),App.getInterface().root.addChild(a),resizeCanvas(),onButtonEvent("reset_game")}),this.content.ingame.addEventListener("click",function(){onButtonEvent("in_ttxd"),window.location="index.html"}),this.content.share.addEventListener("click",function(){onButtonEvent("share_btn"),d.page1()}),resizeCanvas()},GameOverView.prototype.setScore=function(a){var c,d,e,b=a.toString();for(c=0;3>c;c++)d=this.content.score["num_"+c],d.visible=c<b.length,d.visible&&(e=Number(b.charAt(c)),d.gotoAndStop(e),d.scaleX=d.scaleY=4,d.alpha=0,createjs.Tween.get(d).to({scaleX:1,scaleY:1,alpha:1},200));this.content.score.x=(285-95*b.length)/2+230},GameOverView.prototype.resize=function(a,b){this.tgideas.x=320,this.tgideas.y=b-80,this.content&&(this.content.plane.x=320,this.content.plane.y=300,this.content.share.y=this.content.regame.y=this.content.plane.y+320,this.content.regame.x=this.content.plane.x-135,this.content.share.x=this.content.plane.x+138,this.content.ingame.y=this.content.share.y+110,this.content.ingame.x=this.content.plane.x+10),this.contentEnd&&(this.contentEnd.tips.x=320+App.StageX,this.contentEnd.backBun.x=320,this.contentEnd.backBun.y=720)};/*  |xGv00|f06743ba79b9eda7d919f63da23dd884 */