Rotate 360deg with easing on rollover

I’m trying to rotate a movie clip button once upon rollover with easing. calling the code below on rollover… as you’d expect this causes the button to spin infinitely as 360 also equals 0. how can I make this work so the clip only spins once with easing…

MovieClip.prototype.spin = function() {
var targetR = 360;
this.onEnterFrame = function() {
this._rotation=targetR-(targetR-this._rotation)/1.5;
if (this._rotation > targetR-0.1 && this._rotation<targetR + 0.1) {
delete this.onEnterFrame;
} 
}
}

All help greatfully received!!!

Cheers

Nick