# Mouse position... read carefully ¬¬

**URL:** <https://forum.kirupa.com/t/mouse-position-read-carefully/216973>\
**Category:** flash\
**Created:** [February 22, 2007, 1:55am UTC](https://forum.kirupa.com/t/mouse-position-read-carefully/216973 "2007-02-22T01:55:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiggie](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@Tiggie](https://forum.kirupa.com/u/Tiggie)\
**Post date:** [February 22, 2007, 1:55am UTC](https://forum.kirupa.com/t/mouse-position-read-carefully/216973/1 "2007-02-22T01:55:36Z")

</div>

Ye, guess u saw the title and thought on sth simple =P. I need to know the horizontal position of my mouse… the code is in a SWF… BUT that SWF is being included by other one which is fullscreen (it means i never know the width of that animation). The SWF where the mouse position is needed is being included by the fullscreen SWF file.

What’s the problem? if i ask for \_root.\_mousex i get the position of the mouse but at the fullscreen SWF, so i get a wrong position since i need to know where the mouse is at the second SWF (i need that the coordinates (0,0) are where the second SWF is being included). This second SWF is centered so it’s X position changes according to the width of the fullscreen one.

So… i dunno… … If i knew how to get the Horizontal position of the movieclip containing the second SWF, that would be enough… am, anyone know how to get this value? :?..
