# Disable and Enable Text Input box

**URL:** <https://forum.kirupa.com/t/disable-and-enable-text-input-box/314681>\
**Category:** flash\
**Created:** [October 6, 2010, 6:41am UTC](https://forum.kirupa.com/t/disable-and-enable-text-input-box/314681 "2010-10-06T06:41:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)\
**Post date:** [October 6, 2010, 6:41am UTC](https://forum.kirupa.com/t/disable-and-enable-text-input-box/314681/1 "2010-10-06T06:41:46Z")

</div>

Hi,

I’m doing a presentation flash and in my presentation, I don’t want to show my mouse movement.

I have a text input box for me to enter text. The text box property is set to dynamic.

I have create a keylistener for me to press “I” or “i” and when I press “I”, I want my text input box to enable me to type text in.

How can I code in AS to achieve this action?

Initial state of text input box is disabled, when I press “I” or “i” text input enabled and I can type in text. After that, I press another key, will disable the typing of text again.

Any assistance would be appreciated!
