这是我的代码:
var teste:SpriteOnline = new SpriteOnline(170, 90);
teste.load("http://www.marciofaustino.com/uploads/1/6/4/6/16464874/143987431_3_orig.jpg");
this.addChild(teste);
//Cria a instancia do jogador
new Player();
//Inicialização dos sistemas
Security.allowDomain("*");
new Network("localhost", 6789);
Network.instance.connect();
它在我朋友的电脑上完美运行,但当我在我的电脑上运行时,由于Loader.load()
我收到套接字连接错误:
Network.hx:59:IO错误:[IOErrorEvent type =" ioError" bubbles = true cancelable = false text ="连接失败" ErrorID中= 0]
当我尝试将Loader
转换为load()
某些URLRequest
时,我只收到此套接字错误,并且它在我朋友的PC上运行正常。什么可能是错的?