Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

crossdomain.xml or?

New Here ,
Jul 31, 2009 Jul 31, 2009

I have a rss reader builded and its working perfectly offline, it gets all the rss xml i want.

now i put the site online to test out , now it seems that nothing much happening, except the rss feed from cnn itself is working, rest just dont....

I dont get any errors or whatsoever, just nothing is loaded when i clicking on it.

now have been reseacrching and come across on the crossdomain policies >< which is kinda new to me..

I loaded it up, but still nothing happening...

i have this crossdomain.xml made.

---

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<site-control permitted-cross-domain-policies="all" />

<allow-access-from domain="http://www.norea.nl/Norea/Metanavigatie/RSS" />

</cross-domain-policy>

--

my questions are follows:

1. Is this the solution for me? or is it something else that bugs me?

2. do I put this on my root folder on the server or can I place it under the FOlder where the actual SWF file is located?

3. do i put on in the allow-access-from domain     http://www.norea.nl/Norea/Metanavigatie/RSS/36846 or

                                                                     feed://www.norea.nl/Norea/Metanavigatie/RSS/36846 or

                                                                     http://www.norea.nl or

                                                                     http://www.norea.nl/Norea/Metanavigatie/RSS

am using ac3 - player 10 - cs4 prof

thanks in advance!

TOPICS
ActionScript
858
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 31, 2009 Jul 31, 2009

The common workaround is to use a server side proxy file that sits on the same server as the swf, to grab the data and pull it into Flash.  Here is an example:

http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/

Translate
Explorer ,
Jul 31, 2009 Jul 31, 2009

The crossdomain.xml file needs to go on the domain that's hosting the RSS feed (ie, norea.nl), not the domain that's hosting the swf.  So if you have 2 domains:

www.a.com - hosting the RSS feed

www.b.com - hosting the swf

The the crossdomain.xml file goes on www.a.com and would look like:

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<site-control permitted-cross-domain-policies="all" />

<allow-access-from domain="http://www.b.com" />

</cross-domain-policy>

or, if you wanted to allow any domain to access the RSS feed, do this:

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<site-control permitted-cross-domain-policies="all" />

<allow-access-from domain="*" />

</cross-domain-policy>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2009 Jul 31, 2009

Thanks for the clear response.

so there is no way they will/might put the crossdomain.xml file on their server ....

is there any other way the online swf (rss reader) still can read in the rss xml files there?

sniff

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 31, 2009 Jul 31, 2009

The common workaround is to use a server side proxy file that sits on the same server as the swf, to grab the data and pull it into Flash.  Here is an example:

http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2009 Jul 31, 2009
LATEST

Thanks Philter!

Got it all and running now.

For those who stumbling at the same problem, here is the quickest solution

1. get the proxy.php file and upload it to your webserver

2. setup in actionscript as3 the url destination for the xml

   example:   myRssList.addItem( { label: "CNN Business" , data: "http://localhost/RSS/proxy.php?url=http://rss.cnn.com/rss/edition_business.rss" } );

   // the indicated highlight is an example where your proxy.php is located on the site. In your cause would be http://yourdomain.com/proxy.php?url=

Thanks again for the help : ) Took me several hours to figure out, hope this will save others the time looking : )

cya around

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines