
Код AS1/AS2:
var newsXML:XML = new XML();
newsXML.ignoreWhite = true;
newsXML.onLoad = function(success) {
if (success) {
var news:Array = newsXML.firstChild.childNodes;
_root.createEmptyMovieClip("txt_mc", 0);
for (i = 0; i < news.length; i++) {
var output:String = "";
output += "<b>";
output += news[i].childNodes[0].firstChild.nodeValue;
output += "</b> - <i>";
output += news[i].childNodes[1].firstChild.nodeValue;
output += "</i>";
txt_mc.createTextField("txt_name" + i , i, 0, i * 20, 300, 20);
txt_mc['txt_name' + i].html = true;
txt_mc['txt_name' + i].htmlText = '<a href="'+news[i].childNodes[2].firstChild.nodeValue+'">'+output+'</a>';
}
}
}
newsXML.load("news.xml");
А если захотите сделать подчеркивание при наведении, смотрите TextField.styleSheet, TextField.StyleSheet