Skip to main content
Participant
February 4, 2023
Question

Nested animations and Buttons not working together

  • February 4, 2023
  • 1 reply
  • 287 views

My issue is a bit complicated, and i couldn't find anyone with a similar problem here:

My Project has a lot of nested movieclips. The point is, you're supposed to be able to pick multiple options, which then have their own multiple options. For example, you can pick between the type of furniture, the size, and the color.

 

The hierarchy of the clips looks like this:

 

Each timeline has a short script with this.stop(); on a separate layer,
In the main script each timeline has a gotoAndStop(); that specifies the "default" frame i want it to start on.

It works fine by default, but when i try to select other options, the "default" returns to 0, and the next button i press makes everything play through their timelines once.

I'm guessing that pressing the buttons overrides the stop() and gotoandstop(), but i don't know how to prevent that.
Does anyone else know what to do?

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    February 4, 2023

    you have 3 movieclips, chair, cough, stool.

     

    each movieclip has an initial frame and 9 additional frames labeled large_red, large_blue,...,small_green, correct?

    Participant
    February 4, 2023

    Not quite:
    Chair, couch and stool each have 3 frames, large, medium and small. each size is another movieclip, containing the 3 color frames.

    kglad
    Community Expert
    Community Expert
    February 5, 2023

    is all your code on the main timeline or do you have code spread over several timelines?