Flash CS3 / Flex AS3 Error #1086

Posted in errors, Flash, Flex, quicktip at 8:43 pm by Curtis J. Morley

ActionScript Error: 1086: Syntax error: expecting semicolon before mult

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 '*'.

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.

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.

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


  1. curtismorley.com » Search Engine Optimization Example said,

    June 2, 2008 at 5:03 pm

    […] AS3 Error 1086 – #1,2 hit on Google […]

  2. 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.

  3. Wilson Edgar said,

    January 23, 2010 at 5:34 am

    Also double check the css files.
    I had:

    Very annoying error

  4. 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.

  5. 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

  6. Tania said,

    January 31, 2011 at 1:32 pm

    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

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

Leave a Comment