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
A malformed XML doc will cause this vague error once embedded into a flex project so check those embedded files too.
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
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
This error occured when I have a folder like ‘first-second’.
When I change this folder’s name to fistsecond, it works fine.
Also double check the css files.
I had:
com.skins..something
instead
com.skins.something
Very annoying error
may also happen if you have action script running on a frame which is within a motion tween.
Pingback: curtismorley.com » Search Engine Optimization Example