Hi all... I can't get my text to render as HTML no matter what I do, maybe I'm just missing something simple... Here is my code:
And then on frame 20 I have this:Code:function loadTxt(theTxt){ var lv:LoadVars = new LoadVars(); lv.onLoad = function(success:Boolean){ if (success){ my_text.html = true; my_text.htmlText = lv.txt; my_text.mouseWheelEnabled = true; my_text.selectable = true; my_text.multiline = true; }else{ trace ("cannot load text!"); } }; lv.load(theTxt); }
It loads fine but if I add any HTML say for instance <b> the text displays up until it gets to that point and then stops... I made sure that "render Text As HTML" was also checked... But no luckCode:loadTxt("text/file.txt")![]()



Reply With Quote

Bookmarks