A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: 1084:expecting identifier before var.

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Pune
    Posts
    62

    1084:expecting identifier before var.

    i have the following code on the first frame of my movieclip

    1. var navigationItems:Array;
    2. function setTitle(var newTitle:String)
    3. {
    4. title_txt.text = newTitle;
    5. }


    it gives the error
    1084: Syntax error: expecting identifier before var.
    at line 2.
    how to solve this problem?

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Function parameters should not be preceded by "var".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center