in my application i had this issue, and i couldn't get the crossdomain.xml to get picked up automatically, i'm new to the crossdomain.xml file... i've had everything just work... but i'm trying to access some mp3's id3 tag, and thats when it throws the violation...
what I had to do what call the crossdomain.xml file explicitely... please visit my blog... I take great pride in it, and wrote about this. http://axel.cfwebtools.com/index.cfm/2007/2/16/Security-Sandbox-Violation-in-Flex-20#more The big thing is: //your import statement import flash.system.Security; //this can be called when you load your app on creationComplete Security.loadPolicyFile("http://domainname.com/crossdomain.xml"); Not sure if that will work for you but it took care of the problem for me. Axel Jensen http://axel.cfwebtools.com --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Are you saying it works when the app is hosted locally or some other > server? > > What kind of access are you trying to make to website.com? > > -Alex > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of elad_nyc > Sent: Friday, February 16, 2007 5:55 AM > To: [email protected] > Subject: [flexcomponents] Security Sandbox Violation > > > > I have an application that connect to a website and it works fine since > I have the crossdomain.xml file which allow access from any domain. > > However when I upload the application to the server I am not able to > connect to the website. I am getting error messages: > > trying to connect to Website.com > Security Sandbox Violation > > Connection to Website.com:port halted - not permitted from > http://server/App.swf <http://server/App.swf> > > Thanks. >
