Read _x location from a string

Hi, newbie here (be kind)

I am playing with the Photo Gallery and trying to find the _x location of the tmumbnails

I could run a for loop i.e. X = 1 to 10
xlocation = "_level0.thumbnail_mc.t"+X+"._x";
trace (xlocation) 

But xlocation comes out (as you would expect) as a string i.e

_level0.thumbnail_mc.t1._x
_level0.thumbnail_mc.t2._x

etc

Any way of finding the x location of a range of thumbnails

Re Dave