function play():Void {
    currSound.onSoundComplete = Delegate.create(this, 
this.soundCompleteHandler);
}

function soundCompleteHandler():Void {
    // code
}

regards,
Muzak

----- Original Message ----- 
From: "Daniel Glue" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, August 15, 2007 3:38 PM
Subject: Re: [Flashcoders] Class to loop sound objects in order


> Hey Muzak, thanks for yr response, I'm not sure of the syntax to use
> Delegate in this instance, I tried this:
> currSound.onSoundComplete = function() {
> trace("mp3c:"+mp3C+"  length:"+snds_ar.length)
> //if there are more sound objects to play iterate thru array and retrigger
> play()
> if (mp3C<snds_ar.length) {
> mp3Count++;
> //this bit isn't working!
> Delegate.create(this, play); //  play();
> } else {
> if (loopForever) {
> mp3Count = 0;
> this.play();
> } else {
> //all sound objects have played and play() is not retriggered
> mp3Count = 0;
> }
> }
> };
>
>
> but it won't work and I can't find an event to tie this to. If you could
> spell it out for me I would be very grateful.
> Thanks!,
> Dan
>


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to