Unbelievably stupid question

Okay, I’m really embarrassed to ask this question, but I’ve been away from Flash for a while and my brain seems to be in a dead zone today.

I have a movie clip, call it myMovieClip. Inside this movieclip are two frames. All I’m trying to do is on the main timeline dictate which frame of the movie clip displays.

im not sure what you exactly want:beam::stuck_out_tongue:
this?:sigh:


myMovieClip.gotoAndPlay(frame)

Well, like I said, my brain is in a dead zone today. You were absolutely right and that worked perfectly. (I could have sworn that I tried that before posting my question.)

I do have a second question, though. I am building a component that contains the movieclip just mentioned. The first function in my component is an initializing function with the following code:

myComponentClass.prototype.initial = function() {
this.myMovieClip.gotoAndStop(“secondFrame”);
}

Any ideas why this is not working?

secondFrame is it a frame label or what is this… :q:
if you want to gotoAndStop next frame you can use this


gotoAndStop(_currentframe+1);

i can’t understand what you mean exactly :*(