# Force/script a mouseevent

**URL:** <https://forum.kirupa.com/t/force-script-a-mouseevent/271186>\
**Category:** flash\
**Created:** [September 19, 2008, 2:31pm UTC](https://forum.kirupa.com/t/force-script-a-mouseevent/271186 "2008-09-19T14:31:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fideldonson](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@fideldonson](https://forum.kirupa.com/u/fideldonson)\
**Post date:** [September 19, 2008, 2:31pm UTC](https://forum.kirupa.com/t/force-script-a-mouseevent/271186/1 "2008-09-19T14:31:22Z")

</div>

I have two objects with click-mouseevents attached to them: objectA and objectB

I would like a click on objectA to force the click event on objectB til execute. (i want this because i need objectB to be the event.target in the listener-function.)

How can this be achieved?
