# Movie clip manipulation

**URL:** <https://forum.kirupa.com/t/movie-clip-manipulation/266816>\
**Category:** flash\
**Created:** [July 24, 2008, 4:33pm UTC](https://forum.kirupa.com/t/movie-clip-manipulation/266816 "2008-07-24T16:33:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chymx2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chymx2/32/557_2.png) [@chymx2](https://forum.kirupa.com/u/chymx2)\
**Post date:** [July 24, 2008, 4:33pm UTC](https://forum.kirupa.com/t/movie-clip-manipulation/266816/1 "2008-07-24T16:33:44Z")

</div>

Hi  
In my main movie there is a movie clip called “trayopen” when I click on this movieclip it activates by animating to a stop in the movie clip I specified. I sort of have two asks that may be similar in nature…

I need a button on the main time line that will goto a frame on the main timeline but need the “trayopen” movie clip to then playout to the end frmo it’s current stopping point

As well as I need a button that is within the “trayopen” movieclip that will sort of do the same thing finishout playing the movieclip and go to a frame on the main timeline.

Here is the code I currently have to go to a frame on the timeline

myButton\_btn.onRelease = function (){  
gotoAndStop (6);  
};

additinal note… the movie clip might not always have been activated by the user so can it check to see if the movieclip is at a particular frame before it decides to play it out?

Hope I am making sense =)
