# Help with fade in and out on .\_visible=true;

**URL:** https://forum.kirupa.com/t/help-with-fade-in-and-out-on--visible-true/303986
**Category:** Uncategorized
**Created:** [January 30, 2010, 4:30am UTC](https://forum.kirupa.com/t/help-with-fade-in-and-out-on--visible-true/303986 "2010-01-30T04:30:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![media\_mixx](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@media\_mixx](https://forum.kirupa.com/u/media_mixx)
#### Post date: [January 30, 2010, 4:30am UTC](https://forum.kirupa.com/t/help-with-fade-in-and-out-on--visible-true/303986/1 "2010-01-30T04:30:13Z")

</div>

In the following code I am controlling the visibility of a MC with the following code:

on (rollOver) {

if (\_root.navorange.\_currentframe \> 1){  
\_root.testthing.\_visible=false;  
}

}

on (rollOut) {

if (\_root.navorange.\_currentframe \> 1){  
\_root.testthing.\_visible=true;  
}

}

This is working fine but the on/off transition is a bit harsh. Is there a way to add a fade in fade out effect with action script so the change from visible to not visible is not so abrupt?

Any help would be greatly appreciated
