|
|
 |
FN-FORUM Flash HTML Formating... Again!
date posted 25th June 2003 15:28
Excuse me for this.
Does anybody know how to solve this?
As mentioned before I've imported txt variable file have a button that:
on (press) {
txt=myData.HtxtOne;
txtFormat()
}
With function formatting dyn.text box and formatting html code from
variable:
function txtFormat(){
myText.multiline = true;
myText.wordWrap = true;
myText.type = "dynamic";
myText.background = false;
myText.border = false;
myText.html = true;
myText.htmlText = txt;
textFormat = new TextFormat();
textFormat.color = "0x000000";
textFormat.bullet = false;
textFormat.underline = false;
textFormat.size = 11;
textFormat.align = "right";
textFormat.font = "Verdana";
ScrollBar.setScrollTarget(myText);
formStyleFormat.addListener(ScrollBar);
formStyleFormat.applyChanges();
myText.setTextFormat(textFormat);
}
It works once BUT if you click again OR try to import a different
variable into the txt field later in the movie using the same function
the defined 'textFormat' properties are removed.
Is there a work around or a different method that can be used?
TIA
Kai
--
|
 |
|