Aqui codigo xml
Código XML :
<menu> <seccion texto="INICIO"> </seccion> <seccion texto="EVENTOS"> </seccion> <seccion texto="SERVICIOS"> <boton texto="boton uno" /> <boton texto="boton dos" /> <boton texto="boton tres" /> </seccion> <seccion texto="GALERIA"> </seccion> <seccion texto="VIDEOS"> </seccion> <seccion texto="CONTACTO"> </seccion> </menu>
Aqui el as carga muy bien eso no es problema el detalle es como hacer k me cargue otros swf externos en el flash index
Código ActionScript :
var docXML = new XML();
docXML.ignoreWhite = true;
docXML.onLoad = function (ok)
{
if (ok)
{
origenX = 10;
origenY = 0;
hBtnSeccion = 32;
wBtnSeccion = 118;
hBtnLink = 24;
espacio = 1;
_root.createEmptyMovieClip("mcMenu", _root.getNextHighestDepth());
for (i = 0; i < docXML.firstChild.childNodes.length; i++)
{
refXML = docXML.firstChild.childNodes[i];
refBloque = mcMenu.createEmptyMovieClip("bloque" + i, mcMenu.getNextHighestDepth());
refBloque._x = origenX + i * wBtnSeccion + espacio * i;
refBloque.attachMovie("mcBtnSeccion", "btnSeccion", refBloque.getNextHighestDepth());
refBloque.btnSeccion.txtSeccion.text = refXML.attributes.texto;
}
}
};
docXML.load("menu.xml");porfavor si alguien me pudiera ayuda no soy experto en action script ni nada de eso por eso pido de su ayuda
