# On press = show block + hide other blocks

**URL:** https://forum.kirupa.com/t/on-press-show-block-hide-other-blocks/164066
**Category:** flash
**Created:** [September 28, 2005, 9:39am UTC](https://forum.kirupa.com/t/on-press-show-block-hide-other-blocks/164066 "2005-09-28T09:39:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Chappo](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@Chappo](https://forum.kirupa.com/u/Chappo)
#### Post date: [September 28, 2005, 9:39am UTC](https://forum.kirupa.com/t/on-press-show-block-hide-other-blocks/164066/1 "2005-09-28T09:39:35Z")

</div>

Hi all 🙂

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 !
