# Slide in slide out onRelease

**URL:** <https://forum.kirupa.com/t/slide-in-slide-out-onrelease/168754>\
**Category:** flash\
**Created:** [November 9, 2005, 6:51pm UTC](https://forum.kirupa.com/t/slide-in-slide-out-onrelease/168754 "2005-11-09T18:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://forum.kirupa.com/u/Henry)\
**Post date:** [November 9, 2005, 6:51pm UTC](https://forum.kirupa.com/t/slide-in-slide-out-onrelease/168754/1 "2005-11-09T18:51:39Z")

</div>

Hey all,

I am bulding a flash mp3 player that I want to be able to hide and reveal onRelease of a button.

So, when a user enters the page the music player is visible from the right of the page. On the music player there is a minimise button so the user can hide the player. On release of this button the player slides to the right stopping and leaving a tab for the user to click and slide it back in.

I have made this kind of work but in a really messy way: with a movieClip and tween, 2 frames of buttons etc…

I guess this should be possible with one button and action script that moves the movieClip \_x a certain amount and then \_x the same amount back using maybe an if statement? Ideally with some ease.

Anynoe no of any egs? Or tutorials for simialr functionality…  
Many thanks in advance  
Henry
