actionscript-3flashflixel

How to play wav-sound in Flixel?


I'm unable to play wav sound with Flixel library. By the way I'm using Flashdevelop.

Error: 'pick.wav' does not have a recognized extension, and a mimeType was not provided

[Embed(source = "pick.wav")]
private var picksound:Class; 

Error: Unable to transcode pick.wav.


Solution

  • You cannot embed a .wav, but you can import one into the Flash IDE and compile an .swc

    After that you can add the .swc to your project and then create an instance of your Sound