# Empty TextField(input) length

**URL:** <https://forum.kirupa.com/t/empty-textfield-input-length/305206>\
**Category:** flash\
**Created:** [February 21, 2010, 10:58am UTC](https://forum.kirupa.com/t/empty-textfield-input-length/305206 "2010-02-21T10:58:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![psych](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/psych/32/2839_2.png) [@psych](https://forum.kirupa.com/u/psych)\
**Post date:** [February 21, 2010, 10:58am UTC](https://forum.kirupa.com/t/empty-textfield-input-length/305206/1 "2010-02-21T10:58:31Z")

</div>

Hi guys,

I keep having this “weird” problem.

If i add the TextField(input) which is multiline and on FocusEvent.FOCUS\_IN event trace it’s length, when it’s initially empty it keeps returning length “1” and that one character is whitespace " ". I don’t have this problem when TextField(input) is set to singleline.

Did anyone had similar issue or maybe know where is the the problem and how to solve it?

Thanks in advance,  
Best regards
