Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

#1086 Syntax Error

New Here ,
Apr 02, 2012 Apr 02, 2012

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!

TOPICS
ActionScript
4.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2012 Apr 02, 2012

you have a typo:

  

gotoAndStop;(4)

should be

   gotoAndStop(4);
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 02, 2012 Apr 02, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2012 Apr 02, 2012

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

fix them all.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 02, 2012 Apr 02, 2012

this is still worng

function fl_TapHandler_15(event:TouchEvent);

{

          gotoAndStop(4);

}

should be

function fl_TapHandler_15(event:TouchEvent):void

{

          gotoAndStop(4);

}

and this looks wrong too

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT.*;

surely it should be something like

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 02, 2012 Apr 02, 2012

Still getting the same error. Dont know why, checked my code in a previous application that hade same function and it worked there. Also removed all code restarted flash and still got the same error. Something is really messed up :S

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

Infobtn.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_15);

function fl_TapHandler_15(event:TouchEvent):void

{

          gotoAndStop(3);

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2012 Apr 02, 2012
LATEST

if this code is in a class file, you failed to save your edited class or you have a path issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 02, 2012 Apr 02, 2012

another typo

function fl_TapHandler_15(event:TouchEvent);

{

;}

should be

function fl_TapHandler_15(event:TouchEvent):void

{

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines