# setChangeHandler

**URL:** <https://forum.kirupa.com/t/setchangehandler/12991>\
**Category:** flash\
**Created:** [February 7, 2003, 5:04am UTC](https://forum.kirupa.com/t/setchangehandler/12991 "2003-02-07T05:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chapster](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chapster](https://forum.kirupa.com/u/chapster)\
**Post date:** [February 7, 2003, 5:04am UTC](https://forum.kirupa.com/t/setchangehandler/12991/1 "2003-02-07T05:04:26Z")

</div>

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

```auto

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

```auto

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 ??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 8, 2003, 4:58am UTC](https://forum.kirupa.com/t/setchangehandler/12991/2 "2003-02-08T04:58:21Z")

</div>

Howdy… 🙂

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

I think…

```auto

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

```

should do the job for you… 🙂
