Flash/Flex & PHP Socket Application Sandbox error -
i running socket server using php. socket server runs fine because can connect using php.
now, have flash application trying connect it:
this.socket.addeventlistener(event.connect, onsocketconnect); this.socket.addeventlistener(event.close, onsocketclose); this.socket.addeventlistener(ioerrorevent.io_error, onioerror); this.socket.addeventlistener(securityerrorevent.security_error, onsecerror); try { this.socket.connect("myip", 9999); } catch (ioerror:ioerror) { this.debuglbl.text += "ioerror1 "+ioerror.message; } catch (secerror:securityerror) { this.debuglbl.text += "secerror1 "+secerror.message; } when run application locally, works! however, when upload server sandbox security error (#2048). flash app hosted on same server socket server, , there cross domain policy file in place.
is possibly need use php proxy? had that, doc'd here. although did mention app's on same server , theres crossdomain.xml in place, i'm off mark there (btw, flash 10 needs different crossdomain.xml prev versions far know).
Comments
Post a Comment