Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2004
    Location
    New Jersey
    Posts
    70
    Thanks
    2
    Thanked 1 Time in 1 Post

    Streaming simple audio file

    I'm using this code with a simple on/off switch for music on a website:
    Code:
    my_sound = new Sound();
    my_sound.attachSound("bestdays");
    my_sound.start(0,1000);
    play();
    But the MP3 is about 1.5MB and it takes a while for the SWF to load. Is there any SIMPLE way to stream this single audio file rather than load the whole thing before showing the movie?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Use loadSound instead. Set the second value to true to make it "streaming".

    http://www.adobe.com/support/flash/a...ionary662.html
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    oesxyl (11-07-2008)

  • #3
    New Coder
    Join Date
    Mar 2004
    Location
    New Jersey
    Posts
    70
    Thanks
    2
    Thanked 1 Time in 1 Post
    thanks aerospace. looks like i'm on the right track, but now it sounds like chipmunks singing. the track is sped up for some reason... any idea?


  •  

    Posting Permissions

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