Skip to main content
May 25, 2009
Question

button error

  • May 25, 2009
  • 1 reply
  • 476 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 25, 2009

funtion should be function.