home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / global_r.swf / scripts / __Packages / GameOver.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  574 b   |  22 lines

  1. class GameOver extends MovieClip
  2. {
  3.    var btnPlayAgain;
  4.    var btnTryAgain;
  5.    function GameOver()
  6.    {
  7.       super();
  8.    }
  9.    function init(bSuccess)
  10.    {
  11.       !!bSuccess ? (this.btnPlayAgain.onRelease = mx.utils.Delegate.create(this,this.onReleasePlay), this.gotoAndStop("success")) : (this.btnTryAgain.onRelease = mx.utils.Delegate.create(this,this.onReleaseTry), this.gotoAndStop("failed"));
  12.    }
  13.    function onReleasePlay(Void)
  14.    {
  15.       Application.goto("front");
  16.    }
  17.    function onReleaseTry(Void)
  18.    {
  19.       Application.goto("front");
  20.    }
  21. }
  22.