3 Replies Latest reply on Apr 22, 2007 10:38 PM by ShanthiFlash

    Pause

    ShanthiFlash Level 1
      Hi ,

      I am developing a game... In that i want to pause the entaire movie if the user press the pause button.....

      but i dont know how to controll all the movieclips at a time.......

      thanks,
      shanthi
        • 1. Pause
          GHMS
          Hi,

          Create a button and add the script. It will stop all the movieclips on the stage. The attached code helps to play all the movieclips.

          on(release){

          for (var name in this) {

          if (typeof (this[name]) == "movieclip") {

          this[name].stop()

          }

          }

          }



          Thanks,
          GHMS
          • 2. Re: Pause
            Level 7
            Shanthi.AL wrote:
            > Hi ,
            >
            > I am developing a game... In that i want to pause the entaire movie if the
            > user press the pause button.....
            >
            > but i dont know how to controll all the movieclips at a time.......


            I often use a global variable for things like this and for the relevant
            clips I check this variable on the onEnterFrame script.
            1 person found this helpful
            • 3. Pause
              ShanthiFlash Level 1
              Thanks for the reply ......................