// script by cleverpig //paste into first frame of an empty flash file 550x400 30fps _quality = "MEDIUM"; for (i=0; i<50; i++) { clip = _root.createEmptyMovieClip("t_"+i, i+1+100, obj); clip._x = random(550); clip._y = random(400); clip.mx = Math.random()*10-5; clip.my = Math.random()*10-5; clip.ang = random(360); clip.onEnterFrame = function() { this.clear(); this.lineStyle(10, 0, 100); this.moveTo(0, 0); for (i=0; i<36; i += 6) { if (i == 12) { this.lineStyle(2, 0, 100); } this.lineTo(-i*2, i*0.6*Math.sin(((ang += 1)+(i*10))*Math.PI/180)); } dx = _root._xmouse-this._x; dy = _root._ymouse-this._y; if (dx != 0) { at = dy/dx; r = (dx>0) ? (Math.atan(at)*180/Math.PI) : (180+Math.atan(at)*180/Math.PI); } else { r = 90; } dist = Math.sqrt(dx*dx+dy*dy)/2; if (dist>100) { dist = 100; } this._alpha = this._xscale=100-dist; this._rotation = r; this._x += ((this._x>550 || this._x<0) ? (this.mx *= -1) : (this.mx)); this._y += ((this._y>400 || this._y<0) ? (this.my *= -1) : (this.my)); } }