|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sound load time
I created a button toggle that starts and stops an audio clip. The load time for the sound takes too long. Is there a way I can get the audio to load quickly...streaming? I figured the load time is taking longer because the MP3 clip is embedded. Is there some way to fix this? For example, I have created a page where a user can listen to audio clips and I used M3U files, which downloads immediately and starts playing the actual MP3 file, but that is with HTML and not Flash. Is there something similar I can do within Flash?
Here is the code for the button toggle to play the audio clip in Flash: bgSound = new Sound(this); bgSound.attachSound("sound1"); bgSound.start(0, 99); stopB._visible=false; stopB.onRelease = function() { bgSound.start(0, 99); playB._visible=true; stopB._visible=false; }; playB.onRelease = function() { bgSound.stop(); playB._visible=false; stopB._visible=true; }; stop(); Referring URL: http://www.dwayneepps.com/MHM/index.htm I appreciate any help! Thanks in advance. -Dman100- |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > sound load time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|