Handling the LoadSound delay for Streaming MP3

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default Handling the LoadSound delay for Streaming MP3

    Hey :)

    I have a music picker on a site i'm working on -
    [url]http://somersethouseinn.com/2004[/url]

    You'll see [1] [2] [3] under the heading "tunes". I'm streaming 3 different
    mp3s off the server. Problem is that they take a few to start playing, and i'm
    concerned users will just keep clicking on the button, causing the stream to
    start over and over again. I'd like to have some sort of loading animation that
    temporarily disables the button so they can't keep clicking on it until the
    stream starts to play. Here's the script that is controling the button right
    now.

    on (release) {
    stopAllSounds();
    mySound = new Sound();
    mySound.loadSound( "http://www.somersethouseinn.com/mp3/1.mp3", true);
    mySound.play();
    }

    somatique Guest

  2. Similar Questions and Discussions

    1. Fake Live Streaming with delay
      Hello, I'm thinking about to do a fake live streaming this way: 1. My capture card (not seem by flash as a camera) saves an avi file to a...
    2. Problem With loadSound On the web
      Salut, I have a problem with loading mp3 sound with loadSound() ,on the web server does not work but on machine well worked. i use the syntax...
    3. delay in audio streaming
      Hi, How can the recorded video from the webcam , be stored in a buffer and then uploaded to server using flash. Thanks
    4. attachSound vs. loadSound?
      wich would you prefer and why, for music to startup on a full flash site? I don't really want the user to have to wait for the sound to load once...
    5. Help with loadSound
      Hi Much appreciated if someone can help me with the following problem. I want to stream an audio file to a flash movie. The movie has a "Play"...
  3. #2

    Default Re: Handling the LoadSound delay for Streaming MP3

    You can also disable the play button once it is clicked....

    playbuttoninstance.enabled = false;

    and you can enable it again when the song gets loaded or at the end of the
    song.

    mySound.onLoad = function(success){
    playbuttoninstance.enabled = true;
    }

    or

    mySound.onSoundComplete = function(success){
    playbuttoninstance.enabled = true;
    }


    adireddy Guest

  4. #3

    Default Re: Handling the LoadSound delay for Streaming MP3

    awesome! Thank yo so much!!!
    somatique Guest

  5. #4

    Default Handling the LoadSound delay for Streaming MP3

    Great tutorial thanks. How would I add a delay to the playing of the loaded sound? Loads, then waits 3 seconds before playing? Thanks.
    Unregistered Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139