A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Dynamically loading and playing sound files

  1. #1
    Junior Member
    Join Date
    May 2000
    Posts
    3

    Post

    Hi folks, I'm trying to find a way to dynamically load and play .MP3's or .WAV's in the same way as, say, Winamp might do. So far I've discovered the technique of making a separate movie with ONLY the audio in it and using the "load movie" action, but isn't there a way of loading a sound file by just knowing it's file name and streaming it? It seems crazy that you should have to make each music file into a flash .swf movie and allocate frames the length of the sound file to be able play it! Anyone seen a way to do this?

    Many thanks

    Moggy

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Cool

    By using Load Movie into location
    and setting the audio to STREAMING
    as soon as a few of the first frames are loaded the music will start to stream.


  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Post

    I know you can load external .txt files
    but i don't think you can load .mp3 files.

    Just stick with the seperate .swf files.
    It's just about the same thing
    the seperate .swf files just contain
    the mp3.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center