![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/05/2009, 18:30
|
![Avatar de Lynxcraft](http://static.forosdelweb.com/customavatars/avatar203476_2.gif) | | | Fecha de Ingreso: noviembre-2007 Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 17 años, 2 meses Puntos: 51 | |
Respuesta: Problema bucle for AS XML Flash var myCSS = new TextField.StyleSheet();
var cssURL = "estilo.css";
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function(ok) {
if (ok){
parseMyXML();
}
}
xml.load("formacion.xml");
function parseMyXML(){
for (i=0;i<xml.firstChild.childNodes("evento").length; i++){
var datos1:String = xml.firstChild.childNodes[i].attributes.dia;
ejemploTexto += "<p class='titulo'>"+datos1+"</p>";
}
}
myCSS.load(cssURL);
myCSS.onLoad = function(exito) {
if (exito) {
my_txt.styleSheet = myCSS;
my_txt.text = ejemploTexto;
}
};
__________________ Sobran las ideas cuando faltan ganas de trabajar en ellas Lynxcraft |