I have a map with a set of radio buttons that when clicked should turn the visisbility of the choosen routes.
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?