home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / planetx.swf / scripts / frame_17 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  672 b   |  33 lines

  1. function flameClass()
  2. {
  3. }
  4. flameClass.prototype = new MovieClip();
  5. flameClass.prototype.onLoad = function()
  6. {
  7.    this.flameCount = 0;
  8.    this.flameDelay = 49;
  9. };
  10. flameClass.prototype.onEnterFrame = function()
  11. {
  12.    if(_root.state == "paused")
  13.    {
  14.    }
  15.    if(this.state == "remove")
  16.    {
  17.       removeMovieClip(this);
  18.    }
  19.    if(_root.state == "playing")
  20.    {
  21.       if(this.hitTest(_root.player) == true)
  22.       {
  23.          playerHitsFlame();
  24.       }
  25.       this.flameCount = this.flameCount + 1;
  26.       if(this.flameCount > this.flameDelay)
  27.       {
  28.          removeMovieClip(this);
  29.       }
  30.    }
  31. };
  32. Object.registerClass("volcanoflame",flameClass);
  33.