# Problem with RadioButtons

**URL:** <https://forum.kirupa.com/t/problem-with-radiobuttons/158160>\
**Category:** flash\
**Created:** [August 7, 2005, 7:53pm UTC](https://forum.kirupa.com/t/problem-with-radiobuttons/158160 "2005-08-07T19:53:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dst101](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dst101](https://forum.kirupa.com/u/dst101)\
**Post date:** [August 7, 2005, 7:53pm UTC](https://forum.kirupa.com/t/problem-with-radiobuttons/158160/1 "2005-08-07T19:53:12Z")

</div>

I have a map with a set of radio buttons that when clicked should turn the visisbility of the choosen routes.

```auto

function showRoute(route)
{
     var route:MovieClip;
     
     //setProperty (_root.mcLivingstonSmall.route, _visible, true);
     _root.mcLivingstonSmall.setProperty(route, _visible, true);
}

Listener = new Object();
Listener.click = function()
{
     var route:String = mcCPanel.radioGroup.selectedData;
     showRoute(route);
     trace(route)
}
mcCPanel.radioGroup.addEventListener("click", Listener);

```

this code works only if I have the mc’s in the \_root, but as soon as I put them back into the main mc ‘mcLivingstonSmall’, it does not like it.  
And I can not seem to get round this nippy problem.

Any suggestions?
