Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : Problem with playing multiple imported sounds


tralfaz
8/3/2005 9:37:57 PM
[quoted text, click to view]

If you just want the same sound to play over and over again it can me
much simpler than that..
mysnd = new Sound();
mysnd.attachSound("snd1");
mysnd.start(0,999);

Was I not understanding what you want to do?

If you use an mp3 there will be a small pause between loops. Use a
wav file instead if you need the sound to loop without the pause.
tralfaz

fire_flash
8/3/2005 9:40:34 PM
Hi ,

I have this problem

imagine you import an external mp3 (or from a library)

sound length is like 1 or 2 seconds. when you try to play , the sounds does
not play consequence and delay between them are sometimes different .

please help

using setInterval you play it like this

mysnd = new Sound();
mysnd.attachSound("snd1");
// or mysnd.loadSound("1.mp3",false);
mysnd.onLoad = function(){
sndplayer = setInterval(playmp3,50);
}

function sndplayer(){
mysnd.start(0);

}
AddThis Social Bookmark Button