A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: How Does this audio load so fast?

  1. #1
    Senior Member
    Join Date
    Aug 2002
    Location
    New York
    Posts
    599

    How Does this audio load so fast?

    The audio track on this site loads very quickly. It must be a large mp3: www.lillipiovesan.com.br/teste

    How can I embed an audio track like this (a complete 3 minute song) and have it load in justa few moments?

    cheers!
    jen

  2. #2
    Senior Member
    Join Date
    May 2003
    Location
    Houston, TX
    Posts
    268
    It appears that they are streaming it. Streaming allows for a small portion to load before playing. The rest of the file loads as the song plays.

    Also, the quality of the song is low, allowing for quicker downloads.
    "Leading the business of today into the future of tomorrow"

  3. #3
    Senior Member
    Join Date
    Aug 2002
    Location
    New York
    Posts
    599
    Wouldn't they require the Flash 7 plugin though to stream?

  4. #4
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Hi,

    Technically, streaming(progressive file download) has been available since at least Flash 5. Maybe before but I didn't start with Flash until version 5. Before there was a sound object, the method involved outputting a .swf file with a mp3 embedded and loading that .swf into another movie. The loadMovie method is a progressive download and works like streaming for a sound object. With FlashMX or higher, the sound object is available to handle streaming .mp3 files directly into the flash player........

    mySound=new Sound();
    mySound.loadSound("someFile.mp3",true)

    The second parameter of the loadSound method determines whether the sound is streamed(true) or loaded entirely before playing as an event sound(false).

  5. #5
    Senior Member
    Join Date
    Aug 2002
    Location
    New York
    Posts
    599
    great, you made my day!


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