# How do I get a button to play a movie then go to different part of the timeline and p

**URL:** <https://forum.kirupa.com/t/how-do-i-get-a-button-to-play-a-movie-then-go-to-different-part-of-the-timeline-and-p/176499>\
**Category:** flash\
**Created:** [January 24, 2006, 4:54pm UTC](https://forum.kirupa.com/t/how-do-i-get-a-button-to-play-a-movie-then-go-to-different-part-of-the-timeline-and-p/176499 "2006-01-24T16:54:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickLW](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@NickLW](https://forum.kirupa.com/u/NickLW)\
**Post date:** [January 24, 2006, 4:54pm UTC](https://forum.kirupa.com/t/how-do-i-get-a-button-to-play-a-movie-then-go-to-different-part-of-the-timeline-and-p/176499/1 "2006-01-24T16:54:40Z")

</div>

I’m building a Flash site that uses loader components. The timeline is divided into 5 sections each with its own loader component with its own Instance name. I’ve had no problem creating buttons on the main timeline that ‘go to and stop’ at a particular section and allow a movie to load and play. However, sometimes I want a single button to ‘go to and stop’ at one section, play the movie then ‘go to and stop’ at another section and play that movie. Surely there must be a simple piece of action script to give the button the function I need?

I have Flash MX 2004.  
Below is what I’m currently doing:  
Each loader component has its own Instance name and is set to:  
autoload: true, content path: (the appropriate .swf movie), scaleContent: False  
The timeline is divided into ten frame sections. Each had a ‘stop’ command in ‘Actions’. Each has a Frame Label title. To create the button command, I select the button, then go to ‘Behaviour’ - ‘Movie Clip’ - ‘Go to and stop at frame or label’. Where it says: ‘Choose the movie clip …’ I leave it on ‘this’ and I also leave ‘Relative’ selected. Where it says: ‘Enter the frame …’ I type in the Frame label title.

Any ideas?

Cheers

Nick
