# Show hide on (rollOver)

**URL:** <https://forum.kirupa.com/t/show-hide-on-rollover/222976>\
**Category:** Uncategorized\
**Created:** [April 18, 2007, 2:11pm UTC](https://forum.kirupa.com/t/show-hide-on-rollover/222976 "2007-04-18T14:11:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunger99us](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@dunger99us](https://forum.kirupa.com/u/dunger99us)\
**Post date:** [April 18, 2007, 2:11pm UTC](https://forum.kirupa.com/t/show-hide-on-rollover/222976/1 "2007-04-18T14:11:40Z")

</div>

Hi, I am trying to accomplish this effect:

when I rollover the button number 1, the button number 2 disappears from the screen

when I rollOut of the button 1 butoon number 2 appears again…

I tried to write the code myslf but get errors…

this is the action I am trying to assign to the button number 1.

on(rollOver)=function(){  
movieclipName.\_alpha=0;  
}  
on(rollOut)=function(){  
movieclipName.\_alpha=100;  
}
