home *** CD-ROM | disk | FTP | other *** search
- function trailClass()
- {
- }
- trailClass.prototype = new MovieClip();
- trailClass.prototype.onLoad = function()
- {
- this.c = 0;
- this._alpha = 70;
- this._xscale = 80 + random(20);
- this._rotation = random(360);
- };
- trailClass.prototype.onEnterFrame = function()
- {
- this.c = this.c + 1;
- this._xscale -= 5;
- this._yscale -= 5;
- this._alpha -= 3;
- if(this.c > 20)
- {
- removeMovieClip(this);
- }
- };
- Object.registerClass("trail",trailClass);
-