Going to main timeline, by clicking button within a movie

Hello,
Just hoping someone can help me out.

In the main timeline, on frame one, there is a stop() command. Also in the main timeline I have a button, that when clicked goes to frame ten on layer two. On frame ten I have a movie. Inside the movie there is a button. What script can I use on the button, inside the movie, to take me back to frame one of the main timeline?

on (release){
gotoAndPlay(1);
}

When I attach the code above to the button within the movie, it just takes me to the first frame of the movie.

I have uploaded the file that I am working on. If what I said above doesn’t make sense you can grab the file over at www.geocities.com/iraq_spider/gotobegining.fla

I am new to actionscript and I’m sure there may be an easier way to accomplish this. If so would you please say so. I would greatly appreciate it.

Thankyou

  • Michael