ya, lo logre...se los muestro.
-- XML --
Código :
<botones>
<item name="Mis Asignaturas en Linea" link="http://www.anonimouse.cl"/>
<item name="Boletin Notas Parciales" link="http://www.sii.com" />
</botones>
-- ACTIONSCRIP --
Código :
var myMenu:XML = new XML();
myMenu.ignoreWhite = true;
myMenu.load("mydata.xml");
linkBoton = new Array();
textoBoton = new Array();
myMenu.onLoad = function() {
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
textoBoton[i] = this.firstChild.childNodes[i].attributes.name;
linkBoton[i] = this.firstChild.childNodes[i].attributes.link;
}
creaBtns(this.firstChild.childNodes.length);
};
function creaBtns(cuantosBotones) {
var separacion = 0;
$Yini = 85.7;
for (var i = 0; i<cuantosBotones; i++) {
this.attachMovie("boton", "boton"+i, this.getNextHighestDepth());
_root["boton"+i].link = linkBoton[i];
_root["boton"+i].mytexto.text = textoBoton[i];
_root["boton"+i]._x = 398.9;
_root["boton"+i]._y = $Yini+i*separacion+_root["boton"+i]._height*i;
_root["boton"+i].onRelease = function() {
getURL(this.link, "blank");
};
}
}
En la librería tengo un movieClip de nombre boton,
// cuya propiedad de linkage es el mismo nombre, y exportado en el
// primer frame, y dentro de este movieClip hay un texto dinámico
// de nombre mytexto, que tiene embebido todos los carácteres.
// para finalizar, a veces uno crea estos botones en peliculas que
// carga al interior de otros MovieClips,
// en esos casos y para no crear conflictos, con _root.
// se puede usar una variable temporal
// y el código en la línea quedaría mas o menos así:
// btn=eval("boton"+i);
// btn.link = linkBoton[i];
// btn.mytexto.text = textoBoton[i];
// btn._x = 100;
// etc.....
autor: Rubén Quintana. ..gracias Rubén.