# Going to main timeline, by clicking button within a movie

**URL:** https://forum.kirupa.com/t/going-to-main-timeline-by-clicking-button-within-a-movie/48482
**Category:** Uncategorized
**Created:** [April 14, 2004, 12:21am UTC](https://forum.kirupa.com/t/going-to-main-timeline-by-clicking-button-within-a-movie/48482 "2004-04-14T00:21:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ogier\_Midget](https://avatars.discourse-cdn.com/v4/letter/o/5f9b8f/32.png) [@Ogier\_Midget](https://forum.kirupa.com/u/Ogier_Midget)
#### Post date: [April 14, 2004, 12:21am UTC](https://forum.kirupa.com/t/going-to-main-timeline-by-clicking-button-within-a-movie/48482/1 "2004-04-14T00:21:47Z")

</div>

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](http://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
