Ejemplo de como crear un evento listener para controlar radiobuttons.
//Atacheamos los componentes
attachMovie("RadioButton", "boton1", 1);
attachMovie("RadioButton", "boton2", 2);
attachMovie("RadioButton", "boton3", 3);
//Propiedades comunes de todos los botones
for (i=1; i<4; i++) {
_root["boton"+i].groupName = "webs";
_root["boton"+i].labelPlacement = "left";
_root["boton"+i]._y = _root["boton"+i]._y+(i*20);
}
//Botón 1
boton1.label = "Elecash.org";
boton1.data = "http://www.elecash.org";
//Botón 2
boton2.label = "Elecash blog";
boton2.data = "http://www.elecash.org/blog";
//Botón 3
boton3.label = "CristaLab.com";
boton3.data = "http://www.cristalab.com";
alClicar = new Object();
alClicar.click = function(evento) {
getURL(evento.target.selection.data, "_blank");
trace("Has seleccionado el botón "+evento.target.selection);
};
webs.addEventListener("click", alClicar);

