# Reported X position doesn't = actual x position?

**URL:** <https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995>\
**Category:** flash\
**Created:** [April 10, 2006, 4:20am UTC](https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995 "2006-04-10T04:20:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozymandias](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ozymandias/32/1997_2.png) [@Ozymandias](https://forum.kirupa.com/u/Ozymandias)\
**Post date:** [April 10, 2006, 4:20am UTC](https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995/1 "2006-04-10T04:20:19Z")

</div>

I can’t figure this out. I’m loading a serious of pages of images in the same flash document, but all pages after the first one have a lower y position of about the height of one of the images. When I trace their y position they all say 30, when it’s clearly more like 150. What’s going on here?

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 10, 2006, 4:22am UTC](https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995/2 "2006-04-10T04:22:56Z")

</div>

they may be a child of another movieclip, then their location will be relative to the clip their loaded into. Post your code.

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 10, 2006, 5:07am UTC](https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995/3 "2006-04-10T05:07:17Z")

</div>

Or check the registrationpoint of the container mc…

scotty(-:

---

<div class="post-metadata">

**Author:** ![Ozymandias](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ozymandias/32/1997_2.png) [@Ozymandias](https://forum.kirupa.com/u/Ozymandias)\
**Post date:** [April 10, 2006, 5:28am UTC](https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995/4 "2006-04-10T05:28:26Z")

</div>

Ok I figured it out. I was basing the position of the thumbnails on the thumbnails that came before, and somehow it was basing them off the wrong thumbnails. I’m not sure how but I managed to fix it.

One question though, if you create a movieclip then load thumbnails into it does it’s x\y stay the same if it’s registration is on the top left while expanding to the right and down?

---

<div class="post-metadata">

**Author:** ![eilsoe](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@eilsoe](https://forum.kirupa.com/u/eilsoe)\
**Post date:** [April 10, 2006, 6:32am UTC](https://forum.kirupa.com/t/reported-x-position-doesnt-actual-x-position/184995/5 "2006-04-10T06:32:05Z")

</div>

yes 🙂

if you want the actual x-y values of a nested clip, use localToGlobal to fix it.

example:

PointObj = {x:this.\_x,y:this.\_y};  
this.localToGlobal(PointObj);

then pass that PointObj.x and PointObj.y on to read the actual nested clips x and y values on the stage, instead of inside the clip.
