A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: if .. then --- quote help???

  1. #1
    Junior Member
    Join Date
    Jul 2000
    im kinda in a rush to get this done . I've been working on this script for days. Ive been able to read and rearrange cookie and import the variables into flash .... I got a real simple question .... I have an if statement at the beginning of my movie.

    If (cookie_variable = "false")
    Go to and Play (Scene 1, 225)
    Else If (cookie_variable = "true")
    Go to and Play (2)
    End If

    is the way I'm quoting correct?


  2. #2
    Senior Member
    Join Date
    Jun 2000
    The only problem is that you are using numeric operators where you should be using string operators...so basically use this:

    If (cookie_variable eq "false")
    Go to and Play (Scene 1, 225)
    Else If (cookie_variable eq "true")
    Go to and Play (2)
    End If

    I think that should make it work...hope it helps.

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