PDA

View Full Version : Flash & XML on a new VPS



Darren E
February 9th, 2008, 02:44 PM
can someone explain why this is happening?

If you go to:
http://www.lisacarol.com

The flash in the website works perfectly and calls the XML data.

If you go to:
http://lisacarol.com

The flash doesn't load the XML data.

The server is set to handle both the www.name.com & name.com but for some reason it's not passing the data properly when the www is left out.
The flash calls upon the XML from a relative path ../file/filename.xml

I can only assume this has to do with a setting in my VPS because it worked when the files were on a shared hosting plan.

I'm using Plesk 8.2.1

Sketchboxdesign
February 12th, 2008, 05:08 PM
I experienced that issue before. I'm pretty sure you just need a cross domain policy. It is due to the security restrictions in Flash. Just make a new xml file and title it crossdomain.xml and put it in the root or wherever your swf is. Add the following in the file:

<cross-domain-policy>
<allow-access-from domain="*.lisacarol.com"/>
<allow-access-from domain="*lisacarol.com"/>
<allow-access-from domain="*www.lisacarol.com"/>
</cross-domain-policy>

That should fix it.

Matthew
Sketchbox Design
www.sketchboxdesign.com (http://www.sketchboxdesign.com)

Darren E
February 12th, 2008, 05:19 PM
That's an excellent tip!

However, I figured it out. In my server, I had the DNS template set wrong and therefore it was causing problems. It was a noob VPS mistake!