2 Replies Latest reply on Sep 26, 2012 4:35 AM by Ned Murphy

    How to get Code


      In Flash CS5; F9-Code Snippets, pls. I need help in creating a folder 'Click to Go To Frame and Stop' which was there inside TIMELINE NAVIGATION, as the same was deleted by accident. Please help in giving code in creating the same. Thank you appreciate very much.

        • 1. Re: How to get Code
          SuhasYogin Adobe Employee

          Moving this thread from Flash Pro FAQs to Flash Pro - General.

          • 2. Re: How to get Code
            Ned Murphy Adobe Community Professional & MVP

            The following is the code for that snippet:


            /* Click to Go to Frame and Stop

            Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.

            Can be used on the main timeline or on movie clip timelines.



            1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.


            tf.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);


            function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void