I have a simple problem while creating array.Below is the example.
var names:Array = new Array();
trace(names.length); // output: 0
While running the code I am getting the following error
SyntaxError: missing ; before statement
Plz guide me.I am running this code in Flash cs6
Your code looks like a regular AS3 code, but JSFL has its own features, which are different from AS3. Here an example of the same code, but for JSFL:
var names = [];
fl.trace(names.length);