# Dumbest/Easiest question ever!

**URL:** https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727
**Category:** flash
**Created:** [September 19, 2004, 8:07am UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727 "2004-09-19T08:07:55Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![RadioactveChimp](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@RadioactveChimp](https://forum.kirupa.com/u/RadioactveChimp)
#### Post date: [September 19, 2004, 8:07am UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/1 "2004-09-19T08:07:55Z")

</div>

I used to know how to do this, but now I can’t for some reason! All I want to do is on “hit” of my button, my MC plays! I have been looking for answers for hours! (no joke!) God I know this is soooo easy!!! Help a poor man! :thumb:

-The Donald

I mean The Chimp… :pirate3:

---

<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: [September 19, 2004, 8:35am UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/2 "2004-09-19T08:35:22Z")

</div>

Please help me!

---

<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: [September 19, 2004, 9:50am UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/3 "2004-09-19T09:50:32Z")

</div>

u mean… ?

```auto
on(release) {
yourmc.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: [September 19, 2004, 10:45am UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/4 "2004-09-19T10:45:46Z")

</div>

Or something like [THIS](http://www.koschitz.org/florian/flashtips/hittest.html)?

---

<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: [September 19, 2004, 5:42pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/5 "2004-09-19T17:42:02Z")

</div>

yes that is the script I have been using, but it doesn’t work!  
Maybe it’s because my mc has a tween file too?

-Dean

---

<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: [September 19, 2004, 7:15pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/6 "2004-09-19T19:15:48Z")

</div>

Which of the two scripts?  
Maybe your clip’s path is different in some way?

Providing us with the file and a more detailed description might help helping you.

---

<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: [September 19, 2004, 7:25pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/7 "2004-09-19T19:25:24Z")

</div>

Here it is. In the library you will find “brownbutton”, “brown” and “Tween 1.” All I want is for “brown” to play when “brownbutton” it played.

Thanks a lot if you can help me :lol:

-Dean

---

<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: [September 19, 2004, 9:50pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/8 "2004-09-19T21:50:05Z")

</div>

Very simple. In the main timeline, create a layer called “actions” open the actions panel and type in:

movieclipname.onRollOver=function(){  
this.play()  
}

Make sure to target it correctly if you have your movieclip a few levels down.

---

<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: [September 19, 2004, 9:52pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/9 "2004-09-19T21:52:14Z")

</div>

no, I want it to trigger the movieclip on “release”

---

<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: [September 19, 2004, 10:07pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/10 "2004-09-19T22:07:44Z")

</div>

well then do it as mike82 said, but instead of:

movieclipname.onRollOver=function(){  
this.play()  
}

use:

movieclipname.onRelease=function(){  
this.play()  
}

that should do…

🔗

---

<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: [September 19, 2004, 10:09pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/11 "2004-09-19T22:09:38Z")

</div>

How does that action know to go to link up to the button?

---

<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: [September 19, 2004, 10:12pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/12 "2004-09-19T22:12:57Z")

</div>

Hehe, in the example you gave, the action happened onRollOver(or using hitTest=true rather), thought thats what you were trying to mirror. 🙂

---

<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: [September 19, 2004, 10:15pm UTC](https://forum.kirupa.com/t/dumbest-easiest-question-ever/64727/13 "2004-09-19T22:15:25Z")

</div>

Because you target it just before the event handler.

_mymovieclip_.onRelease=function(){  
//then whatever you want the movieclip to do is tossed in here  
}

–EDIT–

I just tried to dl and open your .fla and its an old format… probably 7.0. Need to go ahead and DL the 7.2 update to make sure all your work is compatible.
