# Loading pictures/text

**URL:** https://forum.kirupa.com/t/loading-pictures-text/5286
**Category:** Uncategorized
**Created:** [September 6, 2002, 6:37pm UTC](https://forum.kirupa.com/t/loading-pictures-text/5286 "2002-09-06T18:37:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![JakeKungFu](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@JakeKungFu](https://forum.kirupa.com/u/JakeKungFu)
#### Post date: [September 6, 2002, 6:37pm UTC](https://forum.kirupa.com/t/loading-pictures-text/5286/1 "2002-09-06T18:37:29Z")

</div>

Hi!

Is there some way to load pictures/text into an SWF without it actually being in that SWF file? For example, if someone clicks on a thumbnail, i want it to load the picture, however, since there are many pictures on my website, i don’t want them all to load with the flash itself. Likewise, with text- i write a lot on my page and i want people to have the option of reviewing older writings, but i don’t want it to all load right off. If anyone knows a good way to do this, i would REALLY appreciate it! 🙂 Thanks!

jake

---

<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: [September 6, 2002, 7:15pm UTC](https://forum.kirupa.com/t/loading-pictures-text/5286/2 "2002-09-06T19:15:52Z")

</div>

I use MX, so I can’t really help you with dynamically loading .txt, but I do know that is possible.

As for dynamically loading images, that is only in MX. Flash 5 does not support that. Unless you save each image as an .swf and use loadMovie to load the image into your main flash movie.

\<B\>loadMovie Tutorial\</B\> - [http://www.kirupa.com/developer/flash5/loadmovie.asp](http://www.kirupa.com/developer/flash5/loadmovie.asp)

---

<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: [September 7, 2002, 8:43am UTC](https://forum.kirupa.com/t/loading-pictures-text/5286/3 "2002-09-07T08:43:30Z")

</div>

Loading txt in F5 is really easy, just use loadVariable “myText.txt” and separate your different parts by &  
example: &firstParagraph=blablabla&secondP=moreblabla&…  
then in your swf, you can display each of the variables  
(&firstParagraph, &secondP, &…) in a txt field with the same variable name

If you want to load different txt files, just link to each with a button…

---

<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: [September 7, 2002, 5:14pm UTC](https://forum.kirupa.com/t/loading-pictures-text/5286/4 "2002-09-07T17:14:04Z")

</div>

Ah, so you load it the same way as MX.

---

<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: [September 8, 2002, 7:14am UTC](https://forum.kirupa.com/t/loading-pictures-text/5286/5 "2002-09-08T07:14:45Z")

</div>

You can, but you shouldn’t, in MX, you’re s’posed to use the new loadVars instead … who cares 🙂

---

<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: [September 8, 2002, 6:20pm UTC](https://forum.kirupa.com/t/loading-pictures-text/5286/6 "2002-09-08T18:20:27Z")

</div>

Haha, same principle though:P
