Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Load movie after another has finished

    Hi, I'm doing a slide show and wanted to use flash for more control. I could put all the images and music onto the main timeline, but that would be too messy.

    So, I divided the slide show into several movie clips on separate layers. How can I designate a specific movie clip to start first and then play the second movie clip afterward and so on until the slide show ends? There are no buttons to control the timeline because this is a presentation slide show. As of now, I have a stop command on the second movie clip but upon publishing, both movie clips start simultaneously.

    Help!

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I need to see some code with what you have, but a creative mixture of some of these functions can help a lot.

    http://livedocs.adobe.com/flash/9.0/...=00001890.html

    You can use mc1._currentframe to find the current frame and check it against the end of the movieclip, and start the second only when its done, and so on.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    New Coder
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Jeremy, the first MC starts at frame 1 and is called to play. The second MC animation starts at frame 2 with a stop command on frame 1. You get the idea.

    Pardon my extreme noobness; I don't have any code, just basic timeline controls -was really hoping someone could point me in the right direction. Else, I could always just make a giant 1400+ frame animation!

  • #4
    New Coder
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ^I forgot to mention this is AS3.

  • #5
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Ah AS3. We need to make it mandatory to say which version, since they are quite different, so thanks for the tip.

    If you have no code, then how are you trying to stop the movieClip from playing?

    Are you exporting to test too?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #6
    New Coder
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, it doesn't have to be AS3. Whatever is easiest to implement.

  • #7
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Easier? probably AS2.

    1st frame: put a stop(); on the frame and put the movieClip on the stage to play.
    1st mc: put a _parent.gotoAndStop(2); on the last frame of the movieClip to advance the main timeline
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #8
    New Coder
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks again for your help, Jeremy!

    I used this command and got it to work:

    _root.MC3.gotoAndPlay(2);


  •  

    Posting Permissions

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