Mi duda es la siguiente:
Es posible aplicar un CSS style en un dato cargado de un documento XML en FlashMX 2004 ?
Aquí tenéis un ejemplo:
System.useCodepage = true;
var meuXML:XML = new XML();
meuXML.load("iniciando1_xml_css.xml");
meuXML.ignoreWhite = true;
meuXML.onLoad = function(){
var format = new TextField.StyleSheet();
var path = "estilo1.css"
var one = this.childNodes[0].childNodes[0].attributes.id;
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
texto1.styleSheet = format;
texto1.text = one;
} else {
output.text = "Error loading CSS file!";
}
}
}
Me gustaria hacer algo así:
var one = "<p class='negroB20'>this.childNodes[0].childNodes[0].attributes.id</p>";
Pero no es posible porque no me devuelve el dato del documento XML. Lo que me devuelve es this.childNodes[0].childNodes[0].attributes.id como una expresión.
Qué debo hacer para que funcione?
Salu2,
Gianna