# An interesting challenge to solve - Overriding default mouseX?

**URL:** https://forum.kirupa.com/t/an-interesting-challenge-to-solve-overriding-default-mousex/301182
**Category:** Uncategorized
**Created:** [December 4, 2009, 5:15pm UTC](https://forum.kirupa.com/t/an-interesting-challenge-to-solve-overriding-default-mousex/301182 "2009-12-04T17:15:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abrandao](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@abrandao](https://forum.kirupa.com/u/abrandao)
#### Post date: [December 4, 2009, 5:15pm UTC](https://forum.kirupa.com/t/an-interesting-challenge-to-solve-overriding-default-mousex/301182/1 "2009-12-04T17:15:26Z")

</div>

Greetings!

I need to do something and I don’t know if it’s possible… in a proper way.

Situation:

1 - I have an FULLSCREEN application that extends to two monitors in a Windows system.

2 - The graphic card is extending the single desktop to the two monitors, so the fullscreen fits everything correctly.

3 - Only one monitor is interactivity-enabled, with an interactive touch-sensitive foil on it, which works great.

4 - The second monitor is interactivity-disabled, it just displays stuff depending on what happens on the first monitor.

The Problem:

The interactive foil on the interactivity-enabled monitor responds as if it is the _whole monitor_. But it only covers one monitor!! The _whole monitor_, are the two screens put together. I obviously can’t cut the interactive foil in 2, and then stretch the two parts to fill a monitor each…

So if one touches beyond 50% of the foil’s width, the touch event will actually occur in the second monitor!

A fact for the solution is - if all Mouse Events occur with mouseX divided by 2, everything will work fine!

* * *

So the question is - how to make all Mouse Events’s mouseX be divided by 2 ?

Is there a way to do that in the core of the actionscript MouseEvents handling?

thanks in advance for any ideas ! :tini:
