# Fading buttons alpha to 0 from an mc on a higher level?

**URL:** <https://forum.kirupa.com/t/fading-buttons-alpha-to-0-from-an-mc-on-a-higher-level/144580>\
**Category:** Uncategorized\
**Created:** [April 15, 2005, 8:56am UTC](https://forum.kirupa.com/t/fading-buttons-alpha-to-0-from-an-mc-on-a-higher-level/144580 "2005-04-15T08:56:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unreFINEdARTist](https://avatars.discourse-cdn.com/v4/letter/u/34f0e0/32.png) [@unreFINEdARTist](https://forum.kirupa.com/u/unreFINEdARTist)\
**Post date:** [April 15, 2005, 8:56am UTC](https://forum.kirupa.com/t/fading-buttons-alpha-to-0-from-an-mc-on-a-higher-level/144580/1 "2005-04-15T08:56:35Z")

</div>

ok i have a button that is actually an mc pretending to be a button. It is basically a black image over another image that fades when you mouse over and off it. This is on \_level1. heres my script so far…

```auto
on(rollOver, dragOver){
    fade = "out";
}
on(rollOut, dragOut){
    fade = "in";
}
onClipEvent(load) {
var fade_speed = 24;
}
on(release) {      
    this.onEnterFrame = function() {
         if (_level2._alpha > 0) {
             _level2._alpha -= fade_speed;    
         } else { 
             delete this.onEnterFrame;
             _level2._alpha = 0;
             loadMovieNum("aboutPage_shea.swf","2");
             }
    }
}
onClipEvent(enterFrame){
     if(fade == "in"){
        this._alpha += 10;
        if(this._alpha >= 60){
            delete fade;
        }
     }
     if(fade == "out"){
         this._alpha -=10;
          if(this._alpha <= 1){
           delete fade;
          }
      }
}

```

so, i need an swf loading on \_level2 to make this buttons alpha fade to 0, and then fade back when the swf on \_level2 is unloaded. got any ideas? id appreciate it. thanks. UA
