# TextField background color

**URL:** https://forum.kirupa.com/t/textfield-background-color/8689
**Category:** flash
**Created:** [November 26, 2002, 2:14pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689 "2002-11-26T14:14:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thriller](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@thriller](https://forum.kirupa.com/u/thriller)
#### Post date: [November 26, 2002, 2:14pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689/1 "2002-11-26T14:14:35Z")

</div>

Is it possible to change the color of a textField. It’s an input field and I want to make the background grey

So if you know a solutions please give it to me

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 26, 2002, 2:41pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689/2 "2002-11-26T14:41:46Z")

</div>

You could simply draw a grey square an place it behind the text field.

=)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 26, 2002, 3:59pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689/3 "2002-11-26T15:59:43Z")

</div>

Thanx, but I got a solution using actionscript. This is a better way, because you can change the font color as well.

I first tried youre solution, but this is better

But thanx anyway!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 26, 2002, 4:04pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689/4 "2002-11-26T16:04:47Z")

</div>

Spread the knolege my friend.

=)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 26, 2002, 4:09pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689/5 "2002-11-26T16:09:05Z")

</div>

Alright here I go…

Use this code in the first frame

* * *

## myTextField.background=1 myTextField.border=1 myTextField.backgroundColor=0x666666

name youre textfield “myTextField”

Now you have a colored textField.

I hope you get it.  
🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 26, 2002, 11:04pm UTC](https://forum.kirupa.com/t/textfield-background-color/8689/6 "2002-11-26T23:04:43Z")

</div>

Thanks dude!

=)
