Ok, so I'm trying to record sound from a microphone, allow the user to preview the sound, then compress the sound to mp3, and upload the mp3 to the server. I've gotten everything to work except for allowing the user to preview the sound. The microphone records a raw byteArray, but the Sound class can only play a URL request. I've type-casted the byteArray to a Sound class, I've compressed it to mp3 and type-casted it, but it doesn't work. I can send it to the server, and then request the server and play it, but this isn't optimal. Does anyone know how to play an uncompressed byteArray generated by the microphone?
I think you want to use the sampleData event from the Sound object.