# Radio button change event?

**URL:** <https://forum.kirupa.com/t/radio-button-change-event/252110>\
**Category:** flash\
**Created:** [February 16, 2008, 12:41am UTC](https://forum.kirupa.com/t/radio-button-change-event/252110 "2008-02-16T00:41:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarmanje](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jarmanje](https://forum.kirupa.com/u/jarmanje)\
**Post date:** [February 16, 2008, 12:41am UTC](https://forum.kirupa.com/t/radio-button-change-event/252110/1 "2008-02-16T00:41:37Z")

</div>

Hi there…  
for some reason, my code thinks everytime i am selecting radio1 (the first button)??  
It can’t detect the other 2 buttons!

Please help me solve this… Any help is appreciated

I have 3 radio buttons in one mc  
radio1 (value = good) radio2 (value = big) radio3 (value = small)

All in the same group “radioGroup1”

here is my code:

```auto
radio1.addEventListener(Event.CHANGE, changeHandler1)
function changeHandler1(event:Event):void {

if(event.currentTarget.value=="good")
{
trace(event.currentTarget.value)
combo.visible = false;
} 
else
{
trace(event.currentTarget.value)
combo.visible = true;
}
}

```
