Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
you have a typo:
gotoAndStop;(4) |
should be
gotoAndStop(4); |
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
you still have one of the two errors pointed out by _sp:
fix them all.
Copy link to clipboard
Copied
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;
Copy link to clipboard
Copied
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);
}
Copy link to clipboard
Copied
if this code is in a class file, you failed to save your edited class or you have a path issue.
Copy link to clipboard
Copied
another typo
function fl_TapHandler_15(event:TouchEvent);
{
;}
should be
function fl_TapHandler_15(event:TouchEvent):void
{
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now