# Variable trouble

**URL:** <https://forum.kirupa.com/t/variable-trouble/158465>\
**Category:** Uncategorized\
**Created:** [August 9, 2005, 9:59pm UTC](https://forum.kirupa.com/t/variable-trouble/158465 "2005-08-09T21:59:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolle](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jolle](https://forum.kirupa.com/u/jolle)\
**Post date:** [August 9, 2005, 9:59pm UTC](https://forum.kirupa.com/t/variable-trouble/158465/1 "2005-08-09T21:59:21Z")

</div>

Hi  
Me and a friend has been working on this MP3 player for 2 days now with no luck.  
We got a variable called “id” coming in containing a number, that number is then shipped to ASP file that looks it up in a database and returns a URL to a MP3.

> \_root.loadVariables(“loadlink.asp?id=” + **\_root.id** ,“post”);

Sofar so good, and if I create a textfield, set it to Dynamic Text and set the “Var:” to “\_root.link” it will write out the URL to the MP3 just fine.  
But when I try to use the Variable as a URL for the LoadSound

> \_global.Behaviors.Sound.mySound.loadSound(( **\_root.link** ),true);  
> (If i hardcode the link to the MP3 here, instead of “\_root.link”, it works fine)  
> I get:

> Error opening URL “Undefined”
