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 [...]