# Mouse coords outside swf file

**URL:** <https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193>\
**Category:** Uncategorized\
**Created:** [July 30, 2003, 10:46pm UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193 "2003-07-30T22:46:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [July 30, 2003, 10:46pm UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193/1 "2003-07-30T22:46:40Z")

</div>

\_root.\_xmouse and \_root.\_ymouse will detect the coordinates of the mouse while it’s over the flash movie and those coordinates will be relative to the dimensions of the flash movie

is it possible to detect the position of the mouse on the screen? say for instance i have an html page with a small flash file in it and i wanted to detect the mouse coordinates anywhere on the screen for use as a variable in that flash file

possible?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2003, 2:10am UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193/2 "2003-07-31T02:10:47Z")

</div>

I don’t think so…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2003, 3:28am UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193/3 "2003-07-31T03:28:03Z")

</div>

No, not in Flash that I know of.

I believe Director can though… not 100% on that, I don’t really know much about Director, I just remember seeing a Director movie where the interactivity seemed to follow my mouse outside the movies stage area.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 17, 2004, 10:13pm UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193/4 "2004-02-17T22:13:49Z")

</div>

did anyone ever find out any more info on whether or not it could be done in flash? i searched through like 12 pages of mouse follow posts and didnt see anything…but hoping someone had a revelation…or something…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 17, 2004, 10:35pm UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193/5 "2004-02-17T22:35:29Z")

</div>

Help ourself 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 17, 2004, 10:42pm UTC](https://forum.kirupa.com/t/mouse-coords-outside-swf-file/27193/6 "2004-02-17T22:42:07Z")

</div>

neat!
