# Which sound ist playing, can I get parameter of loadSound?

**URL:** https://forum.kirupa.com/t/which-sound-ist-playing-can-i-get-parameter-of-loadsound/192250
**Category:** flash
**Created:** [June 27, 2006, 8:29am UTC](https://forum.kirupa.com/t/which-sound-ist-playing-can-i-get-parameter-of-loadsound/192250 "2006-06-27T08:29:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jankratochvil](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jankratochvil/32/566_2.png) [@jankratochvil](https://forum.kirupa.com/u/jankratochvil)
#### Post date: [June 27, 2006, 8:29am UTC](https://forum.kirupa.com/t/which-sound-ist-playing-can-i-get-parameter-of-loadsound/192250/1 "2006-06-27T08:29:51Z")

</div>

I tried to load some songs randomly.  
I have. q., is it possible to get value of URL parameter of loadSound method?  
I would like to know, which song was loaded.  
Thanks

```auto
var bgSound:Sound = new Sound ();
// if the sound loads, play it; if not, trace failure loading
bgSound.onLoad = function (success:Boolean)
{
	if (success)
	{
		bgSound.start (0, 999);
		trace("Played song has duration "+ bgSound.duration);
		//status_txt.text = "Sound loaded";
	}
	else
	{
		// status_txt.text = "Sound failed";
	}
};
// load the random sound of 5 songs
bgSound.loadSound ("bgSound_"+Math.round( Math.random()*5) + ".mp3", false);

```
