button error
Hi,
Here are two buttons (placed in a single frame script on the timeline) which produce an error:
(This SWF is called into another SWF.)
btn1.addEventListener(MouseEvent.CLICK, btn1Funtion );
btnmng.addEventListener(MouseEvent.CLICK, btnmngFuntion );
funtion btn1Funtion()
{
MovieClip(parent.root).gotoAndStop("m1");
// change "m1" to the frame number or label you wish to go in the main timeline
}
funtion btnmngFuntion()
{
MovieClip(parent.root).gotoAndStop("mng");
// change "mng" to the frame number or label you wish to go in the main timeline
}
The error is: 1071: Syntax error: expected a definition keyword (such as function) after attribute funtion, not btn1Funtion.
Any ideas on how to correct it?
-Toe Cutter