On press = show block + hide other blocks

Hi all :slight_smile:

I have a little question regarding my flashmovie

What i have is the following

6 buttons where each button has its own textfield (in movieclip)
What i want is when a button is clicked the movieclip jumps in the scene,
but when i press another button, i want the first movieclip to jump out of the scene again - and the new movieclip jumps in the scene

Pretty simple and i have made the following script for 1 button

on(press) {
_root.profile1._y = 200;
div = 4;
endY = 30;

onClipEvent (enterFrame) {
_root.profile1._y += (endY-_root.profile1._y)/div;

This does work, but how do i tell it to ‘close’ all other windows when i click the other buttons ?
(profile1 is the movieclip that i want it to jump in)

Big thank you in advance !