Skip to main content
Participant
October 3, 2007
Question

Help with simple if / and _visible

  • October 3, 2007
  • 3 replies
  • 199 views
I've got a number of layers in my fla. One of them has a watermark (its a mc) on it that shows if the account is not active. I have moved the code to the MC as a last resort as I for the life of me can't understand why I can't make this MC vanish when the value a "is_active" field is true. The values in the traces indicate the values are what I would expect. Someone please enlighten me.

This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
October 3, 2007
ok.
hipjimmerAuthor
Participant
October 3, 2007
Turns out the value was being cast as a string and causing the true/false problem. I tried every possible combination of if else just if etc. All set now.
kglad
Community Expert
Community Expert
October 3, 2007
well, the best you can hope for is repeatedly resetting that movieclip's _visible property to true and then false in the same loop. otherwise (when _level0.agent_is_active is false, it's always going to be true.

do you really want to use an if-else statement?