# \_xmouse & \_ymouse and a movieclip or somethiing

**URL:** https://forum.kirupa.com/t/-xmouse--ymouse-and-a-movieclip-or-somethiing/69886
**Category:** flash
**Created:** [November 9, 2004, 12:13am UTC](https://forum.kirupa.com/t/-xmouse--ymouse-and-a-movieclip-or-somethiing/69886 "2004-11-09T00:13:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Soul814](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Soul814](https://forum.kirupa.com/u/Soul814)
#### Post date: [November 9, 2004, 12:13am UTC](https://forum.kirupa.com/t/-xmouse--ymouse-and-a-movieclip-or-somethiing/69886/1 "2004-11-09T00:13:09Z")

</div>

okay so lets say I have a diamond, I want it so that an object to move with the mouse but it doesnt leave the area (can’t go to where Y is).

(Object is X)

…/  
…/…Y  
…/…X…  
…/  
…/  
… /

ignore dots
