PDA

View Full Version : Accessing Same Remote SharedObject From Different SWF Files


Rappstar
10-03-2005, 05:13 PM
I am trying to access the same remote SharedObject from two different SWF files.

The separate SWF files are essentially a "presenter" and a "viewer" for a web based slide show. The "presenter" SWF file has the ability to change slides. Once the slide is changed by the "presenter," I use onSync to change all the "viewers."

Right now, I am doing this from within one single SWF file, and just using separate scenes for the "Presenter" and "Viewer," and just using an opening scene where the user logs-in to determine if they are the presenter or just another viewer. I would ideally like to split this up into separate movies (presenter.swf and viewer.swf), but I don't think that SharedObjects can be shared among different SWF files.

I am hoping to either know that they can be (and how) or at least that they cannot be so I won't waste time.

Thank you.

hbd
10-04-2005, 03:44 AM
It should work as long as they re located on a same directory.
or just point at same url from each swf to make sure.

they can't be on two different domain tho.