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

前端 未结 4 1298
误落风尘
误落风尘 2020-12-21 10:48

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

4条回答
  •  感动是毒
    2020-12-21 11:44

    // 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

提交回复
热议问题