home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / breakawish.swf / scripts / __Packages / EndingWord.as < prev    next >
Encoding:
Text File  |  2007-09-28  |  553 b   |  25 lines

  1. class EndingWord extends BaseObject
  2. {
  3.    var mcRef;
  4.    function EndingWord(__mcRef)
  5.    {
  6.       super(__mcRef);
  7.       this.setState("Out");
  8.       var _loc3_ = Library.Utils.MoreMath.getRandomRange(1,19);
  9.       this.mcRef.mcState.mcWord.gotoAndStop(_loc3_);
  10.       LevelManager.Instance.doAddListener(this);
  11.    }
  12.    function doDestroy()
  13.    {
  14.       LevelManager.Instance.doRemoveListener(this);
  15.       super.doDestroy();
  16.    }
  17.    function doOut()
  18.    {
  19.       if(this.isStateComplete())
  20.       {
  21.          this.doDestroy();
  22.       }
  23.    }
  24. }
  25.