# Input text fields change colour when entered - great but what if....?

**URL:** <https://forum.kirupa.com/t/input-text-fields-change-colour-when-entered-great-but-what-if/75281>\
**Category:** Uncategorized\
**Created:** [January 7, 2005, 11:32am UTC](https://forum.kirupa.com/t/input-text-fields-change-colour-when-entered-great-but-what-if/75281 "2005-01-07T11:32:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvador\_marley](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@salvador\_marley](https://forum.kirupa.com/u/salvador_marley)\
**Post date:** [January 7, 2005, 11:32am UTC](https://forum.kirupa.com/t/input-text-fields-change-colour-when-entered-great-but-what-if/75281/1 "2005-01-07T11:32:44Z")

</div>

I am uploading a file with input text field that changes colour when you click in it - this is great, but what if i wanted the following:

in the initial state, the text box is grey as you can see, but when i click inside it, it fades to pink instead of suddenly just changing to pink. And likewise, when i click outside the box it fades back to grey.

You will see what i mean if you view the file.

it’s mx not mx2004

Don’t know if this would be better in the actionscript forum, but well it’s here. 🙂

Thanks.
