Flash MX2004, blinking on a rollon/rollout button

I have made a rollon / rollout button using the techinque described in the tutorals section under “complex buttons” which works fine except for when i use the button the goto or play frames in which case it appears to blink.

I think that what is happening is that the click is causing the button to reset to a non rolled over state, then it realises that the mouse is infact over it and so it plays again.

This is the action script that im using…

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

Does anybody know a way around this, perhaps a way to insert an “on press” or “on release” state to the button? Or even a different technique to achieve the same effect.

Thanks very much