# Fade in Fade off buttons

**URL:** <https://forum.kirupa.com/t/fade-in-fade-off-buttons/221296>\
**Category:** flash\
**Created:** [April 3, 2007, 6:56am UTC](https://forum.kirupa.com/t/fade-in-fade-off-buttons/221296 "2007-04-03T06:56:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeshambady](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@rajeshambady](https://forum.kirupa.com/u/rajeshambady)\
**Post date:** [April 3, 2007, 6:56am UTC](https://forum.kirupa.com/t/fade-in-fade-off-buttons/221296/1 "2007-04-03T06:56:03Z")

</div>

Hi,

I am working on my portfolio site. I have a probelm with my navigation.

I have 3 buttons profile, about and contact.  
what I am doing is when I click on profile all the buttons should fade off first and then only the about and contact button should appear on the scene.

please see my code.

bt\_1.onRelease = function(){

this.onEnterFrame = function(){  
if(bt\_1 \>= 0){  
bt\_1.\_alpha -= 10;  
}  
if(bt\_2 \>= 0){  
bt\_2.\_alpha -= 10;  
}  
if(bt\_3 \>= 0){  
bt\_3.\_alpha -= 10;  
}

}

This is the code for fade off all the buttons. Now I want to fade in only the bt\_2 and bt\_3 buttons. Is it possible
