Hi Mark,

you could monitor the position of the sound comparred to it's duration, that way you know when it arrives at the end of the sound.

   if (sound.position == sound.duration) {
       loopCount++;
   }

In this case, the loop count will be made at the end of the sound.

HTH

Alain

Mark Walters wrote:

Does anyone know of a good way to create an onLoop event that gets
fired everytime a sound loops. I need to keep track of how many loops
are left.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to