# Loading sound with loadVars

**URL:** <https://forum.kirupa.com/t/loading-sound-with-loadvars/182727>\
**Category:** Uncategorized\
**Created:** [March 21, 2006, 12:34am UTC](https://forum.kirupa.com/t/loading-sound-with-loadvars/182727 "2006-03-21T00:34:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toth](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@toth](https://forum.kirupa.com/u/toth)\
**Post date:** [March 21, 2006, 12:34am UTC](https://forum.kirupa.com/t/loading-sound-with-loadvars/182727/1 "2006-03-21T00:34:08Z")

</div>

Hi,

I figured out how to use ASP in Flash and it’s no problem to load and send textfield data from and to the asp page.  
But now I need to know how to get a variable from that asp page into my loadSound object.

the asp page (audio\_loader.asp) is giving this as result

audio1=sounds/sound1.mp3

Now I want to assign it to the soundLoad

loadVariablesNum(“audio\_loader.asp”, 0, “POST”);  
stop();  
function MoveNext() {  
nextFrame();  
}  
coolTune = new Sound (soundLoader);  
coolTune.loadSound( [COLOR=red]here needs to be the var audio1[/COLOR] ,true);  
coolTune.onSoundComplete = MoveNext;

I dont know how I need to code this. must be simple 😛
