# Loading external variables

**URL:** <https://forum.kirupa.com/t/loading-external-variables/216932>\
**Category:** flash\
**Created:** [February 21, 2007, 8:08pm UTC](https://forum.kirupa.com/t/loading-external-variables/216932 "2007-02-21T20:08:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dizzee](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@Dizzee](https://forum.kirupa.com/u/Dizzee)\
**Post date:** [February 21, 2007, 8:08pm UTC](https://forum.kirupa.com/t/loading-external-variables/216932/1 "2007-02-21T20:08:44Z")

</div>

My original problem. or so I thought was using variables outside the function that called them

Mt current problem the script progresses even though the external variables have not yet loaded and thus I get multiple undefined.

If I try and envelope the whole script into the onload. some aspect of the script don’t work

So… How do I load some simple text from a text file and then use the variables in the rest of the script?
