# sharedObject help -- won't clear

**URL:** <https://forum.kirupa.com/t/sharedobject-help-wont-clear/135169>\
**Category:** Uncategorized\
**Created:** [January 25, 2005, 9:24am UTC](https://forum.kirupa.com/t/sharedobject-help-wont-clear/135169 "2005-01-25T09:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uber1](https://avatars.discourse-cdn.com/v4/letter/u/779978/32.png) [@uber1](https://forum.kirupa.com/u/uber1)\
**Post date:** [January 25, 2005, 9:24am UTC](https://forum.kirupa.com/t/sharedobject-help-wont-clear/135169/1 "2005-01-25T09:24:47Z")

</div>

I am trying to create a option for my footer to load a movie file. It creates a sharedObject… user\_so.qLoad.

first frame actions are this…

```auto
stop();
Stage.showMenu = false;
user_so = SharedObject.getLocal("user");
if(user_so.data.qLoad != undefined) {
	gotoAndPlay(2);
} else {
	stop();
}

```

When you click yes to load…

```auto
on(release){
	user_so.data.qLoad = "yes";
	_root.gotoAndPlay(2);
}

```

you have an option to unload the footer… and this is where it won’t work…

```auto
on(release){
	user_so.clear();
	_root.gotoAndStop(1);
}

```

it will go back to frame 1 on the root… and i trace the value and it goes to undefined… but it goes back to frame 2 and loads the movie again.

this is my first attempt at a sharedObject… can anyone help me out?

heres the source… i made a tester of the movie that loads…  
its MX-2004
