# Data won't load WITH crossdomain.xml on server

**URL:** <https://forum.kirupa.com/t/data-wont-load-with-crossdomain-xml-on-server/258545>\
**Category:** flash\
**Created:** [April 24, 2008, 9:14pm UTC](https://forum.kirupa.com/t/data-wont-load-with-crossdomain-xml-on-server/258545 "2008-04-24T21:14:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matteblack](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@matteblack](https://forum.kirupa.com/u/matteblack)\
**Post date:** [April 24, 2008, 9:14pm UTC](https://forum.kirupa.com/t/data-wont-load-with-crossdomain-xml-on-server/258545/1 "2008-04-24T21:14:22Z")

</div>

Hey everyone,

I hope someone can help me here, I’ve been pulling my hair out trying to figure out the problem.

I’ve got a flash movie that is using loadVariables to get data from a php file on my main server. The movie works great locally, but when I embed the movie anywhere else, the data won’t load.

## I’ve got my crossdomain.xml file on the root of my server:

## \<?xml version=“1.0”?\> \<!DOCTYPE cross-domain-policy SYSTEM “[http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd](http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd)”\> \<cross-domain-policy\> \<allow-access-from domain="\*" /\> \</cross-domain-policy\>

Here is my Flash actionscript calling the php file (which works fine locally AND on my server, just not other servers)

* * *

## \_global.baseurl = “[http://www.mydomain.com/](http://www.mydomain.com/)”; loadVariables(\_global.baseurl+“getpage.php”,’’);

If you need the PHP code posted, I can do that, but like I said I don’t think this is a coding issue since it works fine locally. And I’ve done research on the crossdomain and it seems like it should work.

Anyone think of any other reason why I wouldn’t be able to load the data?

thanks for any help!

-Mb
