[thelist] Text length issue

Prit Pal Virdi pvirdi at quark.com
Mon May 23 09:41:16 CDT 2005


> Hi All,
> 	Can anybody tell me why the trace() gives me 1 as length of the text even there is no text in the text field.
> 	This appears as there is a return character inside the text field coz when I click in the text field to type some text cursor appears at the second line.
> 
> _root.createTextField("a", 0, 0, 0, 500, 500);
> a.type = "input";
> a.html = true;
> a.multiline = true;
> a.border = true;
> a.wordWrap = true;
> 
> a.htmlText = "<P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"43\" COLOR=\"#00FF00\"></FONT></P>";
> trace(a.text.length);
> 
> Thanks in advance.
> - Polly


More information about the thelist mailing list