Sound load error

is there a way to load sound file without embed

code here
var sound:Sound = new Sound(new URLRequest(“http://127.0.0.1/3.ogg”));
sound.play();

neko and windows error message: Sound.hx:100: Error: Could not load “http://127.0.0.1/3.ogg

There’s no webserver running, so the url “http://127.0.0.1/3.ogg” points to nothing.

For desktop target you can do

var sound = Sound.fromAudioBuffer(lime.audio.AudioBuffer.fromFile("3.ogg"));

thanks for reply
i test you code and output error message:
src/Main.hx:32: characters 20-41 : Class<openfl._v2.media.Sound> has no field fromAudioBuffer
src/Main.hx:32: characters 42-73 : Unknown identifier : lime
Build halted with errors.

Sorry that was for the wrong version,

did you try var sound:Sound = new Sound(new URLRequest("3.ogg"));? (or "Assets/3.ogg" if you have your assets in the standard folder)

finally i use sound.loadCompressedDataFromByteArray() on cpp and neko
html5 i use sound.load()