I'm using blazeDs to comunicate with java classes, and i call a method that returns a sound file, that could either be wav or mp3,
i recieve it as a ByteArray, and i need to convert it and play, i tried Loader.loadBytes, but i get an error saying that it's an incompatible type.
Thank you all so much..
I don't know of any APIs to let you play sound from a bytearray. Someone might have cooked up a solution so search the internet.
One way you could do it is to add a SWF header to the byte array so it looks like a simple SWF with just a sound in it.
Flex SDK Developer
Adobe Systems Inc.