Load external wav

hey!

what i have:

var my_sound = new Sound();
my_sound.loadSound(“ff.wav”, true);
this.createEmptyMovieClip(“my_mc”, 9876);
var position = my_sound.position;
my_mc.onEnterFrame = function() {
if (my_sound.position == position) {
var percent = 100*my_sound.getBytesLoaded()/my_sound.getBytesTotal();
my_txt.text = “Buffering “+Math.floor(percent)+”%”;
} else {
my_txt.text = “Playing”;
}
position = my_sound.position;
};

what the problem is:

when i load a mp3, no problem
when i load a wav, what i need, it buffers but doesnt play the wav file…

also

how can i embed windows media player into flash to play an external avi file?
i can do it in html using javascript but how to do this within flash?

these were my questions of today…
thank you
xx

That’s because you can only load MP3s dynamically. No other formats are supported. :-/

**** thats tooo bad
it was for recording sound in asia and then put them online, but i dont have the possibility to record-convert them to mp3…
im recording the sound with my digi cam…

kay thx anywayz

Well, there are a lot of audio format converters out there. :slight_smile:
…And remember, if you don’t know where to find it, google it! :stuck_out_tongue: