# Changeing the aplha of a button when pressed

**URL:** <https://forum.kirupa.com/t/changeing-the-aplha-of-a-button-when-pressed/151765>\
**Category:** flash\
**Created:** [June 17, 2005, 10:13pm UTC](https://forum.kirupa.com/t/changeing-the-aplha-of-a-button-when-pressed/151765 "2005-06-17T22:13:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirk\_netiq](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kirk\_netiq](https://forum.kirupa.com/u/kirk_netiq)\
**Post date:** [June 17, 2005, 10:13pm UTC](https://forum.kirupa.com/t/changeing-the-aplha-of-a-button-when-pressed/151765/1 "2005-06-17T22:13:46Z")

</div>

Here is the code I am using to change the alpha of a button when pressed:

on(release){  
setProperty(this,\_alpha, “50”);  
incorrectSound = new Sound();  
incorrectSound.attachSound(“Buzzer”);  
incorrectSound.start()  
incorrectSound.setVolume(25)

\_root.answer = “That is partially correct.”;  
\_root.total = \_root.total+0  
}

However, when I press the button - the whole page, not just the button, changes its alpha. Can anyone tell me why?

Thank you.
