home *** CD-ROM | disk | FTP | other *** search
- function nuRotation(id)
- {
- this["r" + id].rf = Math.random() * 720 - 360;
- this["r" + id].count = Math.random() * 150;
- }
- var i = 1;
- while(i < 5)
- {
- this["r" + i]._rotation = Math.random() * 360;
- this["r" + i].id = i;
- nuRotation(i);
- this["r" + i].onEnterFrame = function()
- {
- this.dr = (this.rf - this._rotation) / 30;
- this._rotation += this.dr;
- this.count--;
- if(this.count < 0)
- {
- nuRotation(this.id);
- }
- };
- i++;
- }
-