# Question about buttons

**URL:** <https://forum.kirupa.com/t/question-about-buttons/11492>\
**Category:** flash\
**Created:** [January 17, 2003, 10:00pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492 "2003-01-17T22:00:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pares101](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@pares101](https://forum.kirupa.com/u/pares101)\
**Post date:** [January 17, 2003, 10:00pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/1 "2003-01-17T22:00:07Z")

</div>

ok i have a movie called m\_menuappear and i want when the user clicks on it the movie to play, because when i do it with a button it requires the user to hold down the button instead of him just clicking it once anyone have the code for this??

---

<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:** [January 17, 2003, 10:40pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/2 "2003-01-17T22:40:13Z")

</div>

Do you mean like this…?

```auto
on (release){
_root.m_menuappear.play();
}

```

???

---

<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:** [January 17, 2003, 10:41pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/3 "2003-01-17T22:41:31Z")

</div>

well here ill show you what im trying to do click on

[www.autodaze.com/mainmenu.html](http://www.autodaze.com/mainmenu.html)

and click and hold the button see! i dont want the user to hold the button i want when the user clicks ont he buttons that the menu grows bigger which is a movie clip so how would i do this??

---

<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:** [January 17, 2003, 10:43pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/4 "2003-01-17T22:43:25Z")

</div>

Alrighty…

What code are you using right now?

---

<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:** [January 17, 2003, 10:50pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/5 "2003-01-17T22:50:01Z")

</div>

im using the button on the DOWN STATE and thats all

---

<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:** [January 17, 2003, 10:53pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/6 "2003-01-17T22:53:06Z")

</div>

Oh, that is why.

Ok, you are using Flash MX so you can do this.

Instead of using a button symbol, use a movie clip symbol.

Then create your tween inside. And add a stop() action on the first and last frames.

Go back to the main stage where your movie clip is. Right click on your movie clip and open the actions panel.

In there type…

```auto
on (release){
this.play();
}

```

Although this will require you have a button inside the movie clip that makes it gotoAndStop(1) (at frame 1, or the original look)

---

<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:** [January 17, 2003, 10:55pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/7 "2003-01-17T22:55:59Z")

</div>

ok im going to try it… ill do it step by step from your instructions 🙂

---

<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:** [January 17, 2003, 11:02pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/8 "2003-01-17T23:02:34Z")

</div>

hey im still a wee bit confused

code:--------------------------------------------------------------------------------on (release){  
this.play();  
}--------------------------------------------------------------------------------

so i put that EXACT CODE???

and about the button thing where do i put it in the movie in a new layer??? as you can see i get easliy confused :\*(

do you use MIRC???

---

<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:** [January 17, 2003, 11:04pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/9 "2003-01-17T23:04:38Z")

</div>

Yeah you put that exact code 🙂 With Flash MX you can use the on handlers on movie clips too, you can’t do that in Flash 5.

And the button can go on a new layer yes. And you can put it on the last frame if you want.

---

<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:** [January 17, 2003, 11:09pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/10 "2003-01-17T23:09:10Z")

</div>

hey i put your code now heres my other question! now that i have clicked on it and it zoomed up , how can i tell it to zoom back to its original position??? oh and i didnt even use the GOTOand stop button thing is there going to be a problem??

---

<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:** [January 17, 2003, 11:13pm UTC](https://forum.kirupa.com/t/question-about-buttons/11492/11 "2003-01-17T23:13:11Z")

</div>

You can either tween it back and have your button in your clip play the tween.

Or you can use actionscript to play it in reverse, there is a whole entire thread dedicated to different methods of this way…

[http://www.kirupaforum.com/showthread.php?s=&threadid=11427&highlight=forward+and+backwards](http://www.kirupaforum.com/showthread.php?s=&threadid=11427&highlight=forward+and+backwards)
