Simple question

hi all,

simple question…
i have a stop button that after clicking will stop the animation, and everytime it stops, i told it to go back to frame 1 (animation starts at frame 2) But what i really want is when hit stop, i want it to go to frame 1 but not till it finishes the animation. I hope you guys understand what i m trying to ask. I believe i have to use a if loop. But i am not sure… tutorials anywhere for this? thanks in advance