tags:

views:

295

answers:

2

I thought AIR applications ran in a trusted sandbox, but I am getting a security sandbox violation for a socket connection. It used to work, off and on, but I just started messing with on old project again and now it doesn't work at all.

Targeting Flex 3 SDK with Flex Builder 4 beta.

socketIOError: Error #2031: Socket Error. URL: 174.37.152.44

socketSecurityError: Error #2048: Security sandbox violation: app:/mainMenu.swf cannot load data from :443.

Edit: I found the problem. It was an incorrect IP, and simply failing to connect. Not sure why it gave me the sandbox violation error, but it was basically a bad error in that it didn't really have anything to due with the security sandbox.

A: 

The issue had nothing to due with the security sandbox, the error was misleading. I had the wrong IP. There was no server listening at that IP, and it simply was failing to connect.

AaronLS
A: 

You are the first person to say "AIR applications ran in a trusted sandbox". Is this true? I can't find any answers regarding AIR sandboxes and sockets and I just need to confirm this so I can pass it on to my superiors. Thanks.

rfender
FYI You should have posted this as a comment, but anyhow here is the Adobe article on AIR application sandboxes, including local-trusted: http://livedocs.adobe.com/flex/3/html/help.html?content=security_3.html
AaronLS