# Button Component Color

**URL:** <https://forum.kirupa.com/t/button-component-color/42994>\
**Category:** flash\
**Created:** [February 17, 2004, 7:45pm UTC](https://forum.kirupa.com/t/button-component-color/42994 "2004-02-17T19:45:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Toye](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@Nick\_Toye](https://forum.kirupa.com/u/Nick_Toye)\
**Post date:** [February 17, 2004, 7:45pm UTC](https://forum.kirupa.com/t/button-component-color/42994/1 "2004-02-17T19:45:29Z")

</div>

Hi all,

I want to know if it is possible to change the overstate of this component button. I can’t seem to be able to edit it. I have attached a copy of the file.

It currently changes to green I want it to go another colour.

Many thanks in advance

---

<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:** [February 17, 2004, 10:19pm UTC](https://forum.kirupa.com/t/button-component-color/42994/2 "2004-02-17T22:19:03Z")

</div>

no you have not attached a copy of your file 😉

---

<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:** [February 17, 2004, 10:40pm UTC](https://forum.kirupa.com/t/button-component-color/42994/3 "2004-02-17T22:40:10Z")

</div>

i’m always doing that.

---

<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:** [February 18, 2004, 8:45am UTC](https://forum.kirupa.com/t/button-component-color/42994/4 "2004-02-18T08:45:39Z")

</div>

place this on the button. it’s the only thing I know…

[AS]  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
this.setStyle(“themeColor”, “haloOrange”);  
this.setStyle(“color”, “0xFF0000”);  
} else {  
this.setStyle(“themeColor”, “haloGreen”);  
this.setStyle(“color”, “0x000000”);  
}  
}

[/AS]

---

<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:** [February 18, 2004, 10:18am UTC](https://forum.kirupa.com/t/button-component-color/42994/5 "2004-02-18T10:18:24Z")

</div>

Can’t we just delve into the skins and change it there?

---

<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:** [February 18, 2004, 11:28am UTC](https://forum.kirupa.com/t/button-component-color/42994/6 "2004-02-18T11:28:28Z")

</div>

yup. maybe. I suggest you read the help and do some searches here on the forums.
