# Slide in/out on mouse in/out

**URL:** https://forum.kirupa.com/t/slide-in-out-on-mouse-in-out/169013
**Category:** Uncategorized
**Created:** [November 12, 2005, 5:38am UTC](https://forum.kirupa.com/t/slide-in-out-on-mouse-in-out/169013 "2005-11-12T05:38:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paneb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/paneb/32/1924_2.png) [@paneb](https://forum.kirupa.com/u/paneb)
#### Post date: [November 12, 2005, 5:38am UTC](https://forum.kirupa.com/t/slide-in-out-on-mouse-in-out/169013/1 "2005-11-12T05:38:11Z")

</div>

hey guys,  
first and foremost, this is my first post 🙂

anyways…

i am writing gallery, and i would like to have a small control bar with next/previous buttons. that is “easy”; i have created a movie clip with 2 buttons in it. the problem is that i am trying to make that movie clip invisible unless the mouse is inside the swf.

in the gallery made at [http://www.slideshowpro.net/](http://www.slideshowpro.net/), you can see that whenever you mouse in there is a white overlay that slides in at the top, and slides out when the mouse moves out - everytime

right now i can get the “control” movie clip to slide in properly, but it won’t ever slide out.

and on a side note, is it normal if

```auto

onClipEvent (enterFrame)	{
	  trace(_root._height);
}

```

outputs the height of the current movie clip and not the swf? i only have one movie clip on the stage.

Thanks in advance 🙂
