home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / amoeba.swf / scripts / frame_23 / DoAction.as < prev   
Encoding:
Text File  |  2006-06-13  |  480 b   |  24 lines

  1. function trailClass()
  2. {
  3. }
  4. trailClass.prototype = new MovieClip();
  5. trailClass.prototype.onLoad = function()
  6. {
  7.    this.c = 0;
  8.    this._alpha = 70;
  9.    this._xscale = 80 + random(20);
  10.    this._rotation = random(360);
  11. };
  12. trailClass.prototype.onEnterFrame = function()
  13. {
  14.    this.c = this.c + 1;
  15.    this._xscale -= 5;
  16.    this._yscale -= 5;
  17.    this._alpha -= 3;
  18.    if(this.c > 20)
  19.    {
  20.       removeMovieClip(this);
  21.    }
  22. };
  23. Object.registerClass("trail",trailClass);
  24.