var grad:Number = 0; cl.onEnterFrame = function() { this._rotation = grad; grad += 36; if (grad>=360) { this._rotation = 0; delete this.onEnterFrame; } };