# Controlling an button's alpha with if/else

**URL:** https://forum.kirupa.com/t/controlling-an-buttons-alpha-with-if-else/152254
**Category:** flash
**Created:** [June 22, 2005, 1:11pm UTC](https://forum.kirupa.com/t/controlling-an-buttons-alpha-with-if-else/152254 "2005-06-22T13:11:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ammdaddy](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@ammdaddy](https://forum.kirupa.com/u/ammdaddy)
#### Post date: [June 22, 2005, 1:11pm UTC](https://forum.kirupa.com/t/controlling-an-buttons-alpha-with-if-else/152254/1 "2005-06-22T13:11:59Z")

</div>

I have an emptyMovieClip and a button on my stage. I’d like to control the alpha of the button depending on whether a movieclip is loaded into the emptyMovieClip or not. I’m just a beginner at Flash and have little programming experience.

if a movie is loaded in the emptyMovieClip, button alpha = 100%

else button alpha = 0%

I know. It’s a sorry attempt . . . ☹

Can someone help?
