Can someone please provide a short example of how to use this?
mySoundObject.onLoad = callbackFunction
Thanks.
Can someone please provide a short example of how to use this?
mySoundObject.onLoad = callbackFunction
Thanks.
Actually, onLoad IS a callback function. You have to use it that way
mySoundObject.onLoad = function() {
// Do whatever you want it to do
}
Callback functions are simply a way to declare handlers on the fly.
I hope it helps.
pom :asian:
Hmmm… that’s what I tried in an onEnterFrame loop, having the function be a simple trace, but no joy. I’ll putz with it some more. Thanks.