# Accessing Local shared object from diff SWFs - help needed

**URL:** <https://forum.kirupa.com/t/accessing-local-shared-object-from-diff-swfs-help-needed/279783>\
**Category:** flash\
**Created:** [January 19, 2009, 10:14am UTC](https://forum.kirupa.com/t/accessing-local-shared-object-from-diff-swfs-help-needed/279783 "2009-01-19T10:14:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Expert\_Buddy](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@Expert\_Buddy](https://forum.kirupa.com/u/Expert_Buddy)\
**Post date:** [January 19, 2009, 10:14am UTC](https://forum.kirupa.com/t/accessing-local-shared-object-from-diff-swfs-help-needed/279783/1 "2009-01-19T10:14:51Z")

</div>

Hi Buddies,

I am facing a problem in accessing Local shared object from 2 diff. swfs. Let me explain the scenario clearly.

I am developing a radio widget (in [maindomain.com](http://maindomain.com) for ex)which has a button to open a html page (placed in [contentserver.com](http://contentserver.com)) as a popup with specific wt and ht. The html page loads the same SWF file of radio widget from “[maindomain.com](http://maindomain.com)”, means whatever changes we do for the SWF in maindomain will be reflected automatically in the popup also.

Here where the problem is:

1. Say I am playing radio station “A” in main window and added this station to favourite list (which is done by storing in Share object). So when i open the popup its reflect there.

2. Now when i change radio station “A” to “B” in the popup and added “B” to favourites and closed the popup.

3. When I refresh the main window, I can get both “A” and “B” in fav, as expected.

4. But if without refreshing in main window when I changed to some new station “C” and then open the popup, it has got only radio station “A” in the fav list.

I am pretty sure this is because of Sharedobject.flush(). The thing I am wondering is, why the station “B” which is also pushed to sharedobject when added to favourite is getting deleted when I flush() the SO.?

I googled many forums but not satisfied solution for this. Even I tried to get the Sharedobject.getLocal(“SO”,"/") every time before using data in it. but no use.

Is it a Flash limitation accessing LSO from diff SWF?

If anybody have any idea please let me know.

Thanks,  
EB
