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
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
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
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
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
5 matches
Mail list logo