# Detecting input field background color

**URL:** <https://forum.kirupa.com/t/detecting-input-field-background-color/306129>\
**Category:** flash\
**Created:** [March 10, 2010, 5:01am UTC](https://forum.kirupa.com/t/detecting-input-field-background-color/306129 "2010-03-10T05:01:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtome](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@newtome](https://forum.kirupa.com/u/newtome)\
**Post date:** [March 10, 2010, 5:01am UTC](https://forum.kirupa.com/t/detecting-input-field-background-color/306129/1 "2010-03-10T05:01:11Z")

</div>

Various functions can set my input fields to one of 4 background colors using the form \<inputfield\>.setStyle(“backgroundColor”, \<color\>). How can I find out whether my input field has been colored and, if so, to which color?
