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?
they may be a child of another movieclip, then their location will be relative to the clip their loaded into. Post your code.
Or check the registrationpoint of the container mc…
scotty(-:
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?
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.