# \[AS3\] Change alpha property of button \[from post\]

**URL:** <https://forum.kirupa.com/t/as3-change-alpha-property-of-button-from-post/199953>\
**Category:** flash\
**Created:** [September 7, 2006, 1:36pm UTC](https://forum.kirupa.com/t/as3-change-alpha-property-of-button-from-post/199953 "2006-09-07T13:36:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![v\_gyku](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@v\_gyku](https://forum.kirupa.com/u/v_gyku)\
**Post date:** [September 7, 2006, 1:36pm UTC](https://forum.kirupa.com/t/as3-change-alpha-property-of-button-from-post/199953/1 "2006-09-07T13:36:47Z")

</div>

I am trying to change the alpha property of a button using actionscript 3.  
I dont want to create external AS file. Can you guide me on this?

```auto

circle_mc.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
trace("You clicked the ball");
 //circle_mc.startDrag();
//square_btn.visible=false;
//what should i write to change the alpha of square_btn?
 
}

```
