# No Sound is listened, simple code

**URL:** <https://forum.kirupa.com/t/no-sound-is-listened-simple-code/323719>\
**Category:** flash\
**Created:** [July 13, 2011, 9:04pm UTC](https://forum.kirupa.com/t/no-sound-is-listened-simple-code/323719 "2011-07-13T21:04:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecoolman](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@joecoolman](https://forum.kirupa.com/u/joecoolman)\
**Post date:** [July 13, 2011, 9:04pm UTC](https://forum.kirupa.com/t/no-sound-is-listened-simple-code/323719/1 "2011-07-13T21:04:33Z")

</div>

I paste here my code in timeline

this.createTextField(“status\_txt”, this.getNextHighestDepth(), 0,0,100,22);

var my\_sound:Sound = new Sound();  
my\_sound.loadSound(“Flamenco.wav”, true);  
my\_sound.onLoad = function(success:Boolean) {  
if (success) {  
my\_sound.start();  
status\_txt.text = “Sound loaded”;  
} else {  
status\_txt.text = “Sound failed”;  
}  
}  
my\_sound.start();  
trace(my\_sound.getVolume());//output=100;

Flamenco.wav is not in my library, it’s in the same folder the fla file is.

You could say “use my\_sound.attachSound(ID)” but it’s required to import a wav file to library(what about if you have to import a lot of sound files?), it’s ok, but I think the loadSound() method is more elegant, don’t you think?.  
But the question remains,  
why with this simple code, I can’t hear nothing? :ducky:
