# Play moviclip on click

**URL:** https://forum.kirupa.com/t/play-moviclip-on-click/319376
**Category:** flash
**Created:** [February 18, 2011, 5:47am UTC](https://forum.kirupa.com/t/play-moviclip-on-click/319376 "2011-02-18T05:47:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pravingate07](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@pravingate07](https://forum.kirupa.com/u/pravingate07)
#### Post date: [February 18, 2011, 5:47am UTC](https://forum.kirupa.com/t/play-moviclip-on-click/319376/1 "2011-02-18T05:47:48Z")

</div>

hii,  
i am trying to develop a small interactive game using as3.  
i need to play a movieclip when i 'll click on button. Anybody knows simple way for that.

I’m trying this way: i have created a class for that movieclip, then i have created a object of that and then i m tring to call that object in this way.

var geese:geese01=new geese01();  
trace(“object created”);  
geese1.addEventListener(MouseEvent.CLICK, onPlayClick);

function onPlayClick(event:MouseEvent):void  
{  
geese.play();  
trace(“object is playing”);  
}

this is not solving my problem.

plz tel me if anybody knows…  
thanks,
