Re: [Flashcoders] 1st message - Sound and byteArray
On 11/13/06, Claus Wahlers <[EMAIL PROTECTED]> wrote: > I fetch a mp3 files through a homemade process using sockets, and I > have the binary in a byteArray somewhere. I have the data, and I'd > like to play it, but the Sound() class only takes URLs. > > I don't see how i could play this mp3 from memory. Any ideas ? There's no easy way to do it. You need to create a SWF on the client that wraps your mp3, and then push it into Loader via loadBytes. This may get you started: http://www.flashcodersbrighton.org/wordpress/?p=9 Great Claus, _thanks_. All I needed was a link :) Posted on few forums, sent a mail to a adobe AS3 developer and had no answer... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] 1st message - Sound and byteArray
I fetch a mp3 files through a homemade process using sockets, and I have the binary in a byteArray somewhere. I have the data, and I'd like to play it, but the Sound() class only takes URLs. I don't see how i could play this mp3 from memory. Any ideas ? There's no easy way to do it. You need to create a SWF on the client that wraps your mp3, and then push it into Loader via loadBytes. This may get you started: http://www.flashcodersbrighton.org/wordpress/?p=9 Cheers, Claus. -- claus wahlers cĂ´deazur brasil http://codeazur.com.br ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] 1st message - Sound and byteArray
Hi everyone, I'm trying to do the following using AS3/Flex, but i can't find any way to do so : I fetch a mp3 files through a homemade process using sockets, and I have the binary in a byteArray somewhere. I have the data, and I'd like to play it, but the Sound() class only takes URLs. I don't see how i could play this mp3 from memory. Any ideas ? thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com