| Temas de la semana | Flash Cargar un control combobox con un fichero xml |
| ¿Cómo llegar?: | ActionScript Flash Cargar un control combobox con un fichero xml |
| Pasos : | |
| Notas : |
var obj1 = pobla; datos_xml2=new XML(); datos_xml2.ignoreWhite=true; datos_xml2.load("http://www.midominio.es/pobla.xml"); datos_xml2.onLoad=function(){ for (var i=0; i < datos_xml2.firstChild.childNodes.length;i++){ texto2 = datos_xml2.firstChild.childNodes[i].childNodes[0].firstChild; obj1.addItem("" + texto2,"" + texto2); } } |