Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/05/2009, 18:30
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 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