# loadSound problem

**URL:** <https://forum.kirupa.com/t/loadsound-problem/158938>\
**Category:** flash\
**Created:** [August 12, 2005, 9:31pm UTC](https://forum.kirupa.com/t/loadsound-problem/158938 "2005-08-12T21:31:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)\
**Post date:** [August 12, 2005, 9:31pm UTC](https://forum.kirupa.com/t/loadsound-problem/158938/1 "2005-08-12T21:31:49Z")

</div>

I have used the loadSound() command before without problems using a url. This time i would like it to play a url that is in a txt file that is on the server.

The purpose for this is that i have a form that a user inputs the url of the song and is then imbeded though php to a txt file named song.txt.

Here is what i have right now that isn’t working…

```auto
 song = new LoadVars();
song.load("[http://www.thelibrium.com/myspace/kelly/song.txt](http://www.thelibrium.com/myspace/kelly/song.txt)");
music1 = new Sound(song, true);
music1.loadSound();
display = 0;
music1.start(0, 999);
sounder.play();
music1.onSoundComplete = function ()
{
	music1.start(0, 999);
}; 

```

hopefully someone can steer me in the right direction

thanks for your help
