Tween + Actioscript

Hello all,

I have a question that been really long in my mind. If i have the following setting.

the main timeline of my movie is divided into 2 keyframes on labled ‘key1’ and the other ‘key2’. In each of this keyframes i used the function stop(); to stop the movie from running once loaded.

Now i have a button with the following actionscript lines:

[AS]

on (release) {
this.gotoAndStop(“key1”);
}

[/AS]

at the first run when this button is clicked the desired motion will occur but when the button is pressed again, the movie timeline will be on ‘key2’ and then it will go to ‘key1’ to play but their is the stop(); command so the user will have to click the button another time to play the movie.

Anybody can tellhow i can overcome this problem.

Thanks
:rd:

try posting you fla so we can better help you out