First, create a monitor.
xzgq _ BTN . addevent listener(mouse event。 Click, b2h)
In the previous code, xzgq_btn is the instance name of the button. AddEventListener is used to create a listener.
Mouse event. CLICK is the name of the function (method) whose click event b2h was triggered.
Function b2h(e:MouseEvent)
{
gotoAndPlay(2);
}
In the previous code, function means function, b2h means function name "()", and there is parameter e:MouseEvent.
Is the parameter of the mouse event.
gotoAndPlay(2); Play the animation to the second frame and fill it according to your actual needs.
If your MV is an embedded movie clip, it is xxx. Play (1); Where xxx is the instance name of your movie clip.
I hope I can understand the hardships. If not, please keep asking questions.