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.
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);
}
North America
Europe, Middle East and Africa
Asia Pacific