Copy link to clipboard
Copied
Im getting these error codes for this line of code:
easy, Layer 'code', Frame 7491, Line 13, Column 24 1084: Syntax error: expecting identifier before lessthan.
easy, Layer 'code', Frame 7491, Line 13, Column 33 1086: Syntax error: expecting semicolon before greaterthan.
This is the code:
var soundList: Vector. < String > = new < String > //Creates a variable called soundList and sets is as a vector
This use to work fine but is now showing errors
Copy link to clipboard
Copied
Oddly enough, the compiler can't recognize a vector declaration if there are spaces between the keywords/names/symbols.
Remove the spaces and try one of the following:
var soundList:Vector.<String> = new <String>[];
OR
var soundList:Vector.<String> = new <String>["A", "B", "C"];
OR
var soundList:Vector.<String> = new Vector.<String>();
I hope it helps.
Regards,
JC
Copy link to clipboard
Copied
im getting 1064 Invalid metadata for all them attempts
Copy link to clipboard
Copied
Please take a look at this file: animate_cc_as3_vector_declaration.fla - Google Drive .
Let me know if it still doesn't work.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now