# Quick Question (Mirroring x & y)

**URL:** <https://forum.kirupa.com/t/quick-question-mirroring-x-y/308393>\
**Category:** flash\
**Created:** [April 22, 2010, 4:44am UTC](https://forum.kirupa.com/t/quick-question-mirroring-x-y/308393 "2010-04-22T04:44:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FeverFox](https://avatars.discourse-cdn.com/v4/letter/f/f07891/32.png) [@FeverFox](https://forum.kirupa.com/u/FeverFox)\
**Post date:** [April 22, 2010, 4:44am UTC](https://forum.kirupa.com/t/quick-question-mirroring-x-y/308393/1 "2010-04-22T04:44:08Z")

</div>

Hey,

I’m wanting a movieclip to mirror the x and y of the mouse, so when the mouse moves left I want it to move right, only ever meeting at the center point of the page. I have a feeling this has a really simple answer but it’s just not coming to me (and google hasn’t helped much either).

So far,

\*mcMouse.startDrag(true);  
Mouse.hide();

addEventListener(Event.ENTER\_FRAME,onGo);

function onGo(e:Event):void

{

```
mcMirror.y = **?some equation using mcMouse.y?** ;
mcMirror.x = **?some equation using mcMouse.x?** ;

```

}\*

Thanks in advance!
