# Want custom cursor to act opposite user interaction

**URL:** <https://forum.kirupa.com/t/want-custom-cursor-to-act-opposite-user-interaction/185436>\
**Category:** Uncategorized\
**Created:** [April 13, 2006, 11:25am UTC](https://forum.kirupa.com/t/want-custom-cursor-to-act-opposite-user-interaction/185436 "2006-04-13T11:25:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnnyboy/32/1973_2.png) [@johnnyboy](https://forum.kirupa.com/u/johnnyboy)\
**Post date:** [April 13, 2006, 11:25am UTC](https://forum.kirupa.com/t/want-custom-cursor-to-act-opposite-user-interaction/185436/1 "2006-04-13T11:25:26Z")

</div>

Hi guys

Here’s something for U math champions.

Is it possible to get the custom cursor MC to act opposite the users actions?

I want it to be opposite the center of the stage, lets say the real mouse cursor is 200px to the RIGHT of the center of the stage, but the custom mouse cursor is 200px to the LEFT… get it? And the same goes for the y coordinates…

I gave it a try, but can’t seem to get it right, math never was my strong side 🙂

---

<div class="post-metadata">

**Author:** ![rufusW](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rufusW](https://forum.kirupa.com/u/rufusW)\
**Post date:** [April 13, 2006, 2:58pm UTC](https://forum.kirupa.com/t/want-custom-cursor-to-act-opposite-user-interaction/185436/2 "2006-04-13T14:58:05Z")

</div>

You can multiply your mouse’s x and y co-ordinates by -1 to reverse the numbers.

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 13, 2006, 3:05pm UTC](https://forum.kirupa.com/t/want-custom-cursor-to-act-opposite-user-interaction/185436/3 "2006-04-13T15:05:12Z")

</div>

or you could even make the value a string temporarily to modify it then change it back into a number:

```auto
onEnterFrame(){
   var mousestring:String = _xmouse;
   var mousestringminus:String = "-"+mousestring;
   var mousenumberminus:Number = Number(mousestringminus);
}

```

That’s probably one of the dirtiest hacks i’v come up wih in a while:)

---

<div class="post-metadata">

**Author:** ![johnnyboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnnyboy/32/1973_2.png) [@johnnyboy](https://forum.kirupa.com/u/johnnyboy)\
**Post date:** [April 13, 2006, 3:05pm UTC](https://forum.kirupa.com/t/want-custom-cursor-to-act-opposite-user-interaction/185436/4 "2006-04-13T15:05:42Z")

</div>

Got it…

[AS]  
var mouseListener:Object = new Object();  
mouseListener.onMouseMove = function() {  
hor = \_xmouse;  
ver = \_ymouse;

```
xDist = Stage.width-hor;
yDist = Stage.height-ver;
	
mouse_mc._x = xDist;
mouse_mc._y = yDist;

```

};  
Mouse.addListener(mouseListener);  
[/AS]
