[Flash8] Tumbnail gallery help

Hello to all,
First, I want to thank everyone on this site for the time and energy spent in helping others like me learn Flash. This site more than any other has taught me what I know.
My question relates to the XML thumbnail gallery, specifically the line of code that places the thumbnails in a row:

target_mc._x = hit_left._x+(eval(“thumbnail_mc.t”+k)._width+5)*k

My thumbnails are both landscape and portrait format, but the AS does not seem to recognize this, so it overlaps the thumbnails in the scrolling area. Can anyone help with the code?
Thank you.

I think someone will have to update the tutorials…

this question has been answered an number of times, search the forums…