5 messages in com.googlegroups.google-picasa-data-apiRe: Crossdomain.xml or other solution| From | Sent On | Attachments |
|---|---|---|
| Allard Plaggenborg | 29 Aug 2007 03:07 | |
| Stuart Bosley | 29 Aug 2007 06:09 | |
| Allard Plaggenborg | 30 Aug 2007 00:56 | |
| Stuart Bosley | 30 Aug 2007 07:13 | |
| Stuart Bosley | 30 Aug 2007 15:13 |
| Subject: | Re: Crossdomain.xml or other solution![]() |
|---|---|
| From: | Stuart Bosley (iamt...@gmail.com) |
| Date: | 08/29/2007 06:09:44 AM |
| List: | com.googlegroups.google-picasa-data-api |
I tried to convince them to look at the shim.swf solution but to no avail. I think they are correct to not use an open crossdomain.xml.
There is the proxy approach:
I downloaded the PHP from the web and it just worked
I take no credit for this code the coder was from: http://xmlrpcflash.mattism.com/proxy_info.php
The flash code is very simple:
System.security.allowDomain("*");
var myXML:XML;
var myXMLurl:String;
function albumbXMLmanager(myXMLURLS:String) {
// I know picasa has an restrictive crossdomain.xml
myXMLurl =
"http://www.swiftaction.co.uk/php/GetVarsAndProxy.php?<http://www.swiftaction.co.uk/php/GetVarsAndProxy.php?"+myXMLURLS>
"+myXMLURLS<http://www.swiftaction.co.uk/php/GetVarsAndProxy.php?url=http://picasaweb.google.com/data/feed/base/user/iamtheantiroot?kind=album&alt=rss&hl=en_US>
;
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success:Boolean) {
xmlLoaded(success);
};
myXML.load(myXMLurl);
}
function xmlLoaded(mySuccess:Boolean) {
myNewXML.text = myXML;
}
albumbXMLmanager("*url=
http://picasaweb.google.com/data/feed/base/user/YOURuesrNAME?kind=album&alt=rss&hl=en_US
*";);
So as you can see with the variable myXMLurl value I pass to the server side PHP the path to the feed I require. No crossdomain policy needed.
On 8/29/07, Allard Plaggenborg <alla...@gmail.com> wrote:
Is there already anything cleat about any crossdomain.xml support for Flash developers? Or other solution? Still have a great hope that this will be supported
Thnx,
Allard




