Hey - thanks Jeff and Jester. Another difference between Jeff's code and mine is that his uses the delegate to play the sound as well as to call the onSoundComplete method.
I was curious why snd.start() was called twice. I removed the snd.start() call in the startSound() function and it worked - but the sound would not repeat (I added a button to repeatedly play the sound, instead of making it an initialization event). Adding the snd.start() back in allowed repeating. Not sure why this is the case. Also curious what performance difference - if any - there is between embedded and non-embedded sounds. I was able to get it to work both ways. Thanks again. - Tom At 03:55 PM 7/28/2005, you wrote: >As I say, not entirely sure why mine works when the original doesnt, but it >works, which is good enough for now. > >At 03:49 PM 7/28/2005, you wrote: > >The Activation Object is the weirdest beast... XML & LoadVars will both stay > >around AND fire their onLoad/onData events even if you declare them as local > >vars. > > > >While this is nice to save on member variables, no one knows what the heck > >garbage collection does with them, so doing things your way is recommended. > > > >...still, I have in the past gotten onSoundComplete to work via a local var > >so not sure... > > > >----- Original Message ----- > >From: "Jeff Tapper" <[EMAIL PROTECTED]> > >To: <[email protected]> > >Sent: Thursday, July 28, 2005 3:36 PM > >Subject: Re: [flexcoders] sound problem: onSoundComplete > > > > > > > >WARNING: The remainder of this message has not been transferred. > >The estimated size of this message is 41981 bytes. > >Click on the Retrieve From Server icon above and check mail again to get > >the whole thing. (If you're reading this in the preview pane, you'll need > >to open the message to see the icon.) If the Retrieve From Server icon is > >not showing, then this message is no longer on the server. > > > >-- >Flexcoders Mailing List >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com >Yahoo! Groups Links > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

