full Pause in Flash

Out of context: Reply #3

  • Started
  • Last post
  • 12 Responses
  • fugged0

    there's a few ways you can do this depending on which version of actionscript and how clean you want your code.

    you can use eventlisteners in each movieclip which listen to the click event broadcasted by the pause button then execute their own stop method

    you could keep a reference to all movie clips in an array stored on the main timeline and then enumerate and call the stop method.

    you could enumerate all of the movie clips that exist in the current timeline (or recurse into nested movieclips as well) and call the stop method.

    You could always just wave your hands in the air. Wave 'em like you just don't care.

View thread