# gotoAndPlay question

**URL:** https://forum.kirupa.com/t/gotoandplay-question/162588
**Category:** flash
**Created:** [September 14, 2005, 2:35pm UTC](https://forum.kirupa.com/t/gotoandplay-question/162588 "2005-09-14T14:35:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Avihai](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Avihai](https://forum.kirupa.com/u/Avihai)
#### Post date: [September 14, 2005, 2:35pm UTC](https://forum.kirupa.com/t/gotoandplay-question/162588/1 "2005-09-14T14:35:04Z")

</div>

Shalom :o)

I have created a movie clip like this:  
var poohmclip = createEmptyMovieClip(“mIt”, 0);

Now I want to control it by different buttons, for example:  
button num 1 will jump to frame 1 fof the created movie clip mIt,  
button num 2 will jump to frame 2 fof the created movie clip mIt,  
and so on.

How do I do it?

I tried:  
mIt.gotoAndPlay (someVar);

But it didn’t work. Does anyone have any idea?

Thanks.
