I want to cache sounds for an AIR mp3 player on a phone. Not sure of all my options.
1. Sound.load + Sound.extract 2. URLStream.load + Sound.extract + Sound.sampleData 3. Sound.load + URLStream.load 1. I load the Sound via Sound.load. When it's done via Event.COMPLETE, I do a sound.extract and save the ByteArray to disk. Almost works... Problem: ByteArray is uncompressed MP3. 8 meg MP3 goes to 65 megs. That's ok for Desktop, not ok for phone. Worse, the ByteArray doesn't work when you give it to a Sound.load again. 2. Sound.sampleData expects a fully loaded sound that you can feed it bytes; not sure how to make this work with streaming sound. Problem: ??? how do I execute this? 3. This almost works... Problem: Both desktop and phone seem to COMPLETELY IGNORE internet cache; it re-downloads the entire sound file again. On the phone it'll actually fail sometimes. I think I just need to figure out #2, but unsure how... or if there are other options I'm completely missing. To be clear, I'm downloading from SoundCloud and cannot pre-package these mp3's into the installation. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

