4 Replies Latest reply on Nov 21, 2006 5:17 PM by Newsgroup_User

    Main.mc stop();... Sub.mc Play();... HOW??

    devinrayolsen
      Hi I have a presentation to build that will displays lots of information to a user.
      Most of this information is text that is displayed over a nifty graphic.mc, however this graphic has controls of its own, such as a pull out that plays a video on the pull out.

      Let me break down how I have the fallowing FLA setup befor exsplaning what it is I need to do.

      MainTimline-- (Single Frame that plays Information.mc + a stop(); on the actions layer to compleatly play Information.mc)
      |
      |
      Information.mc (Movie Clip:Info Txt gets displayed here)
      |
      |
      NiftyGraphic.mc (Movie Clip:Plays Pull out Video)

      Anyways what needs to happen is when the user has pressed this Video pull out button on the niftygraphic.mc, the Information.mc needs to stop.
      And once the user has closed the Pull Out I need the Information.mc to continue to play.

      So far I have tried many things with in the pull out's button, but the one I feel is going to work would be.

      on (release) {
      _parent.Information.stop();
      gotoAndPlay(14);
      }


      However its not, and im now to the point where im banging my head on the table... please can anyone help?
        • 1. Re: Main.mc stop();... Sub.mc Play();... HOW??
          Level 7
          Ok I'm not quite sure I get your hierarchy, but if you are in nifty_mc
          and want to do anything with information_mc, just use _parent.stop();

          JG

          devinrayolsen wrote:
          > Hi I have a presentation to build that will displays lots of information to a
          > user.
          > Most of this information is text that is displayed over a nifty graphic.mc,
          > however this graphic has controls of its own, such as a pull out that plays a
          > video on the pull out.
          >
          > Let me break down how I have the fallowing FLA setup befor exsplaning what it
          > is I need to do.
          >
          > MainTimline-- (Single Frame that plays Information.mc + a stop(); on the
          > actions layer to compleatly play Information.mc)
          > |
          > |
          > Information.mc (Movie Clip:Info Txt gets displayed here)
          > |
          > |
          > NiftyGraphic.mc
          > (Movie Clip:Plays Pull out Video)
          >
          > Anyways what needs to happen is when the user has pressed this Video pull out
          > button on the niftygraphic.mc, the Information.mc needs to stop.
          > And once the user has closed the Pull Out I need the Information.mc to
          > continue to play.
          >
          > So far I have tried many things with in the pull out's button, but the one I
          > feel is going to work would be.
          >
          > on (release) {
          > _parent.Information.stop();
          > gotoAndPlay(14);
          > }
          >
          >
          > However its not, and im now to the point where im banging my head on the
          > table... please can anyone help?
          >
          • 2. Re: Main.mc stop();... Sub.mc Play();... HOW??
            devinrayolsen Level 1
            Yeah I have tried that but the information.mc keeps playing right along with the NiftyGrapic.mc.
            Might get a better idea of how I have things setup by going to this post (Has colors and indentions)

            http://board.flashkit.com/board/showthread.php?t=711466

            Feel free to reply back here if you think might have something.

            Thanks
            Dev.
            • 3. Re: Main.mc stop();... Sub.mc Play();... HOW??
              Level 7
              Ok lets break it down.

              _root
              +-information_mc
              +-nifty_mc
              +-videopullout_btn

              if you click on videopullout_btn you want to stop information_mc

              so on the videopullout_btn actions you should have:

              on (release) {
              _parent.stop(); // _parent referring to information_mc
              gotoAndPlay(14); // nifty_mc will go to frame 14 and play
              }

              now if you videopullout_btn is in information_mc, then you should do:

              on (release) {
              stop(); // _parent referring to information_mc
              nifty_mc.gotoAndPlay(14); // nifty_mc will go to frame 14 and play
              }

              JG

              devinrayolsen wrote:
              > Yeah I have tried that but the information.mc keeps playing right along with
              > the NiftyGrapic.mc.
              > Might get a better idea of how I have things setup by going to this post (Has
              > colors and indentions)
              >
              > http://board.flashkit.com/board/showthread.php?t=711466
              >
              > Feel free to reply back here if you think might have something.
              >
              > Thanks
              > Dev.
              >
              • 4. Re: Main.mc stop();... Sub.mc Play();... HOW??
                Level 7
                Little mistake in the comment

                > now if you videopullout_btn is in information_mc, then you should do:
                >
                > on (release) {
                > stop(); // referring to CURRENT MOVIECLIP, information_mc
                > nifty_mc.gotoAndPlay(14); // nifty_mc will go to frame 14 and play
                > }