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 for ex)which has a button to open a html page (placed in contentserver.com) as a popup with specific wt and ht. The html page loads the same SWF file of radio widget from “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:
-
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.
-
Now when i change radio station “A” to “B” in the popup and added “B” to favourites and closed the popup.
-
When I refresh the main window, I can get both “A” and “B” in fav, as expected.
-
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