Eliram
Eliram

Reputation: 616

Actionscript Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access

When running flash components that use localConnection within an HTML container, I get the following error in a popup box (flash player is the debug version):

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access

Upvotes: 2

Views: 9366

Answers (4)

Danny G
Danny G

Reputation: 3779

You can add a hosts file entry and point it to 127.0.0.1 as well.

Upvotes: 0

JTtheGeek
JTtheGeek

Reputation: 1713

also you might want to add a crossdomain.xml file, but here is the decent explaination: http://scottrockers.com/blog/resources/flash-information/workaround-solution-to-flash-error-2044-unhandled-securityerror-and-error-2048-security-sandbox-violation

Upvotes: 0

misarod
misarod

Reputation:

// add this line after the instanciation aof the receiver file

receiveSwf_lc.allowDomain("localhost");

// or whatever domain you like, use * as wildcard to allow any domain name

Upvotes: 2

Eliram
Eliram

Reputation: 616

Changing the page's URL from http://127.0.0.1/ to http://localhost/ solved the problem.

Upvotes: 3

Related Questions