Movie clip functions on entering frame

Hello,

I have a movie clip I am trying to activate when the playhead gets to a specific frame.

I am confused because the code is working on one frame, but not another.

  1. On frame 1, I have this code:

this.myMC.gotoAndPlay(myMC,“start”);

And this works just fine

  1. On another frame I have the code:

this.myMC.gotoAndPlay(myMC,“out”);

But this does not work

  1. I have also tried

onEnterFrame = function(){
this.myMC.gotoAndPlay(myMC,“out”);
}

But this also does not start the movie up at frame “out” either!

What am I missing? Why does it work on frame 1, but it does not work on subsequent frames?

this.myMC.gotoAndPlay(“out”);

^^MAYBE ^^

Without actually seeing your fla (even though you’ve posted the code here…there could be other issues) it is a little hard to tell.

By this, I am suggesting this:

if your movie clip does not have a stop(); action at the start then it might just be automatically playing regardless of the code gotoAndPlay(my_mc, “start”);

The other person’s observation probably has some merit to it because in terms of your parameters you should really only need either the (“start”) or the (“out”) directive.

Again, a little hard to tell without seeing the fla.

[QUOTE=joran420;2326899]this.myMC.gotoAndPlay(“out”);

^^MAYBE ^^[/QUOTE]

[QUOTE=small_guy;2326901]Without actually seeing your fla (even though you’ve posted the code here…there could be other issues) it is a little hard to tell.

By this, I am suggesting this:

if your movie clip does not have a stop(); action at the start then it might just be automatically playing regardless of the code gotoAndPlay(my_mc, “start”);

The other person’s observation probably has some merit to it because in terms of your parameters you should really only need either the (“start”) or the (“out”) directive.

Again, a little hard to tell without seeing the fla.[/QUOTE]

Thanks you two. It was because the myMC was a redundant element. It works now.