Manny Viloria, Internet Marketing Philippines Coach

Cross Domain and SWF Player Access


Just needed to remind myself what cross domain policy to put in a crossdomain.xml file (in the root of your web site), so that external domains can make use of the FLV player found in one domain. It’s like YouTube… you can paste some kind of embed code and the video player appears.

So if you have the player in your site called foo.com, and you want foo2.com to be able to embed the videos also, place the following code in the crossdomain.xml file:

<?xml version="1.0"?><!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="www.friendOfFoo.com" />
<allow-access-from domain="*.foo.com" />
<allow-access-from domain="105.216.0.40" />
</cross-domain-policy>

Found the above in this cache copy of Sajithmr.com

And for more info on flash and cross domains: http://www.crossdomainxml.org/

First posted on Wednesday, 17 Dec 2008

Tags:

« « Uno Feeds| Prudential Memorial » »

Trackback URI | Comments RSS

Leave a Reply