Error #1086: syntax error
Copy link to clipboard
Copied
Hey, people! I am again experiencing problems with AS3.0. This time, it says my code is with syntax error, but I KNOW by heart that it is perfect. I guess I am having memory issues again. What do I do? Thanks!
Copy link to clipboard
Copied
what's the line of code?
Copy link to clipboard
Copied
It says that is in the frame 31 line 1, but there is NO CODE there! I suppose it's another memory problem, but I don't know how to solve it.
Copy link to clipboard
Copied
no, 1086 is not a memory problem. you wrote code that's causing the error.
eg, you used used a colon where there should be a semicolon.
copy and paste here the error message.
Copy link to clipboard
Copied
I've posted above.
Copy link to clipboard
Copied
there's no error in the code you showed. look for another layer with actionscript (a)
Copy link to clipboard
Copied
That's my point: there is no error in the code. I have tried to continue my work with Animate (I was using Flash CS6) and everything went fine. I guess the problem is with Flash, really. Maybe I should uninstall and then reinstall it?
Copy link to clipboard
Copied
click file>publish settings>and tick "permit debugging"
retest and post a screenshot of the error message and your main timeline (if that's the timeline in the error message).
Copy link to clipboard
Copied
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
frame31, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
That's what I get for the following code:
import flash.events.MouseEvent;
GRUPOA.addEventListener(MouseEvent.CLICK, GrupoA7);
function GrupoA7 (e:MouseEvent):void{
prevFrame();
}
INÍCIO.addEventListener(MouseEvent.CLICK, início30);
function início30 (e:MouseEvent):void{
gotoAndStop(1);
}
GRUPOC.addEventListener(MouseEvent.CLICK, GrupoC);
function GrupoC (e:MouseEvent):void{
gotoAndStop (31);
}
Copy link to clipboard
Copied
Hi.
I don't get any error by just using the code you just provided.
Anyway, you shouldn't use special characters when naming instances/variables in AS3.
Regards,
JC

