Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Alain Rousseau
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

RE: [Flashcoders] onLoop event for sound

2005-11-17 Thread Chris Wilcox
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Fendel [Die ActionScripter] Sent: 17 November 2005 18:50 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] onLoop event for sound hi, imho a better solution is to use the sound.onSoundComplete event: mySound.onSoundComplete

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Mark Walters
Fendel [Die ActionScripter] Sent: 17 November 2005 18:50 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] onLoop event for sound hi, imho a better solution is to use the sound.onSoundComplete event: mySound.onSoundComplete = function() { loopCount++ } it is fired next frame after

RE: [Flashcoders] onLoop event for sound

2005-11-17 Thread Tobias Fendel [Die ActionScripter]
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Wilcox Sent: Thursday, November 17, 2005 8:26 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] onLoop event for sound Isn't onSoundComplete called when the sound has stopped playing, not when it loops?? In which case

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Alain Rousseau
tobias ps: sorry about my bad english :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Thursday, November 17, 2005 7:17 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] onLoop event for sound Hi Mark, you could