
29/07/2007, 16:57
|
| | Fecha de Ingreso: agosto-2004
Mensajes: 38
Antigüedad: 20 años, 6 meses Puntos: 1 | |
Re: Sonido Contínuo en Flash ?? una pregunta, no me sale el tema de que el sonido haga loop, se escucha el corte entre repeticiones...
Aca esta mi codigo:
thisSound = new Sound; // en el se cargaran cualquiera de los 2 sonidos
Sound1 = new Sound; // sonido con el que empieza
Sound1.attachSound("Sound1");
var Sound1added:Boolean = false;
if (Sound1added == false){
thisSound.attachSound("Sound1");
Sound1added = true;
}
thisSound.start();
thisSound.onSoundComplete = function(){
thisSound.start();
}
Snd1_mc.onRelease = function(){
if (Sound1added == false){
thisSound.stop();
thisSound.attachSound("Sound1");
thisSound.start();
Sound1added = true;
}
}
Snd2_mc.onRelease = function(){
if (Sound1added == true){
Sound2 = new Sound;
Sound2.attachSound("Sound2");
thisSound.stop();
thisSound.attachSound("Sound2");
thisSound.start();
Sound1added = false;
}
}
Calculo que el problema esta en
thisSound.start();
thisSound.onSoundComplete = function(){
thisSound.start();
}
alguna manito?
saludos! |