Jump to content
Fórum Script Brasil
  • 0

Loop Não Funcionando


Guest --rikw22 --

Question

Guest --rikw22 --

controlador.onLoad = function() {

stopAllSounds();

som = new Sound();

som.loadSound("musica7.mp3", true);

som.start(0,999);

};

não tah funcionando o loop,

ele reproduz apenas uma vez!

c alguém puder me ajudar ficarei grato!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Extraído do Help do Flash:

loops:Number [optional]- A parameter that lets you specify the number of times the sound should play consecutively. This parameter is not available if the sound is a streaming sound.

o parâmetro de repetições não funciona se a música estiver em streaming.

agora, como fazer em streaming e repetir indefinidamente??? tenta colocar isso:

som.onSoundComplete = function() {
   som.start();
}

Link to comment
Share on other sites

  • 0

eita...mostra aí como você colocou

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152k
    • Total Posts
      651.5k
×
×
  • Create New...