Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/03/2008, 10:07
kaquna
 
Fecha de Ingreso: agosto-2007
Mensajes: 130
Antigüedad: 16 años, 9 meses
Puntos: 0
noticias xml con hipervinculo

hola a tod@s

hace dias consegui que mi noticiero xml funcionara. ahora estoy intentando colocar en el cuerpo de la noticia un hipervinculo. he estado buscando en foros y he probado con todo y no me funciona.

este es el codigo del flash

Código:
for(var i=0; i<nodes.length; i++) {   
         noticias.duplicateMovieClip("noticias"+i, i, {_x:0, _y:i*131})
         this.ref["noticias"+i].titulo_txt.text = nodes[i].attributes.name
         subnodes = nodes[i].childNodes
         this.ref["noticias"+i].comentario_txt.text = subnodes[0].firstChild.toString()
         this.ref["noticias"+i].imagen_mc.loadMovie(subnodes[1].firstChild.toString())
      }
y el xml tiene una pinta asi mas o menos

Código:
<?xml version="1.0" encoding="UTF-8"?>
<data>
	<title name="titulo de la noticia1">
		<comments>cuerpo de la noticia1 &lt;a href='http://www.web.com/' target='blank'&gt;enlace&lt;/a&gt;</comments>
		<image>imagenes/noticia1.jpg</image>
	</title>
<title name="titulo de la noticia2">
		<comments>cuerpo de la noticia2 &lt;a href='http://www.web.com/' target='blank'&gt;enlace&lt;/a&gt;</comments>
		<image>imagenes/noticia2.jpg</image>
	</title>
</data>
he probado sustituyendo ">" por "&gt;" pero tampoco funciona. la casilla de generar html del texto dinamico la tengo activada...

que hago mal?

gracias a tod@s