# loadSound False

**URL:** <https://forum.kirupa.com/t/loadsound-false/109221>\
**Category:** Uncategorized\
**Created:** [May 3, 2004, 1:45pm UTC](https://forum.kirupa.com/t/loadsound-false/109221 "2004-05-03T13:45:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)\
**Post date:** [May 3, 2004, 1:45pm UTC](https://forum.kirupa.com/t/loadsound-false/109221/1 "2004-05-03T13:45:53Z")

</div>

I have a button that imports an mp3 and is supposed to load completely before playing. Problem is, when I set the loadSound to false it doesn´t play at all, but when I set it to true it does play. Here is the code:

```auto

carregarSons = function (som, numeroVolume) {
_root.som1.stop();
_root.som1 = new Sound();
_root.som1.loadSound(som, true);
	som1.onLoad = function(success){
  		this.start(0,999);
  		_root.som1.setVolume(numeroVolume);
	}
}

som2_bt.onPress = function () {
	som = "som/rap1.mp3";
	numeroVolume = 100;
	carregarSons(som, numeroVolume);
}

```

Any ideas??
