# \[FLASH8\] simple function question

**URL:** <https://forum.kirupa.com/t/flash8-simple-function-question/223033>\
**Category:** Uncategorized\
**Created:** [April 18, 2007, 9:54pm UTC](https://forum.kirupa.com/t/flash8-simple-function-question/223033 "2007-04-18T21:54:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theWEEPER](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@theWEEPER](https://forum.kirupa.com/u/theWEEPER)\
**Post date:** [April 18, 2007, 9:54pm UTC](https://forum.kirupa.com/t/flash8-simple-function-question/223033/1 "2007-04-18T21:54:18Z")

</div>

Hey, this is the bare bones of what I’m trying to do. I have two buttons on the staged instanced as “butt” and “butt2” and I wanted a function that would control the look of the buttons when they are rolled over and out. But my problem is: that like this for some reason rolling over one button will cause everything on the stage to go to alpha = 50, not just the button, is there something wrong with my syntax, or am I just going about this in the completely wrong way.

Thanks for any help.

```auto

function buttOver(){
    this._alpha = 50;
};
function buttOut(){
    this._alpha = 100;
};

//BUTTON 1
_root.butt.onRollOver = function(){
    buttOver();
};
_root.butt.onRollOut = function(){
    buttOut();
};

//BUTTON 2
_root.butt2.onRollOver = function(){
    buttOver();
};
_root.butt2.onRollOut = function(){
    buttOut();
};

```
