Skip to main content
sharp_moment15A9
Participant
April 30, 2010
Answered

'{' Expected... but it's right there!!!

  • April 30, 2010
  • 1 reply
  • 386 views

Please help I can't find an explanation for this error.

The frame name is"home" and the button does have an instance name of "btn1"

'{' expected in line 5

1 stop();

2

3 btn1.addEventListener(MouseEvent.ROLL_OVER, gohome);

4

5 function gohome(e:MouseEvent):void
6 {
7    gotoAndStop("home");
8 }

Even if i place the '{' in line 5 i will keep getting this error

Image just in case:

http://i.imgur.com/Ddp4R.jpg

This topic has been closed for replies.
Correct answer Ned Murphy

Check your Publish Settings and make sure you have AS3 selected.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
April 30, 2010

Check your Publish Settings and make sure you have AS3 selected.