A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: stop() is stopping too many MCs

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57

    stop() is stopping too many MCs

    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?

  2. #2
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57
    I should also note that leafMG is, in fact, not stopping, but its movement along the guide is.

    After a while, the movie clip will reach the end of its timeline, and it will loop back to the beginning. However, the leafGenerator MC stops moving along the motion guide.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center