Hi,
i have an external txt file that i wanna display as a htmlText in flash.
i have the following code.
var rhetoric:TextField = this.createTextField("rhetoric", this.getNextHighestDepth(), 0, 0, 400, 200);
var rhetoric_fmt:TextFormat = new TextFormat();
rhetoric_fmt.align = "left";
rhetoric_fmt.color = 0x333333;
rhetoric_fmt.font = "Helvetica";
rhetoric_fmt.size = 12;
rhetoric_fmt.leading = 1;
rhetoric.wordWrap = true;
rhetoric.selectable = false;
rhetoric.antiAliasType = "advanced";
rhetoric.gridFitType = "pixel";
rhetoric.embedFonts = true;
rhetoric.html = true;
rhetoricText = new LoadVars();
rhetoricText.load("textFile/rhetoric.txt");
rhetoricText.onLoad = function()
{
rhetoric.htmlText = this.rhetoric;
rhetoric.setTextFormat(rhetoric_fmt);
};
in rhetoric.txt
&rhetoric=We differentiate ourselves from the rest of the competition through the way we look at consumerism and communications.
<b>How can your products impact the lives of your customers?</b>
We believe in the power of experiences, it is what our lives are made up of, how we learn, how we evolve.&
but when display to flash it doesnt give me the <b></b> i wanted…
Anything wrong with my code?