HTML Links in xml

HTML Links in xml.

Hi all,

I’m making a news section where the news comes from an xml file, the xml contains a date and a block of news, within the block of news I wanted to have links.

the xml looks like this:

I’m using the CDATA tags around the links

<?xml version="1.0" ?>
		<news>New book avaiable for download from <![CDATA[ <a href=""></a> ]]></news>
		<news>Second piece of news Second piece of news Second piece of news Second piece of news Second piece of news Second piece of news Second piece of news </news>


I’m bring the xml into flash using this code:

var gutter = 8;
var newsBlock = 50;
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
	if (success) {
	} else {
		trace("Error XML not loaded");
function DisplayNews() {
	var start1 = my_xml.firstChild.childNodes;
	for (var i = 0; i<start1.length; i++) {
		displayNews = news_mc.holder_mc.attachMovie("news_mc", "news_mc"+i, i+1);
		displayNews.dates = start1*.firstChild.childNodes; = start1*.firstChild.nextSibling.childNodes;
		displayNews.news_txt.html = true;
		displayNews.date_txt.width = 155;
		displayNews.date_txt.text = displayNews.dates;
		dateHeight = displayNews.date_txt._height;
		displayNews.news_txt._width = 155;
		displayNews.news_txt.text =;
		displayNews.news_txt.autoSize = true;
		newsHeight = displayNews.news_txt._height;
		baseHeight = Math.round(dateHeight+newsHeight+gutter);
		displayNews.base_mc._height = baseHeight;
		if (i != 0) {
			prevClip = news_mc.holder_mc["news_mc"+(i-1)];
			displayNews._y = Math.round((prevClip._y+prevClip._height+gutter));

The code attaches news_mc from the library which contains two text fields, date_txt and news_txt, the information from the xml is placed into the different fields. The news_txt field is set with html to true. The text field just displays the text

Is it possible to get the these links to work in Flash ?