Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/08/2010, 15:02
kidart
 
Fecha de Ingreso: junio-2010
Mensajes: 108
Antigüedad: 13 años, 10 meses
Puntos: 2
Como cargar un MC desde botonera flash XML?

Hola amigos,

Tengo una botonera hecha en flash, que carga su info a través de un archivo XML.
Los botones cargan perfecto, pero el link que tienen asignado es a un HTML, y yo estoy usando esta botonera dentro de un archivo flash para cargar SWF en una MC llamado "contenedor".


- El codigo de cada boton XML es:

Código XML:
Ver original
  1. <menuItem
  2.         titleName="GNV GROUP OFICINAS"
  3.         link="oe/oe_1.swf"
  4.         window="contenedor"
  5.     >


- El actionscript que hace referncia al link dice:

Código Actionscript:
Ver original
  1. //in this loop we start filling the first three arrays we just mentioned with the rest
  2.             //of the information in the nodes of the XML file
  3.             for(i = 1; i < my_xml.firstChild.childNodes.length; i++){
  4.                 arrTitles.push(my_xml.firstChild.childNodes[i].attributes.titleName);
  5.                 arrLinks.push(my_xml.firstChild.childNodes[i].attributes.link);
  6.                 arrWindows.push(my_xml.firstChild.childNodes[i].attributes.window);
  7.             }


Yo ya habia hecho reemplazando el link url por un "load movie", pero en este caso no se como cambiarlo....


Muchas gracias desde ya!