I guess you're compiling SoundPlayer.as by itself. SoundPlayer is a component, not an application. To see it working, you'll have to write a small test application, like so:
Changing source
anonymous
September 22 2006, 00:59:09 UTC
Manish,
This is a great component. I got everything working except I cannot programatically change the source for the soundplayer at soundComplete event. Any help will be appreciated.
Re: Changing source
anonymous
October 7 2006, 22:13:56 UTC
I had the same problem, and I found a fix. In the bounceEvent method, I moved the call to dispatchEvent to after the call to the stop method. That way it stops the sound when it reaches the end, and then calls the soundComplete event instead of dispatching the event and stoping right after you just loaded a new sound.
Comments 6
Reply
Reply
Reply
This is a great component. I got everything working except I cannot programatically change the source for the soundplayer at soundComplete event. Any help will be appreciated.
Thanks
Venkat
Reply
Dan
Reply
Reply
Leave a comment