streaming mp3 / flash mx
- Started
- Last post
- 11 Responses
- jslr
...and a happy weekend to you, too. :)
Streaming mp3 files in flash - I'm using loadSound, set to true. A selected track starts to play as soon as the sound starts loading (so far so good...) but restarts when fully loaded. Is there anyway around this?
Thanx in advance for any replies...
- jslr0
ok, so either everyone's already in weekend mode, or the "streaming mp3 / flash" title is a real turn-off these days...
Decided to load the files fully before starting them - they're fairly short files anyway, but I'd still like to know how to work around the restart issue...
Anyone?
- gelund0
Check out the FSound component (downloadable source) from Roland Schaer at: http://www.rolandschaer.ch/
- ave0
YourSound.onSoundComplete = function(){YourSound.stop()};
?
- ave0
- jslr0
Gelund - checked out the FSound component a while back. Not sure if I can use it with what I've done already, but I'll look again. Thanx.
Ave: me=flash noobie. Not sure if I got where you were leading me with that onSoundComplete - mySound.Stop idea...care to throw me another hint? Thanx again...
- ave0
Check this:
- ********0
gelund nice call I've been looking for a component like this shit nice!
- jslr0
cool stuff.. but (and forgive me if I'm a little less than a bright bulb on this), this is an event you can use to trigger a function when a sound file has finished playing, right? My original prob was the sound file was starting twice - first when it loaded enough of itself to get going, and again when it had finished loading - how does the OnSoundComplete help with this?
Like your player, by the way... :)
- ********0
I'm a bulb, a radish bulb
- ave0
Sorry I misread you there. Weird, I don't remember bumping into that. I'm looking through my code...
- ave0
Maybe... placement in the time line/ The playback head is hitting (calling) the loadSound script or a Sound.play(), a second time...
Wish I could help. :( As you can see my bulb is not so bright!