View Full Version : problem with variables

05-01-2001, 08:22 AM
Hi, I'm making a flash animation. Currently, I have 6 buttons in the movie. The basic idea is, if you click the button, the movie clip associated with it disappears. It makes a check to see if you've clicked all 6 before it allows you to move on. If the check fails, it sends you to a different part of the movie, tells you what is wrong, and sends you back to where you were. The problem arises when it sends people to this other part, the movie clips that disappeared when they were clicked, reappear. I tried making a variable to see if it was clicked, like this:

setproperty("mc1", _visible, "0")

it disappears fine, and that frame works properly

then, at the frame where i send it to if you did not click all the buttons, i have this code in that frame:

if var1=true

however, if I click any button, even if it isn't the one that sets var1=true, mc1 still disappears. I was wondering if anyone knew what i was doing wrong..any help would be appreciated. Thanks

05-01-2001, 09:58 AM
The correct code has not quotes:

setproperty("mc1", _visible, 0)

or better still

setproperty("mc1", _visible, false)

or even better still

_root.mc._visible = false