This content has been marked as final. Show 4 replies
you can use the onSoundComplete method of the sound class to set your sharedobject or when the stop/pause button is pressed.
there's no reliable way to execute code when the browser window is closed and i don't see how that would meet your needs. if you don't really care whether the user hears your audio, set the sharedobject data when your swf starts.
That's that is what I needed :) My code is still not working however... Now there seems to be a problem somewhere else in my script. The onSoundComplete does seem to be firing (the trace shows Done), but it doesn't seem to be storing the LSO (the trace on the variable just shows undefined.) I wouldn't be surprised if it is something simple that I have overlooked. Any insight from anybody would be appreciated.
Here is my code:
You almost there. Your problem is that you're not actually getting the SO when you revisit - try this.
Hey, thanks a bunch. That seems to have done it.