views:

137

answers:

1

Can someone tell me why this

http://hupcapstudios.com/projects/calendar.html

won't load in IE?

The error message:

Error #2044: Unhandled securityError:. 
  text=Error #2048: Security sandbox violation: 
  http://hupcapstudios.com/projects/calendar.swf cannot load data from 
  http://www.hupcapstudios.com/projects/getWeather.php?zip=90020.
    at Carousel/loadXML()
    at Carousel()
+3  A: 

This also doesn't load in Safari 4.

It's got something to do with a 404 on http://www.hupcapstudios.com/crossdomain.xml Likely you didn't follow the rules for cross domain scripting support via a policy file in the flash plugin sandbox. There's probably some information to get you started in this page.

Alternatively you need to make sure that your script is trying to connect back to http://hupcapstudios.com/ and not http://www.hupcapstudios.com/ or vice versa, depending on where the swf was loaded from.

You can see that as written now it works fine if you load: http://www.hupcapstudios.com/projects/calendar.html so the problem has to do with the cross domain restrictions.

dlamblin
neither in FF - and I wonder if it'll load in any browser - may be a browser with old flash player that doesn't check crossdomain.xml files while loading.
Amarghosh
Diamblin, you were exactly right, it was a matter of the www. Thank you so much.@Marc, you are a douche, how is this not a programming question?
Jascha
I apologize for the douche remark, but seriously, if it was a line of code that was the problem... is that not a programming question? @Diamblin, I'm assuming by loading and re-outputting info via php I can circumvent some sandbox regulations, I'm not sure if that's bad practice, but it's worked for me... up until now anyway ;)
Jascha
Also, see this:http://stackoverflow.com/questions/1575771/relative-urls-in-actionscript-3/1576747#1576747
Cay
Thank you for the input, Cay. Sometimes I have to use absolute paths because I am calling data from my server while testing my file locally. I figured, since I'm on the same server, perhaps Flash would give me a break on the sandbox vio (which I had no idea was happening in this case, no error message). The "base" path and keepng in mind that flash doesn't consider where the .swf is but the page it's in as the root of it's location was something I did not know.
Jascha