Parece ser que la parte que quería en negrita no ha salido. Vuelvo a poner el código que tengo:
Código :
var opcionesXML:XML = new XML();
opcionesXML.ignoreWhite = true;
opcionesXML.onLoad = function (sucess:Boolean) {
if (sucess) {
var opciones:Array = this.firstChild.childNodes;
for(i = 0; i < opciones.length; i++) {
_root.menu.menu2.attachMovie("mcBoton", "boton"+i, _root.menu.menu2.getNextHighestDepth());
_root.menu.menu2["boton"+i]._x = -135;
_root.menu.menu2["boton"+i]._y = 150 + (i * 25);
_root.menu.menu2["boton"+i].b.texto = opciones[i].childNodes[0].firstChild;
_root.menu.menu2["boton"+i].linkurl = opciones[i].childNodes[1].firstChild;
Hasta aqui todo bien. El siguiente código es el que tiene algun error:
Código :
var tamaño = 110;
var micolor=new Color(this)
_root.menu.menu2["boton"+i].onRollOver = function(){
_xscale=tamaño;
_root.menu.menu2.mcBoton.setRGB(0x993366)
}
_root.menu.menu2["boton"+i]. = function(){
_xscale=100;
micolor.setRGB(0xffffff)
}
Desde aqui todo OK:
Código :
_root.menu.menu2["boton"+i].onRelease = function () {
getURL(this.linkurl, "_blank");
}
}
} else {
trace("Error al Leer archivo XML");
}
}
opcionesXML.load("menu.xml");