Skip to main content
Participant
April 2, 2012
Question

#1086 Syntax Error

  • April 2, 2012
  • 2 replies
  • 4674 views

Hi!

I'm getting this errormessege whole the time and I've tried for days now to fix it. ATM I'm programming an android application using flash cs5.5 and AS3.

The Error message Line1 Infobtn_15 :1086 Syntax error: Expecting semicolon before rightparen.

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT.*;

Infobtn.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_15);

function fl_TapHandler_15(event:TouchEvent);

{

          gotoAndStop;(4)

;}

This code is used for my buttons in the appliation. If I remove the code for Infobtn it will give me the same error message but on a different code. This code is used on 4 buttons in 4 layers so it appears on 4 different layers aswell.

Thanks!

This topic has been closed for replies.

2 replies

_spoboyle
Inspiring
April 2, 2012

another typo

function fl_TapHandler_15(event:TouchEvent);

{

;}

should be

function fl_TapHandler_15(event:TouchEvent):void

{

}

kglad
Community Expert
Community Expert
April 2, 2012

you have a typo:

  

gotoAndStop;(4)

should be

   gotoAndStop(4);
acurcicAuthor
Participant
April 2, 2012

Yes I know, I've tried that before. But now I corrected the code use semicolon after the gotoandstop code. Still getting the error message really frustrating cant rly see what is wrong.

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT.*;

Infobtn.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_15);

function fl_TapHandler_15(event:TouchEvent);

{

          gotoAndStop(4);

}

That is my code still error message.

kglad
Community Expert
Community Expert
April 2, 2012

you still have one of the two errors pointed out by _sp:

fix them all.