Hi! I'¨m a new user to HaxeFlixel so this might just be incorrect usage, however I've tried all the official usage instructions. The problem is when using FlxSound in my haxeflixel game. I create a variable called whip:
i set this variable using the following code:
whip = FlxG.sound.load(AssetPaths.whip__mp3);
and I make sure i have whip.mp3 in my sounds map.
When I go to call the play function using:
flash gives me an "Invalid sound" error. The sound loaded correctly, but it fails when it plays. I've tried to load the sound using whip.load(...) and also tried to play the soound directly using
FlxG.sound.play(...) but I always get the same error. I also tried using different sound formats but to no avail. What am I doing wrong here? I can't find anyone having the same problem using haxeflixel.