# Restricting input fields?

**URL:** <https://forum.kirupa.com/t/restricting-input-fields/175461>\
**Category:** flash\
**Created:** [January 14, 2006, 6:31pm UTC](https://forum.kirupa.com/t/restricting-input-fields/175461 "2006-01-14T18:31:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)\
**Post date:** [January 14, 2006, 6:31pm UTC](https://forum.kirupa.com/t/restricting-input-fields/175461/1 "2006-01-14T18:31:42Z")

</div>

I know I can tell flash that I explicitly want a few keys to work, but is there any way to tell it I don’t want keys to work on the input field?

For example If I want all of the numbers to work except for the number 9 I have to do

text1.restrict = “012345678”;

Can’t I do something like

text1.restrict != “9”;
