# Load variables from multiple external txtfiles

**URL:** <https://forum.kirupa.com/t/load-variables-from-multiple-external-txtfiles/183451>\
**Category:** flash\
**Created:** [March 27, 2006, 8:56am UTC](https://forum.kirupa.com/t/load-variables-from-multiple-external-txtfiles/183451 "2006-03-27T08:56:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [March 27, 2006, 8:56am UTC](https://forum.kirupa.com/t/load-variables-from-multiple-external-txtfiles/183451/1 "2006-03-27T08:56:04Z")

</div>

Hi,

I’m using the following code to load some variables that contain links to images. I also would like to have a second file with variables with the settings for my flashmovie. How can I use this code to load 2 files? Or do I have to nest them etc?

```auto
var imageVars:LoadVars = new LoadVars();
imageVars.load("images.txt");
imageVars.onLoad = function(success:Boolean) {
//do stuff here with loaded variables
}

```

---

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [March 27, 2006, 9:41am UTC](https://forum.kirupa.com/t/load-variables-from-multiple-external-txtfiles/183451/2 "2006-03-27T09:41:06Z")

</div>

okay nvm, nesting works.
