# Moving graphic x axis only threw mouse move code check

**URL:** https://forum.kirupa.com/t/moving-graphic-x-axis-only-threw-mouse-move-code-check/22320
**Category:** Uncategorized
**Created:** [June 2, 2003, 5:24pm UTC](https://forum.kirupa.com/t/moving-graphic-x-axis-only-threw-mouse-move-code-check/22320 "2003-06-02T17:24:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pares101](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@pares101](https://forum.kirupa.com/u/pares101)
#### Post date: [June 2, 2003, 5:24pm UTC](https://forum.kirupa.com/t/moving-graphic-x-axis-only-threw-mouse-move-code-check/22320/1 "2003-06-02T17:24:49Z")

</div>

basically this is the code i got from a kirupa tutorial and i just want the graphic to be moved on the x axis

onClipEvent (enterFrame) {  
getlimits = \_root.normalpic.getBounds(\_root);  
//get the limits of the normal pic movie  
if (\_root.\_xmouse\>=getlimits.xMin && \_root.\_xmouse\<=getlimits.xMax && \_root.\_ymouse\>=getlimits.yMin && \_root.\_ymouse\<=getlimits.yMax) {  
this.\_x = \_root.\_xmouse;  
}  
}

is this the correct code??

---

<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: [June 2, 2003, 7:27pm UTC](https://forum.kirupa.com/t/moving-graphic-x-axis-only-threw-mouse-move-code-check/22320/2 "2003-06-02T19:27:26Z")

</div>

Well, is it working?

---

<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: [June 2, 2003, 8:02pm UTC](https://forum.kirupa.com/t/moving-graphic-x-axis-only-threw-mouse-move-code-check/22320/3 "2003-06-02T20:02:03Z")

</div>

im just wondering if the movieclip name was normalpic??? or is that the name of the Instance of the movie clip?

---

<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: [June 2, 2003, 9:02pm UTC](https://forum.kirupa.com/t/moving-graphic-x-axis-only-threw-mouse-move-code-check/22320/4 "2003-06-02T21:02:08Z")

</div>

Probably the name of the instance, but the syntax looks a bit strange. Did you check in the AS dictionary?
