08.21.07
Flash CS3 / Flex AS3 Error #1086
ActionScript Error: 1086: Syntax error: expecting semicolon before mult
Description:
This is a very easy and straightforward error with a horrible description. It actually has nothing to do with a semicolon at all. All this error means is that you forgot a '.' in your import before the '*'.
Fix:
Add the Dot
Bad Code:
import flash.events*;
Good Code:
import flash.events.*;
Hopefully the confusing description for this ActionScript Error didn't cause you to pull your hair out.
As Always Happy Flashing
Flash Error #1086: Syntax error: expecting semicolon before dot.
Description:
Another reason for the Flex / Flash Error #1086 is because a function/method call is typed. It is very important to type a function but do not type the call to the function.
Fix:
Remove the typing at the end of the method call.
Bad Code:
resource.readXml (requestId, onResourceXmlLoadSuccess, onResourceXmlLoadFail):void;
Good Code:
resource.readXml (requestId, onResourceXmlLoadSuccess, onResourceXmlLoadFail);
Happy Flashing
curtismorley.com » Search Engine Optimization Example said,
June 2, 2008 at 5:03 pm
[...] AS3 Error 1086 – #1,2 hit on Google [...]
butterbrot said,
August 5, 2009 at 1:51 pm
may also happen if you have action script running on a frame which is within a motion tween.
Wilson Edgar said,
January 23, 2010 at 5:34 am
Also double check the css files.
I had:
com.skins..something
instead
com.skins.something
Very annoying error
Anny Odar said,
March 8, 2010 at 7:31 pm
This error occured when I have a folder like ‘first-second’.
When I change this folder’s name to fistsecond, it works fine.
pbear said,
March 19, 2010 at 7:48 pm
Here’s one:
private const SOME_CONST:Point(50,50);
// 1086: Syntax error: expecting semicolon before leftparen.
private const SOME_CONST:Point = new Point(50,50);
// correct
Tania said,
January 31, 2011 at 1:32 pm
Hello,
I wonder if you can help me please, i was using this tutorial: http://tutorials.flashmymind.com/2009/02/movieclip-scroller/
and the error 1086 appears in this two lines and i don’t know what is wrong, i put the location as it is in my computer:
import greensock-as3.com.greensock.TweenMax;
import greensock-as3.com.greensock.plugins.BlurFilterPlugin;
thank you
Stretch said,
February 25, 2011 at 10:16 pm
A malformed XML doc will cause this vague error once embedded into a flex project so check those embedded files too.