Comments: Flash SharedObject cross-domain trick

Hi,
i read ur article it was wonderful ..

I am trying to implement web services using flash API. and tested with the cross domain issues by using loadpolicy file api.

But i thing this is not a good solution to implement the security, we should need a generalized one and not specific to the product. because we cannot ask all the service provider to create a crossdomain.xml file and put that in their server root.
If any one have some other solution to overcome this cross domain issue pl let me..

thanks in advance
anand

Posted by Anand at January 28, 2004 02:20 AM

Hello,
i wanted exactly what you have mentioned in the article.
I am using so = SharedObject.getRemote("testlog", "rtmp:/./..", "/");
But it is creating this testlog.sor in C:\Documents and Settings\Administrator\Application Data\Macromedia\Flash Player folder. I wanted it to create it in localhost.
Can you please help me in this?
Thank you

Posted by Rashmi at June 10, 2004 10:49 AM

So your local swf file needs to access the same SharedObject when it's run either from the file system or through a webserver on your localhost, right? As I recall, in my tests I found it impossible for movies from other domains to access shared objects in a folder of a different domain, sorry. So, the only way really is to use the root folder of the SharedObject folder. The only problem with that is that any swf can theoretically over-write your data.

Another idea, how you might be able to go around this problem is to let the localhost swf always do the writing to the sharedobject. However, it requires that there's always a web server running on your localhost, so you can let the swf run on the command line to load another swf from your localhost.

Posted by alphageek at June 14, 2004 04:07 PM

Thanks for the information about locating the .sol file for the PC.

Now what should the getRemote location be for an APPLE running OS 10.x?

Thanks in advance.

lee smith

Posted by LEE SMITH at July 22, 2004 11:44 AM

Yeah the post was a bit PC biased I know :) Well I don't really have much experience on an Apple, especially OS 10, but considering it's an xNIX derivative, you should be able to just do "locate .sol". Furthermore, I guess that MM would store the files somewhere under the user home, like .flash directory.

Posted by Alphageek at August 18, 2004 09:33 PM

how to locating the .sol file to the floppy disk???

Posted by mak at December 16, 2004 06:59 PM

"how to locating the .sol file to the floppy disk???"

did anyone work this out? i want to store the .sol on a usb pen drive....

thx

graham

Posted by graham at January 19, 2005 08:29 AM

Sad news: I was using this trick--primarily to enable a standalone version to access the same SO as a browser-based version of the same application. No longer in Flash 8 (the beta Flash 8 Player). I had to rewrite all of my code back to the LSO. Next, I'm gonna check out what I might be able to do using localConnect to pass the values from one to the other. Even if I can get that to work, it won't be as slick as the this neat little RSO trick was.

Posted by John Lemon at August 17, 2005 09:51 PM

Doesn't work anymore with Flash Player 8 beta :-(

Posted by pemoke at August 25, 2005 10:27 PM

Which was quite as expected... After all, it was probably a bug rather than a feature. Oh well, there'll be new security holes. Keep hacking!

Posted by Alphageek at September 13, 2005 09:52 PM

I want to use getRemote in flash 8 for a specific shared object. can any one please tell me how to do it?

Ankur Arora

Posted by Ankur Arora at September 14, 2005 05:53 AM
Post a comment









Remember personal info?