• Hello,

    I'm a bit confused on how to use properly the crossdomain.

    I got domain1.com where all my files are stocked. (swf, xml, images, license etc)
    I got domain2.com where I would like to display a Krpano virtual tour without putting any files on this server

    I would like to access domain1.com from domain2.com to be able to get the swf and the xml file

    Can someone give me a hand on this please,

    Thanks

  • Hi,

    you would need a 'crossdomain.xml" file on domain1 in this case which allows access from domain2 (or from anywhere),
    here an example for a crossdomain.xml

    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="domain1.com" />  
    	<allow-access-from domain="www.domain1.com" /> 
    </cross-domain-policy>

    best regards,
    Klaus

  • I dont anderstand why


    i continue to have this error
    a loading error of the first xml


    with tis code,


    it is important for me because it is the the way to diffuse largely what I and we do


    Thanks

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>biodiversite</title>
    <link rel="stylesheet" type="text/css" href= "default.css">
    </head>
    <body>
    <div id="tour">
    <noscript>ERROR: no Javascript</noscript>
    </div>

    <script type="text/javascript" src="http://www.iconoplaste.com/images/stories…ok/swfkrpano.js">
    </script>

    <script type="text/javascript">
    var swf = createswf("http://www.iconoplaste.com/images/stories…ersite02010.swf", "aptSWFObject", "600", "400");
    swf.addVariable("xml","http://www.iconoplaste.com/images/stories…ersite02010.xml"); //uncomment this line to load another xml first
    swf.addParam("allowFullScreen","true");
    swf.embed("tour");

    if ( so.write("tour") )
    { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
    </script>
    </body>
    </html>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!