-
1. Re: problem loading images from another server but works locally>?
dmeN Mar 30, 2010 3:13 AM (in response to SlickRik)Use a sniffer, like Charles, to see where it's failing. And this is normal... to load anything cross domain you need the server you're getting from to have a crossdomain.xml file in place that allows your domain to access it. Likley the server you're trying to load images from doesn't have a crossdomain.xml file. Charles will show you this...
-
2. Re: problem loading images from another server but works locally>?
SlickRik Mar 30, 2010 3:28 AM (in response to dmeN)yeah, looks like you're right.
Am I right in assuming that we'd get around that with a combination of LoaderContext and Security.loadPolicyFile sucuh as:
private var loaderContext:LoaderContext = new LoaderContext(true);
Security.loadPolicyFile(" [ some path ] " + "/crossdomain.xml");
if so, any idea how I would go about getting the path to the crossdomain file, does anyone know if they're in a standard location?my returned image path is (for example)
so don't know if it'd be a predictable location or is that a little too hopeful -
3. Re: problem loading images from another server but works locally>?
dmeN Mar 30, 2010 3:41 AM (in response to SlickRik)crossdomain.xml is always in the root of the server you're calling - and it's checked automatically. Again -Charles will show you this - it will show you likely you're getting a 404 (file not found) error and where it's trying to load the file from...You can't get around it.
-
4. Re: problem loading images from another server but works locally>?
SlickRik Mar 30, 2010 3:49 AM (in response to dmeN)thanks mate that helped track it down so spot on, it was at:
http://COMPANYNAME.s3.amazonaws.com/crossdomain.xml
just we had a seemingly convoluted root but the issue was - as ever, simple
thanks for the pointers!!

