# Dispatching MouseEvent

**URL:** https://forum.kirupa.com/t/dispatching-mouseevent/307589
**Category:** flash
**Created:** [April 6, 2010, 12:40pm UTC](https://forum.kirupa.com/t/dispatching-mouseevent/307589 "2010-04-06T12:40:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ven](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@ven](https://forum.kirupa.com/u/ven)
#### Post date: [April 6, 2010, 12:40pm UTC](https://forum.kirupa.com/t/dispatching-mouseevent/307589/1 "2010-04-06T12:40:10Z")

</div>

I have a touchscreen setup, where the touchscreen sends touch events through a socket connection to an external computer.

By listening to this socket, I can make the flash application behave as a mouse clicked.

At the current version, I have a rather tedious way of integrating the touch events i receive from the socket. I am currently refactoring the application, and I want to integrate the touch events nativly into the MouseEvent, though I am not sure how to do that in a good way.

Do I have to recursively loop though all displayobjects and its children and hitTest them before dispatching? How will this affect bubbeling?
