setChangeHandler

Can you use the setChangeHandler if the component is inside a mc. and the code is on the main timeline. It works if I place this code inside the mc


function radioDisplay (component) {
	radio = component.getValue() ;
	trace ( radio ) ;
}
contactGroup.setChangeHandler ("radioDisplay") ;

Now if I put this on the main timeline with all the rest of my code
but just changing the path of the handler it won’t work


function radioDisplay (component) {
	radio = component.getValue() ;
	trace ( radio ) ;
}
rp.contactGroup.setChangeHandler ("radioDisplay") ;

the only thing I changed was the scope now it has the mc “rp” before it.
What the hell is up with that ??

Howdy… :slight_smile:

That’s where you specify the second argument of the function…

I think…


contactGroup.setChangeHandler ("radioDisplay", _level0);
// or
contactGroup.setChangeHandler ("radioDisplay", _parent);

should do the job for you… :slight_smile: