# Read \_x location from a string

**URL:** <https://forum.kirupa.com/t/read--x-location-from-a-string/319416>\
**Category:** flash\
**Created:** [February 20, 2011, 12:28am UTC](https://forum.kirupa.com/t/read--x-location-from-a-string/319416 "2011-02-20T00:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davetifftaylor](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@davetifftaylor](https://forum.kirupa.com/u/davetifftaylor)\
**Post date:** [February 20, 2011, 12:28am UTC](https://forum.kirupa.com/t/read--x-location-from-a-string/319416/1 "2011-02-20T00:28:55Z")

</div>

Hi, newbie here (be kind)

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

```auto
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
