# How to make a selected button when you click?

**URL:** <https://forum.kirupa.com/t/how-to-make-a-selected-button-when-you-click/249227>\
**Category:** flash\
**Created:** [January 16, 2008, 7:03pm UTC](https://forum.kirupa.com/t/how-to-make-a-selected-button-when-you-click/249227 "2008-01-16T19:03:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qpixo](https://avatars.discourse-cdn.com/v4/letter/q/c4cdca/32.png) [@qpixo](https://forum.kirupa.com/u/qpixo)\
**Post date:** [January 16, 2008, 7:03pm UTC](https://forum.kirupa.com/t/how-to-make-a-selected-button-when-you-click/249227/1 "2008-01-16T19:03:22Z")

</div>

I have several items on my menu. Let’s say:  
Button0  
Button1  
Button2

How to make a selected button when you click, initialize to “Button0” and when the user click to another button (ex: Button1 or Button2), the color will be switched to this new selected button??

thanks in advance,
