Nested MovieClips not displaying relative to each other

Hi all -

I am creating a film strip of thumbnails and am dynamically creating the thumbnails from an xml file. All this works great. The issue becomes the fact that I need for the filmstrip to resize when the window is resized and add or remove the number of the thumbnails as necessary. In order to calculate where the last thumbnail should be, I’m using the following code to calculate the x position:

var lastX = rightArrow.x - (thumbWidth + 10);

where rightArrow is actually filmstrip.filmnav.rightArrow. I get the correct answer - but when I add the thumbnail to the movieclip filmstrip.panelscontainer.thumbcontainer, it’s actually on top of the rightArrow. Clicking on both of them to see where Flash thinks the X is will show that Flash this the X of the thumbnail is at 607 and flash thinks the X of the thumbnail is 731, which is as it should be – so why is the thumbnail so far to the right?

The first thumbnail should always be x=10 and that is working fine and I’m currently not trying to layout the other thumbnails because they were all screwed up with a similar problem. I’m assuming if I can figure out what the problem is with the last thumbnail is, I can figure out what the problem is with the others as well.

Does anyone have anything for me to investigate as to what the issue might be?

Thanks -