Crossdomain.xml in flash

Last updated on November 16th, 2015 at 09:58 am

Click to rate this tutorial!
[Total: 1 Average: 4]

Flash flv player has a property that it takes only the flv video files in the same domain.Here the crossdomain policy comes in to picture.

The use of crossdomain.xml policy is very vast, because now a days many websites use .flv [VIDEO FILES] and the webmaster sometimes need flv files to be hosted in other domains.

Without the  crossdomain.xml file we cant call a flv video file which is hosted in another domain.The XML file looks like the one shown below just copy and paste the content to a file and rename it to crossdomain.xml, remeber to delete the numbers in the starting of each line.

<?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=”*” />
</cross-domain-policy>

 Then copy the file and host it to the domain where you are using your flash player.

Now you are done.You can now play any flv file from any domains.

Click to rate this tutorial!
[Total: 1 Average: 4]

Leave a Reply

Your email address will not be published.