package;
import openfl.net.URLRequest;
import openfl.media.Sound;
import openfl.display.Sprite;
class Main extends Sprite
{
public function new ()
{
super ();
var req = new URLRequest( "crash.ogg" );
var s = new Sound(req);
s.play();
}
Try using Sound.fromFile ("path/to/file.ogg");, I think that should work
Creating a new Sound (urlRequest); is an oversight, probably because we do not supporting streaming network sound right now. We’ll try and get this handled at least for local resources