Shared Object Help

Hi there, I’m trying to learn shared objects by attempting
a basic function. I would like to have an .sol file remeber
what buttons are clicked on by a user and assign an alpha
value for the buttons that have been clicked.

Here’s what I have…


user = SharedObject.getLocal("clicks");
user.data.button1 = button1;
user.flush();

for the buttons I was thinking maybe


on(release, ){
user.data.button1 = _root.button1._alpha=50 
user.flush();
}

Am I doing this right?