A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] Global Timeline Stop Command

  1. #1
    Senior Member
    Join Date
    Sep 2007
    Location
    UK
    Posts
    194

    [F8] Global Timeline Stop Command

    OK Guys, hopefully someone can help me out here or at least point me in some direction!

    I have a presentation which consists of a main timeline with an assortment of animations and MC's which run independently of the main timeline. I also have some animations which loop depending on array data and also some switch commands to control navigation.

    All was going well until I was asked for a pause/play button to be added.

    Due to the dynamic nature of the presentation this isn't as easy as a simply pause/play button with a stop and play command

    Anyone have any idea how I can stop something like this in it's tracks and then start again from where it is without some major rework?

    Mike

  2. #2
    _root.Stop(); //Pause command
    _root.Play(); //Play command

    to address the MC:

    _root.MC_Name.Stop();

    if your loading it on levels:
    _level0.Stop();
    _level0.Play();

  3. #3
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    And, if you've got LOTS of movieclips and don't want to have to stop them all individually, you could do something like this:

    Code:
    for (var a in _root) {
    	if (typeof (eval(a)) == "movieclip") {
    		eval(a).stop();
    	}
    }
    Hope that helps!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  4. #4
    Senior Member
    Join Date
    Sep 2007
    Location
    UK
    Posts
    194
    Thanks guys, i'll add these snippets and see what havoc I come up with!

    Mike

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