Checkbox to load music with shared objects

Well, I’ve been banging my head against the wall trying to figure this one out for the past few days, without luck. I want to do three things with my little applet:

  1. When the applet is loaded on my website and you’ve never visited the website before, load the background music and an unchecked checkbox for disabling it.

  2. If you check that check box, it will stop the music and use a shared object so that the next time the user visits the site, the music will default to disabled and will not load the external mp3 file.

  3. If the user then unchecks the box at some later date, the program will act like #1 until it is checked again.

I thought this would be simple, and indeed I’ye managed to get it to do eyerything except properly store the shared object information. Here’s the code:

Deleted, because I solyed the problem below!