Quiero insertar una etiqueta html en un campo de texto, ya seleccione que sea rendereado como html, pero al en mi archivo de xml solo me permite poner una sola etiqueta y por la tanto ningun otro texto por ejemplo un parrafo con un link en el mismo parrafo.
Código XML :
<?xml version="1.0" encoding="UTF-8"?> <xml> <title name="titulo pendiente"> <comments>La piel del rostro en cada etapa de la vida requiere diferentes <![CDATA[<font color="#999999" face="Verdana" size="9"> Soluciones<font color="#ffffff"><7font>]]> aqui va mas informacion bla blaí. </comments> <image>img/mweb_belleza.png</image> <links><a href="http://www.yahoo.com">Yahoo</a></links> </title> <title name="mas texto"> <image>img/foto_belleza.jpg</image> </title> </xml>
en el tag de links si me aparece el link pero es lo unico, no puedo añadir otra etiqueta o texto normal, tambien intenté usar <![CDATA[ y tampoco funciona pues todo lo que esta después se desaparece.
Este es el AS de mi archivo que hice de otro tutorial
Código ActionScript :
//Create the XML Object
myXML = new XML()
myXML.ignoreWhite = true
//Load XML file
myXML.load("xml/DATA_C.xml")
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(succes){
if(succes){
var root = this.firstChild
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].htmlText = subnodes[0].firstChild.toString()
this.ref["Links_txt"+i].htmlText = subnodes[2].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[1].firstChild.toString())
}
} else trace("Error loading XML document")por lo que eh estado investgando algo tiene que ver con los nodos, intenté cambiarlos a .nodeValue pero ya no sé por donde buscarle.
Gracias por su tiempo y atención
Saludos
