Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

1084 Syntax Error

New Here ,
Mar 06, 2018 Mar 06, 2018

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

193
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 06, 2018 Mar 06, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2018 Mar 06, 2018

im getting 1064 Invalid metadata for all them attempts

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 06, 2018 Mar 06, 2018
LATEST

Please take a look at this file: animate_cc_as3_vector_declaration.fla - Google Drive .

Let me know if it still doesn't work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines