A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] [F8] Simple problem... If/Then stuff

  1. #1
    Huh, Radio.
    Join Date
    Nov 2006
    Location
    IL
    Posts
    22

    [RESOLVED] [F8] Simple problem... If/Then stuff

    Code:
    **Error** Symbol=bird3fly_mc, layer=Layer 3, frame=120:Line 4: Operator '=' must be followed by an operand
         	if (var inflight == "false"){
    
    Total ActionScript Errors: 1 	 Reported Errors: 1
    I have used this syntax millions of times before I feel like. Am I only supposed to use one "="? I don't see what is wrong here, but it is giving me these errors. Thanks for the help.

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    take out the var i.e it should be

    if(inflight == "false")

    use the var keyword when declaring a variable, not when comparing it
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Huh, Radio.
    Join Date
    Nov 2006
    Location
    IL
    Posts
    22
    Thankyou sir!

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    yw
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

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