Tema: Flash y XML
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/03/2004, 09:47
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
Segun tu XML aqui esta el Codigo....

Código:
var mi_xml = new XML();
mi_xml.ignoreWhite = true;
mi_xml.load("temporal.xml");
mi_xml.onLoad = parsea;
function parsea() {
	nodo = this.firstChild.childNodes;
	for (var a = 0; a<nodo.length; a++) {
		mi_label = nodo[a].firstChild;
		mi_data = nodo[a].attributes.url;
		mi_cb.addItem(mi_label, mi_data);
	}
}
//---------------------------------------
//Propiedades del Combo
mi_cb.setChangeHandler("aplica");
function aplica(component) {
	trace(component.getSelectedItem().data);
	//getURL(component.getSelectedItem().data , "_blank")
}
Solo necesitas un ComboBox con nombre de instancia mi_cb

Saludos!!