Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

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

1 decade ago by empika

Yup, why not. I'm all up for having more callbacks on things. There seem to be alot of opportunities to extend Impact with callbacks, I've come across a few instances where i've needed it recently.
Page 1 of 1
« first « previous next › last »