# Disappearing buttons

**URL:** <https://forum.kirupa.com/t/disappearing-buttons/482>\
**Category:** flash\
**Created:** [July 18, 2002, 9:50pm UTC](https://forum.kirupa.com/t/disappearing-buttons/482 "2002-07-18T21:50:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon7187](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jon7187](https://forum.kirupa.com/u/jon7187)\
**Post date:** [July 18, 2002, 9:50pm UTC](https://forum.kirupa.com/t/disappearing-buttons/482/1 "2002-07-18T21:50:13Z")

</div>

Hey im a bit of a newbie at flash and i have a farily simple Q. Im doing a shoot out game where when u click on the object the counter goes up but what im having trouble with is i want the button to dissapear after you click on it. Also is it possible to make a moving clickable button caz when i motion tween it it wont be a button. N e help would be greatly apreciated  
~JON~:pirate:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2002, 10:07pm UTC](https://forum.kirupa.com/t/disappearing-buttons/482/2 "2002-07-18T22:07:41Z")

</div>

**1.** Put the button in a movie clip with the instance name of _ **hit\_clip** _ and keep a frame in that movie clip blank so that if you were on that frame the button would not be visible (lets use frame 3 for a demo).

**2.** On the button put this action:

on(press) {  
gotoAndStop(3);  
}

**3.** The button is placed inside of that movie clip so I don’t even need to tell flash where to look because that is where the script would check on default.

**4.** Motion tween the _ **hit\_clip** _ however you like in the _ **\_root** _ timeline (the top directory in your Flash file).

That should work but if not reply back and I will either have you send the .fla in my e-mail and I’ll just fix it and return it to you with a description of how I fixed it!
