# Reading Image location variables from a Text File

**URL:** <https://forum.kirupa.com/t/reading-image-location-variables-from-a-text-file/275349>\
**Category:** flash\
**Created:** [November 12, 2008, 8:13pm UTC](https://forum.kirupa.com/t/reading-image-location-variables-from-a-text-file/275349 "2008-11-12T20:13:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hikariu](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@Hikariu](https://forum.kirupa.com/u/Hikariu)\
**Post date:** [November 12, 2008, 8:13pm UTC](https://forum.kirupa.com/t/reading-image-location-variables-from-a-text-file/275349/1 "2008-11-12T20:13:18Z")

</div>

Can someone help me understand how to do this. I’m new to flash but not programming.

What I would like to do is keep the x and y axis of an image inside of a text file.

With flash I’d like to read that file and move the image along the path that is created in the file.

How do I setup an element to do that?

Think of it like this. You want to move a soccer ball around a field based on the x and y points saved in an external text file. How would you set the app to read the file and step through it.

Text file might look like this:

&step=1&image=ball.gif&xaxis=250&yaxis=100  
&step=2&image=ball.gif&xaxis=251&yaxis=100  
&step=3&image=ball.gif&xaxis=252&yaxis=100

etc.
