# Shared Object Help

**URL:** <https://forum.kirupa.com/t/shared-object-help/107277>\
**Category:** Uncategorized\
**Created:** [April 13, 2004, 11:49pm UTC](https://forum.kirupa.com/t/shared-object-help/107277 "2004-04-13T23:49:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meridian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/meridian/32/243_2.png) [@Meridian](https://forum.kirupa.com/u/Meridian)\
**Post date:** [April 13, 2004, 11:49pm UTC](https://forum.kirupa.com/t/shared-object-help/107277/1 "2004-04-13T23:49:40Z")

</div>

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…

```auto

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

```

for the buttons I was thinking maybe

```auto

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

```

Am I doing this right?
