Button Component Color

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

no you have not attached a copy of your file :wink:

i’m always doing that.

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]

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

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