I've got an embedded movie clip.

Movie clip, leafGenerator, is inside a movie clip, leafMG, and I want to have the leafGenerator follow a motion guide in leafMG. This is simple enough.

The problem comes in, when I use the gotoAndStop() function and the stop() functions.

I have the following code attached to the leafGenerator movie clip:

Code:
leafRand = random(18)+2;
gotoAndStop(leafRand);
Basically, the computer choses a random number between 2 and 18, and then sends leafGenerator to the frame, and stops. Unfortunately, this is also stopping the leafMG timeline, so leafGenerator stops at the correct frame, but also stops moving along the motion guide.

So what's up with this? I'm not telling leafMG to stop at all, and it's getting this from the stop functions attached to leafGenerator. Is there some way to make it not do this?

As an additional (and odd) note, I tried a variation using gotoAndPlay() (with stop()'s in each of the randomly chosen frames) and leafMG STILL stops, even though it's a Play function.

So...help?