Hi All,
I have a problem displaying the text with indexing in texField in Flash.
I have html code as source. I used TextField.htmlText for doing this.
I have html source code for the follwing text.
[COLOR=#008080]1. First Line
2. Second Line
3. Third Line
[/COLOR][COLOR=#008080][/COLOR]In flash it is coming as shown below.
[LIST]
[][COLOR=#008080]First Line[/COLOR]
[][COLOR=#008080]Second Line[/COLOR]
[*][COLOR=#008080]Third Line[/COLOR]
[/LIST]Instead of numbers it’s showing bullten points. My code for doing this is
[COLOR=#8b4513]var [/COLOR][COLOR=#8b4513]url:String[/COLOR][COLOR=#8b4513] = “C:\Users\Krishna_Polu\Documents\My Received Files\New Text Document.txt”;
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
loadit.load(new URLRequest(url));
var biotext:TextField=new TextField();
biotext.x= 100;
biotext.y = 100;
biotext.autoSize = TextFieldAutoSize.LEFT;
biotext.multiline = true;
biotext.border = true;
function completeHandler(event:Event):void {
biotext.htmlText = event.target.data as String;
addChild(biotext);
}
[/COLOR]
I am sure, I am missing something here. Please help me in getting text same as in Html.
Thanks in advance!