A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Left side of assignment operator must be variable or property

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Location
    U.K
    Posts
    23

    Question Left side of assignment operator must be variable or property

    Hi guys, thanks for all the help so far, i'm hoping this is an easy one for you to help me with.
    Actionscript Code:
    if (B_AuthorBox.text = "" && B_TitleBox.text =""){
            BookVar = BookVar;
        } else {
     BookVar = BookVar +1;
    }

    I keep getting this message

    <b> Left side of assignment operator must be variable or property</b>

    How can I get around it?

    Thanks in advance

    Bottlebank

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Try

    BookVar +=1;

    or

    BookVar ++;

    also

    B_AuthorBox.text = "" && B_TitleBox.text =""

    might need to be

    B_AuthorBox.text == "" && B_TitleBox.text == ""

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Location
    U.K
    Posts
    23
    Awesome o' clock.

    Thanks Fruitbeard

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