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

  1. class TrailStars extends BaseObject
  2. {
  3.    function TrailStars(__mcRef)
  4.    {
  5.       super(__mcRef);
  6.       this.setState("Out");
  7.       LevelManager.Instance.doAddListener(this);
  8.    }
  9.    function doDestroy()
  10.    {
  11.       LevelManager.Instance.doRemoveListener(this);
  12.       super.doDestroy();
  13.    }
  14.    function doOut()
  15.    {
  16.       if(this.isStateComplete())
  17.       {
  18.          this.doDestroy();
  19.       }
  20.    }
  21. }
  22.