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

  1. class EE
  2. {
  3.    var mcRef;
  4.    var nWord;
  5.    function EE(__mcRef)
  6.    {
  7.       this.mcRef = __mcRef;
  8.       this.mcRef.stop();
  9.       this.mcRef.mcWord.stop();
  10.       LevelManager.Instance.doAddListener(this);
  11.    }
  12.    function doStart()
  13.    {
  14.       if(this.mcRef._currentframe == 1)
  15.       {
  16.          this.nWord = Library.Utils.MoreMath.getRandomRange(1,6);
  17.          this.mcRef.mcWord.gotoAndStop(this.nWord);
  18.          this.mcRef.play();
  19.          Library.Sound.SoundManager.doPlaySoundInCat(Main.sSOUND_CAT_SOUND,"EE.mp3");
  20.       }
  21.    }
  22.    function doDestroy()
  23.    {
  24.       delete this.mcRef;
  25.    }
  26. }
  27.