# Outline around button when clicked

**URL:** <https://forum.kirupa.com/t/outline-around-button-when-clicked/298466>\
**Category:** flash\
**Created:** [October 19, 2009, 6:17pm UTC](https://forum.kirupa.com/t/outline-around-button-when-clicked/298466 "2009-10-19T18:17:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rn325](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rn325](https://forum.kirupa.com/u/rn325)\
**Post date:** [October 19, 2009, 6:17pm UTC](https://forum.kirupa.com/t/outline-around-button-when-clicked/298466/1 "2009-10-19T18:17:38Z")

</div>

I have created 4 buttons so far and when pressed they change the color of a box on the screen. I will be putting more buttons on the page. When a button is pressed, how can i get a black outline to show around the button to let the person know that was the button they selected–it would then go off when the next button is selected. Im very new to [flash ![](http://forum.kirupa.com/uploads/kirupa/5897/c388617f6c9c5ae3.gif)](http://forums.devshed.com/#) so I could realy use your help.

Thanks

red\_btn.onRelease = function() {  
var boxColor\_color = new Color(box\_mc);  
boxColor\_color.setRGB(0xFF0000);  
};  
orange\_btn.onRelease = function() {  
var boxColor\_color = new Color(littlebox\_mc);  
boxColor\_color.setRGB(0xFF6500);  
};  
blue\_btn.onRelease = function() {  
var boxColor\_color = new Color(box\_mc);  
boxColor\_color.setRGB(0x0039FF);  
};  
green\_btn.onRelease = function() {  
var boxColor\_color = new Color(littlebox\_mc);  
boxColor\_color.setRGB(0x0099FF);  
};  
[URL=“[http://www.kirupa.com/forum/search.php?searchid=1534298](http://www.kirupa.com/forum/search.php?searchid=1534298)”]
