Hi Kirupers,
I’ve got a strange glitch goign on in one of my flash files. I load a set of menu items from xml and format their text using TextFormat at the time of loading. This works great until I start jumping around in the timeline. Working forwards in time it maintains its formatting, but if I jump backwards at all, it loses its alignment and defaults to Left Side. Can anyone help me?
//create the function that will load the xml info into the dynamic menu text
function CreateMenu(side_xml){
//makes the xml file easier to navigate
var titles = side_xml.firstChild.childNodes;
//set up the text formatting options
var txt_fmt:TextFormat = new TextFormat();
txt_fmt.align = “center”;
//loop to load the xml data into the button text fields using buttonRa
for (var i=0; i<titles.length; i++) {
if (titles*.attributes.name == “Empty”) {
titleRa*.text = “”;
trace (“empty value loaded”);
}
else {
titleRa*.text = titles*.attributes.name;
titleRa*.setTextFormat (txt_fmt);
//trace (title*);
trace(“loaded Node Value” + i);
}
}
}