Skip navigation
Shirley1999
Currently Being Moderated

How to get Code

Sep 11, 2012 2:52 PM

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.

 
Replies
  • Currently Being Moderated
    Sep 26, 2012 1:08 AM   in reply to Shirley1999

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

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 26, 2012 4:35 AM   in reply to Shirley1999

    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.

     

    Instructions:


    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
    {
          gotoAndStop(5);
    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points