Skip to main content
Participant
March 6, 2018
Question

1084 Syntax Error

  • March 6, 2018
  • 1 reply
  • 224 views

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

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    March 6, 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

    Rabit475Author
    Participant
    March 6, 2018

    im getting 1064 Invalid metadata for all them attempts

    JoãoCésar17023019
    Community Expert
    Community Expert
    March 6, 2018

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

    Let me know if it still doesn't work.