I have a dynamic text feild tht is created once my loadVars is successful. The issue is when I try to set the dynamic text to html it doesn’t display at all. Her is the code
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.html = true;
holder.new_txt.htmlText = myLV.info;
trace("hippy");
} else {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._rotation = 45;
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.text = "There was a problem loading in the text content through the load vars function.";
}
If I comment out the line:
holder.new_txt.html = true;
everything thing works fine with my embedded font.