PDA

View Full Version : checkbox problem in flash MX


tonyGasparich
12-13-2004, 01:21 PM
This forum has been a big help and I can usually find the answers I need. This one is driving me buggy, though. I want to use the checkbox component in flash mx to control the visibility of movie clips. I wrote a simple function,

function makeVisible(whichClip) {
[whichClip]._visible = ![whichClip]._visible;
}

but I can't figure out how to configure the change handler in the checkbox component to get it to work. I've set the movie clip visibility to zero but I can't get the checkbox to make it visible. Any help is greatly appreciated.

CyanBlue
12-13-2004, 04:21 PM
Howdy and Welcome... :)

Your path is invalid... You have to do something like this to reference the movieClip properly...

this[whichClip]._visible
// or
_level0.someMC[whichClip]._visible