1 decade ago by gxxaxx
The Music entity implements a callback function rather nicely for 'ended'.
I was thinking of extending the Sound entity so that I could pass a callback function into the play method.
beepSnd.play( somefunc );
I was wondering if anyone knows if this is doomed to epic fail for any reason. It seems to be working more or less okay (still experimenting) in Firefox. But, I haven't tried in other browsers or platforms yet.
Thanks for any clues
I was thinking of extending the Sound entity so that I could pass a callback function into the play method.
beepSnd.play( somefunc );
I was wondering if anyone knows if this is doomed to epic fail for any reason. It seems to be working more or less okay (still experimenting) in Firefox. But, I haven't tried in other browsers or platforms yet.
Thanks for any clues