A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: variable question.

  1. #1
    Still a Junior Member
    Join Date
    Nov 2000

    variable question.

    Here is my problem.

    I have a main movie timeline. In that movie I have several movie clips that I want to play when a variable is entered in a external movie that I load at level 1.

    When I use this on the main time line.

    if(_level1.coin3 = "1"){

    The movie automatically starts playing.

    When I use this

    if(_level1.coin3 == "1"){

    Nothing happens no matter what variable is put in.

    Anyone know what im doing wrong?
    There should be something here but
    there is still just this, why can I not be more creative in a pinch?

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    CFA2h (respect the HEX)
    = means you are assigning it the value of 1

    == means you checking the equality to 1

    sounds like a path/scope issue.. like the var isnt getting set or checked correctly..

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