# Shared Object not saving?

**URL:** <https://forum.kirupa.com/t/shared-object-not-saving/230590>\
**Category:** Uncategorized\
**Created:** [June 27, 2007, 2:20pm UTC](https://forum.kirupa.com/t/shared-object-not-saving/230590 "2007-06-27T14:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![panzhuli](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@panzhuli](https://forum.kirupa.com/u/panzhuli)\
**Post date:** [June 27, 2007, 2:20pm UTC](https://forum.kirupa.com/t/shared-object-not-saving/230590/1 "2007-06-27T14:20:42Z")

</div>

hey all. i have two different swfs. one sets a shared object and one is supposed to read it. it is always coming back as undefined (I’m not permitted to have a containing .swf, btw)

writer of SO:

var user = SharedObject.getLocal(“userData”);  
var cookieValue=\_root[mcAtTarget0].\_name.charAt(10)+\_root[mcAtTarget0].\_name.charAt(11);  
user.data.first=cookieValue;  
user.flush();

reader:  
user = SharedObject.getLocal(“userData”);

if (user.data.first == undefined){  
text\_txt.text = “not here”;  
} else {  
text\_txt.text = user.data.first;  
}

what am i not getting? thanks!
