all groups > flash actionscript > november 2005 >
You're in the

flash actionscript

group:

How to play movie clip object when button is pressed?



How to play movie clip object when button is pressed? d33jayedwards
11/5/2005 7:03:31 PM
flash actionscript: Hello,
I have crated a Movie Clip object (as in "Convert to symbol/Movie Clip") and
have animated it. But I dont know how to make it play on the release of a
button. Im sure its easy, just cant figure it out.
Regards,

d33jayedwards
Re: How to play movie clip object when button is pressed? NSurveyor
11/5/2005 9:18:47 PM
Click on your MovieClip. Open the Properties Panel. Type in: animation_mcfor
the <Instance Name>. Click on your button, and type in: animation_btn for the
<Instance Name> in the Properties Panel. Next, click on the current frame in
the Timeline Panel. Open the Actions Panel. Paste in:

animation_btn.onPress = function(){
animation_mc.play();
}
Re: How to play movie clip object when button is pressed? d33jayedwards
11/5/2005 10:52:08 PM
Thanks a lot mate. Works perfectly, appriciate that.
Re: How to play movie clip object when button is pressed? NSurveyor
11/5/2005 11:04:13 PM
AddThis Social Bookmark Button