Dumbest/Easiest question ever!

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:

Please help me!

u mean… ?

on(release) {
yourmc.play();
}

:beer:

Or something like THIS?

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

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.

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

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.

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

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

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

use:

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

that should do…

:link:

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

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

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.