gotoAndPlay question

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.