Hi guys, I'm trying to make a socket connection between Flash and Python but I'm getting a Security Error with Policy file, I've tried this but, no results:
Python
ASCode:import socket serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serverSocket.bind(('', 2020)) serverSocket.listen(1) conn, addr = serverSocket.accept() while True: data = conn.recv(1024) if not data: break if "<policy-file-request/>\0" in data: conn.send("""<?xml version="1.0"?><cross-domain-policy><allow-access-from domain="*" to-ports="*"/></cross-domain-policy>""") conn.send(data)
Someone can help me?Code:Security.loadPolicyFile("xmlsocket://127.0.0.1:2020");


Reply With Quote