assuming you have a stop in Frame 1, a stop in the last frame, and the button in _root, this works consistently
Code:
on(rollOver){
delete onEnterFrame;
play();}
on(rollOut){
onEnterFrame=prevFrame;}