# Radio button change event?

**URL:** <https://forum.kirupa.com/t/radio-button-change-event/252111>\
**Category:** Uncategorized\
**Created:** [February 16, 2008, 1:08am UTC](https://forum.kirupa.com/t/radio-button-change-event/252111 "2008-02-16T01:08:57Z")\
**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, 1:08am UTC](https://forum.kirupa.com/t/radio-button-change-event/252111/1 "2008-02-16T01:08:57Z")

</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:

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;  
}  
}
