Closed galibimtiaz closed 6 years ago
Do you have DCE enabled?
No , I did not enabled DCE, Should I ?
No, I just thought your error looks like it could be caused by DCE.
Looks like there was a case here where it was not handling null
well
The null
was occurring probably (was this on desktop or mobile?) because MP3 was not supported. OpenFL does not (currently) support MP3 outside of Flash or some web browsers.
We'd recommend using OGG and WAV, then for HTML5, include all three formats (same file name and location in your assets directory) and the Assets system should pick up all three files and support them. However, if you use openfl.utils.Assets
, your content should already be preloaded, so Assets.getSound
should work instead of Assets.getPath
Currently I am working on a project , all this time I was using
AssetManager.addSound("hurt",Assets.getSound("..."));
and It was working fine but when I started to use ,
it shows error