# Dynamic text - loadVars question?

**URL:** https://forum.kirupa.com/t/dynamic-text-loadvars-question/94788
**Category:** Uncategorized
**Created:** [November 16, 2003, 10:04pm UTC](https://forum.kirupa.com/t/dynamic-text-loadvars-question/94788 "2003-11-16T22:04:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Turde](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Turde](https://forum.kirupa.com/u/Turde)
#### Post date: [November 16, 2003, 10:04pm UTC](https://forum.kirupa.com/t/dynamic-text-loadvars-question/94788/1 "2003-11-16T22:04:09Z")

</div>

Hello dear sirs and senoritas,

I’ve been puzzled with a thing concerning loadVars element:

In my movie I’m loading an external text file with number of variables ( names and details of a song files presented in my page), among these to-be-loaded variables is the path that I would like to use in the movie when loading external mp3 files with the loadSound command. In the txt file the is a var called “path1” whitch is the _full_ path to the mp3 file.

So after loading in the variables, i write:

mySound.loadSound(path1, true)

And I get errors when I hit the play button while running the movie.

If I write the path in flash and don’t load it from the txt file, like this:

Var path1= “the full path to the file”  
mySound.loadSound(path1, true)

= It works like a charm!

SO my question would be how can I accomplish to load these kind of a external paths and use them when writing AS?

Thank you very much for any help,

turde
