# Dynamic component with setChangeHandler problem

**URL:** <https://forum.kirupa.com/t/dynamic-component-with-setchangehandler-problem/119725>\
**Category:** Uncategorized\
**Created:** [August 17, 2004, 5:31pm UTC](https://forum.kirupa.com/t/dynamic-component-with-setchangehandler-problem/119725 "2004-08-17T17:31:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trock](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@trock](https://forum.kirupa.com/u/trock)\
**Post date:** [August 17, 2004, 5:31pm UTC](https://forum.kirupa.com/t/dynamic-component-with-setchangehandler-problem/119725/1 "2004-08-17T17:31:46Z")

</div>

Hello…

I am trying to dynamically create a radio button component and assign a change handler to that component.

```auto

attachMovie("FRadioButtonSymbol", "propno", 6);
propno.setData("test");
propno.setChangeHandler("clickproperty");

function clickproperty(component) {
   radio = component.getData();
   trace(radio); //returns: "undefined"
  
   radioalt = propno.getData();
   trace(radioalt); //returns: "test"
}

```

As noted in my comments, using the component argument I am unable to get the data value. If I hardcode the path to my component it works fine.

I have done the same thing with a ComboBox (dropdown component) and it is able to resolve the component argument without a problem.

It is definitely CALLING the clickproperty function, but it is unable to resolve the value of the component arg? I cant imagine this is a limitation of the radio button component?

If I manually create a radio button (drag the component onto the stage) I am able to resolve the component argument successfully as well. It only seems to “break” when I create the component dynamically ☹
