# How to load co-ordinates from text file and redraw image

**URL:** https://forum.kirupa.com/t/how-to-load-co-ordinates-from-text-file-and-redraw-image/282060
**Category:** flash
**Created:** [February 17, 2009, 7:00am UTC](https://forum.kirupa.com/t/how-to-load-co-ordinates-from-text-file-and-redraw-image/282060 "2009-02-17T07:00:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GinnyBhullar](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@GinnyBhullar](https://forum.kirupa.com/u/GinnyBhullar)
#### Post date: [February 17, 2009, 7:00am UTC](https://forum.kirupa.com/t/how-to-load-co-ordinates-from-text-file-and-redraw-image/282060/1 "2009-02-17T07:00:14Z")

</div>

Hi Everyone ! I am new to Flash. I have just started with creating Drawing Pad, which can save and reload the image drawn once. I have completed the basic interface which includes drawing and erasing part. I am storing the co-ordinates in a text file. I am using MultiDimensional Array to store X,Y co-ordinates. But now I am facing a problem that how to load these variables into the flash back and using these redraw the image. I tried using ‘loadvars’, but it didn’t helped me as it doesn’t return string data. Can somebody help me in this so that I can load co-ordinates from text file and redraw the image.

I am using FLASH 8.

Thanks in Advance.
