# As2 shared objects problem!

**URL:** <https://forum.kirupa.com/t/as2-shared-objects-problem/275307>\
**Category:** Uncategorized\
**Created:** [November 12, 2008, 10:24am UTC](https://forum.kirupa.com/t/as2-shared-objects-problem/275307 "2008-11-12T10:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogdanmin](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bogdanmin](https://forum.kirupa.com/u/bogdanmin)\
**Post date:** [November 12, 2008, 10:24am UTC](https://forum.kirupa.com/t/as2-shared-objects-problem/275307/1 "2008-11-12T10:24:18Z")

</div>

So,

I have 2 swf files:

I with

```auto
on(press){
    var shared_object:SharedObject;
    shared_object = SharedObject.getLocal("bogShared","/");
    text1.text = "";
    text1.text = shared_object.data[xxx];
}

```

II with

```auto
on(press){
    var shared_object:SharedObject;
    shared_object = SharedObject.getLocal("bogShared","/");
    shared_object.data[xxx] = text2.text;
    shared_object.flush();
    text2.text = "";
}

```

The problem is: if I write something to shared objects from 2nd swf work great, the sol file si modified properly, but if I try to get the informations from shared object with 1st swf I can only once. I need to take every time the informations from shared object, because if I write a different thing with 2nd sfw I want to show the changes on 1st swf.

Help!:insomniac:
