Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Rafael Leoni

[Resolvido] Música em looping

Recommended Posts

Bom dia rapaziada,

 

não estou conseguindo colocar uma música em looping.

 

Segue o código:

 

function playSound()

{

mySound = new Sound();

mySound.loadSound("music.mp3", true);

//mySound.start(0,999);

chk = true;

mc.dda.play();

text_mc.gotoAndStop(1);

} // End of the function

function stopSound()

{

mySound.stop();

chk = false;

mc.dda.stop();

text_mc.gotoAndStop(2);

} // End of the function

playSound();

var chk = true;

mc.dda.onRelease = function ()

{

if (chk)

{

stopSound();

}

else

{

playSound();

} // end else if

};

 

Como podem ver já testei usando mySound.start(0,999);

Está comentado acima.

 

Por favor, quem puder me ajude.

 

 

Valeu!

Rafael Leoni

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.