# How to hit an object with mouse?

**URL:** https://forum.kirupa.com/t/how-to-hit-an-object-with-mouse/280173
**Category:** flash
**Created:** [January 23, 2009, 6:21pm UTC](https://forum.kirupa.com/t/how-to-hit-an-object-with-mouse/280173 "2009-01-23T18:21:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![digitalmaniak](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@digitalmaniak](https://forum.kirupa.com/u/digitalmaniak)
#### Post date: [January 23, 2009, 6:21pm UTC](https://forum.kirupa.com/t/how-to-hit-an-object-with-mouse/280173/1 "2009-01-23T18:21:45Z")

</div>

Hey,

I have created a pendulum and in order to move it you must drag the object.  
example:  
[http://inthel00p.com/pendulum.swf](http://inthel00p.com/pendulum.swf)

I would like to be able to move the ball by just bumping into it with the mouse. How could this be done?

source:  
[http://74.124.195.253/~inthel5/pendulum.zip](http://74.124.195.253/~inthel5/pendulum.zip)

Thanks in advanced.
