# Jpg from txt file

**URL:** <https://forum.kirupa.com/t/jpg-from-txt-file/7967>\
**Category:** Uncategorized\
**Created:** [November 11, 2002, 4:42pm UTC](https://forum.kirupa.com/t/jpg-from-txt-file/7967 "2002-11-11T16:42:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheDizzAR](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@TheDizzAR](https://forum.kirupa.com/u/TheDizzAR)\
**Post date:** [November 11, 2002, 4:42pm UTC](https://forum.kirupa.com/t/jpg-from-txt-file/7967/1 "2002-11-11T16:42:57Z")

</div>

i have a holder MC which changes from jpg

the array for the jpg’s names is:

```auto
this.pArray = ["plaatje1.jpg", "plaatje2.jpg", "plaatje3.jpg", "plaatje4.jpg"];

```

the problem is that i want to set the picture names from an external source.

an option is to do this in the code

```auto
#include "images.txt" //where images.txt contains the line of code above

```

that’s ok but i want to control each image from it’s own txt file.

I have tried to do it also by passing the image names with variables but there is something wrong with it FMX couldn’t use the values of the variables in the array.  
sorry if my language isn’t that good but can someone help me?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 4:59pm UTC](https://forum.kirupa.com/t/jpg-from-txt-file/7967/2 "2002-11-11T16:59:13Z")

</div>

could u plz explain more, i didnt understand what you want?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 5:08pm UTC](https://forum.kirupa.com/t/jpg-from-txt-file/7967/3 "2002-11-11T17:08:55Z")

</div>

I need to make a MC that loads jpegs from external file u know with loadmovie command.  
ok but i need to control the name of the jpegs to load without editing the swf thus by editing 4 txt files  
each txt contains the name of a jpg to load  
what i said before that’s a way to change them but the problem is they (the jpeg names) are all in 1 txt file  
and i need them to be 4 separate files  
hope i explained it to all of u and waiting 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 5:22pm UTC](https://forum.kirupa.com/t/jpg-from-txt-file/7967/4 "2002-11-11T17:22:20Z")

</div>

> \*Originally posted by TheDizzAR \*  
> \*\*and i need them to be 4 separate file \*\*

Why 4? u could assign 4 variables in 1 TXT file!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 5:27pm UTC](https://forum.kirupa.com/t/jpg-from-txt-file/7967/5 "2002-11-11T17:27:38Z")

</div>

i need that to link to it with a cms system  
i have a swf with 4 parameters and each one has its own tekst picture and link so i just need that 4 files to fit in my code
