?

Log in

No account? Create an account
Flash Client - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Flash Client [Oct. 28th, 2005|03:25 pm]
LiveJournal Client Discussions

lj_clients

[merlinc]
I'm trying to create an LJ client in Flash[1], and I'm hitting a small problem due to the security model of the Flash Player.

For Flash to load data from a different domain to the one that hosts the compiled swf file, a crossdomain.xml file needs to be placed on the server with the data, in this case www.livejournal.com. There's no way around that - its basically Flash's way of stopping cross site scripting.

Example crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="www.company.com" /> </cross-domain-policy>


I need this file on a server to continue work. In the short term, is there a test site that could have this file placed on it. In the long term, what is the likelihood that I can get this file deployed onto the live livejournal.com website?

References:
Flex Live Docs: http://livedocs.macromedia.com/flex/15/flex_docs_en/00000894.htm

Macromedia Technote: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213

Footnote:
[1] I'm actually using Macromedia Flex, but its the same thing once compiled.
linkReply

Comments:
(Deleted comment)
[User Picture]From: merlinc
2005-11-01 01:09 pm (UTC)
Hadn't seen FlashPlayerTrust before, but I think it will be too complicated for an end user scenario. Its looking like I'll have to write up my own proxy to get this to work.

Its a shame, as I was hoping to get away without having to do any server side development at all.

Thanks anyway :)

(Reply) (Parent) (Thread)