# Help! loading image from txt file

**URL:** <https://forum.kirupa.com/t/help-loading-image-from-txt-file/293688>\
**Category:** flash\
**Created:** [August 1, 2009, 6:38pm UTC](https://forum.kirupa.com/t/help-loading-image-from-txt-file/293688 "2009-08-01T18:38:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_da\_best](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Matt\_da\_best](https://forum.kirupa.com/u/Matt_da_best)\
**Post date:** [August 1, 2009, 6:38pm UTC](https://forum.kirupa.com/t/help-loading-image-from-txt-file/293688/1 "2009-08-01T18:38:25Z")

</div>

I am trying to make a carousel menu in flash as2 that loads its variables from a text file, however it seems that it just isnt working with the image. Would you be able to help me sort this out?

The Codes:

My actionscript on first frame:

```auto
myData = new LoadVars();
myData.onLoad = function() {
 text1.text = this.fText1;
 mcImage.loadMovie( txtImageURL1.text );
};
myData.load("caroText.txt");

```

My text file:

```auto
 
&fText1=Test 1!
&txtImageURL1=mypic.jpg

```

Also if you could help me with adding a url link from the text file this would help greatly

Thanks in advance.
