# Checking textfield input (for crying out loud)

**URL:** <https://forum.kirupa.com/t/checking-textfield-input-for-crying-out-loud/301115>\
**Category:** flash\
**Created:** [December 3, 2009, 6:28pm UTC](https://forum.kirupa.com/t/checking-textfield-input-for-crying-out-loud/301115 "2009-12-03T18:28:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [December 3, 2009, 6:28pm UTC](https://forum.kirupa.com/t/checking-textfield-input-for-crying-out-loud/301115/1 "2009-12-03T18:28:01Z")

</div>

I wish I knew enough about AS3 so that one little step did not take hours to figure out.

Anyway, I am trying to check data from a textfield making sure it is numbers only as well as a length of 3 only. This is what I have so far, which is not working.

var qnumber:TextField = q\_number;

if(qnumber != “0-9”)  
{  
trace(“words”);  
}

else  
{  
trace(“more words”);  
}

If someone can help, I would appreciate it!

MH
