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

  1. function miniTellPlayerClass()
  2. {
  3. }
  4. miniTellPlayerClass.prototype = new MovieClip();
  5. miniTellPlayerClass.prototype.onLoad = function()
  6. {
  7.    this._x = px;
  8.    this._y = py - 30;
  9. };
  10. miniTellPlayerClass.prototype.onEnterFrame = function()
  11. {
  12.    if(_root.state == "paused")
  13.    {
  14.    }
  15.    if(_root.state == "playing")
  16.    {
  17.       this._alpha -= 3;
  18.       if(this._alpha < 3)
  19.       {
  20.          removeMovieClip(this);
  21.       }
  22.    }
  23. };
  24. Object.registerClass("miniTellPlayer",miniTellPlayerClass);
  25.