# A button question

**URL:** <https://forum.kirupa.com/t/a-button-question/5186>\
**Category:** Uncategorized\
**Created:** [September 4, 2002, 1:25am UTC](https://forum.kirupa.com/t/a-button-question/5186 "2002-09-04T01:25:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CLoudStrife](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@CLoudStrife](https://forum.kirupa.com/u/CLoudStrife)\
**Post date:** [September 4, 2002, 1:25am UTC](https://forum.kirupa.com/t/a-button-question/5186/1 "2002-09-04T01:25:10Z")

</div>

is there a way that when a button is activated it changes color and stays that way after the mouse has moved on?

---

<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:** [September 4, 2002, 1:41am UTC](https://forum.kirupa.com/t/a-button-question/5186/2 "2002-09-04T01:41:32Z")

</div>

Yes. You would use:

[COLOR=blue]on (release) {  
newColour = 0xffff00;  
newC = new Color(this);  
newC.setRGB(\_root.newColour);  
}[/COLOR]

as the button actions. 0xffff00, would have to be changed to the colour you want in hex.

Heres the fla

---

<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:** [September 4, 2002, 1:49am UTC](https://forum.kirupa.com/t/a-button-question/5186/3 "2002-09-04T01:49:26Z")

</div>

By the way, this doesn’t only apply to buttons. It can be a movie clip, but you can only change the colour of certain symbols.

This is good for games especially, but also has many uses.
