Muzak, thanks so much for that :) Alain I have been using your classes you kindly posted and they are working great, I've customised them a little to my needs so I can start and stop them and set the volume and they do exactly what I want.Thanks again everyone, Dan
On 16/08/07, Muzak <[EMAIL PROTECTED]> wrote: > > 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 > _______________________________________________ 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