hey all,
I’m wondering why the formatting isn’t being applied to the text i’ve loaded from an xml file:
listenerObject3 = new Object();
listenerObject3.change = function() {
value1 = categorycb.value;
category_xml = new XML();
category_xml.load(value1);
category_xml.ignoreWhite = true;
category_xml.onLoad = function() {
var howMany:Array = new Array();
howMany = this.firstChild.childNodes;
if (howMany.length>0) {
for (var i:Number = 0; i<howMany.length; i++) {
var currentLink = howMany*;
var currentLink_mc = textloader.createEmptyMovieClip(“links”+i, i);
var currentLink_mc2 = currentLink_mc.createTextField(“my_txt”+i, 3, 0, 0, 500, 30);
currentLink_mc._y = i*thumb_spacing;
var my_fmt:TextFormat = new TextFormat();
this.currentLink_mc2.multiline = true;
this.currentLink_mc2.wordWrap = true;
this.currentLink_mc2.color = 0xFF0000;
this.currentLink_mc2.selectable = false;
currentLink_mc2.setTextFormat(‘my_fmt’);
currentLink_mc2.text = currentLink.attributes.business+’ ‘+’-’+’ '+currentLink.attributes.short;
currentLink_mc.link = currentLink.attributes.link;
currentLink_mc.onRelease = function() {
getURL(this.link, “_blank”);
};
}
}
};
};
any suggestions??
Thanks,
Mat