Search code examples
actionscript-3apache-flexflash-builder

Expecting identifier before left bracket


I continue getting the following error:

Expecting identifier before left bracket

For the following line below.

Any ideas on how to solve this?

public var selectedEvents:[] = [];

Solution

  • If you're trying to create an array, it's public var selectedEvents:Array = [].