this was my first approach but when i developed it to load text from the text file all the text changed color and i abandoned the approach which was basically create a text field inside a movie clip. anyway my starting point was this.
fmtNav = new TextFormat();
fmtNav.url = "
fmtNav.bold = true;
this.createEmptyMovieClip("nav", 101);
this.nav.createTextField("link1", 1,-200,25,163,19);
with (this.nav.link1) {
border = true;
text = "button1";
textColor = 0xFF0000;
html = true;
setTextFormat(fmtNav);
}
this.nav.onRollOver = function() {
this.link1.textColor = 0x3366ff;
}
this.nav.onRollOut = function() {
this.link1.textColor = 0xff0000;
}
maybe you can go in another direction so i have left as is and not shown where i went so as to not blind side you.
............................
second approach to search and replace the link text format
String.prototype.replace = function(srch_str, repl_str) {
return this.split(srch_str).join(repl_str);
};
x_str = '<font color = "#990000">';
x_str.replace('<font color = "#990000">', '<font color = "#000099">');
just started this one and not had the time so far to go further. the search and replace bit works fine with text and ought to work with htmltext.
my plan was to copy the contents of the text field into a variable, empty the text box, search and replace with variable, then reload the text.
im kind of busy at the moment so i wont have time to look at it. i think this approach has more promise than the first.
why not try to run with it bentlekyf, and see if leads anywhere