# \[AS2\] sharedObject help

**URL:** <https://forum.kirupa.com/t/as2-sharedobject-help/312349>\
**Category:** flash\
**Created:** [July 31, 2010, 8:12pm UTC](https://forum.kirupa.com/t/as2-sharedobject-help/312349 "2010-07-31T20:12:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devlini](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Devlini](https://forum.kirupa.com/u/Devlini)\
**Post date:** [July 31, 2010, 8:12pm UTC](https://forum.kirupa.com/t/as2-sharedobject-help/312349/1 "2010-07-31T20:12:31Z")

</div>

I have attempted to create a save file using sharedObject but it doesn’t work. I don’t get any errors it just doesn’t seem to save when I press the save button.

In the main frame I have:

```auto
user_so = SharedObject.getLocal("user");
if(user_so.data.tclock != undefined) {
	clock_txt.text = user_so.data.tclock;
	gregism_txt.text = user_so.data.gregism;
} else {
	gregism = 0
	clock = -1
}

```

In the save button movie clip I have:

```auto
on(release) {
	user_so.data.tclock = _root.clock_txt.text;
	user_so.data.gregism = _root.gregism_txt.text;
	user_so.flush()
}

```
