# GotoAndPlay button Problem

**URL:** <https://forum.kirupa.com/t/gotoandplay-button-problem/252659>\
**Category:** flash\
**Created:** [February 22, 2008, 5:48am UTC](https://forum.kirupa.com/t/gotoandplay-button-problem/252659 "2008-02-22T05:48:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raml](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@raml](https://forum.kirupa.com/u/raml)\
**Post date:** [February 22, 2008, 5:48am UTC](https://forum.kirupa.com/t/gotoandplay-button-problem/252659/1 "2008-02-22T05:48:25Z")

</div>

Hello, I have a movie clip and inside I have some menu buttons, I want to link them to a timeline in another movie clip but I have not been able so far.

Example:

The buttons inside movie clip 4 should affect the timeline within movie clip 1.

Movie Clip 0 (root) \> Movie Clip 1 (timeline) \> Movie Clip 2 \> Movie Clip 3 \> Movie Clip 4 (buttons)

First I tried using:

on(release)  
{  
gotoAndPlay(5);  
}

Then I modified the code adding the name of the movie clip I wanted the buttons to affect:

on(release)  
{  
movieclip1.gotoAndPlay(5);  
}

It did not work as well. What can i do?

Thanks a lot ![](http://forum.kirupa.com/uploads/kirupa/4325/e6906d672af1d23a.gif)
