3 Replies Latest reply on Sep 11, 2013 4:38 AM by Ned Murphy

    Linking to MovieClip

    mari8899 Level 1

      Situation, I'm on main scene, I have to link a button/text to go and open MovieClip which is a new page, how to link that?

        • 1. Re: Linking to MovieClip
          Ned Murphy Adobe Community Professional & MVP

          It depoends how you have the movieclip implemented and what version of Actionscript your file uses.

           

          You could just have the movieclip sitting invisinly and just make it so that the button makes the movieclip turn visible - that way there's no need to go anywhere.  Otherwise, you could use a gotoAndStop() command so that you go to a frame where the movieclip is.

          1 person found this helpful
          • 2. Re: Linking to MovieClip
            mari8899 Level 1

            I'm using AS 2.0, and I'm on main scene, now I have to click on a button to open movieclip aka new page. By the way that page is inside movieclip on frame 6.

            • 3. Re: Linking to MovieClip
              Ned Murphy Adobe Community Professional & MVP

              Select the button on the stage and assign an instance name to the button in the Properties panel.  Let's say you name it btn6.  Then in the timeline create a layer for Actionscript add the code for the button in the same frame number as the button...

               

              btn6.onRelease = function(){

                   gotoAndStop(6);

              }