como esta seu: "cross-domain-policy" Att, Samuel Facchinello http://desenvolvendoemflex.blogspot.com Joinville - SC
2011/6/22 Samuel Facchinello <[email protected]> > pode ser: antivirus, firewal > > > Att, > Samuel Facchinello > http://desenvolvendoemflex.blogspot.com > Joinville - SC > > > > 2011/6/22 adeildo júnior <[email protected]> > >> quanto ao -use-network, nao surtiu efeito. >> >> sobre o link que tu passou, o AIR nao abre uma janela do flash player... >> ele abre em uma janela diferente, dai nao tem como configurar esse painel... >> >> o codigo para a conexao... >> >> <pre> >> public function enviaString(envio_servidor:String):Boolean { >> >> //var outCanal:OutputProgressEvent = null; >> //var inCanal:ByteArray = null; >> var retorno_servidor:String = ""; >> var retorno:Boolean; >> >> var env:int = parseInt(envio_servidor); >> >> this.configuracao.startCfg(); >> >> this.clienteSocket = new Socket(); >> >> this.clienteSocket.connect(this.configuracao.getIpServer(), >> this.configuracao.getPortaServer()); >> if ( !this.clienteSocket.connected ) { >> Alert.show(this.configuracao.getIpServer()+ ":" + >> this.configuracao.getPortaServer()); } >> //if ( this.clienteSocket.localAddress == "" ){ >> Alert.show("fuuuuuuuuuuuuuuu"); } >> //else if ( this.clienteSocket.localPort == 0 ){ >> Alert.show("quiburooooooo!"); } >> //Alert.show(clienteSocket.localAddress + " - " + >> clienteSocket.localPort); >> >> this.clienteSocket.addEventListener(ProgressEvent.SOCKET_DATA, >> onSocketData); >> this.clienteSocket.addEventListener(IOErrorEvent.IO_ERROR, >> onError); >> >> retorno_servidor = >> this.clienteSocket.readUTFBytes(this.clienteSocket.bytesAvailable); >> var analise:String = this.analisaRetorno(retorno_servidor); >> var analiseParts:Array = analise.split("-"); >> if (analiseParts[0] == "00") { >> retorno = true; >> } >> else if ( analiseParts[0] == "76" ) { >> retorno = true; >> } >> else if ( analiseParts[0] == "98" ) { >> retorno = true; >> } >> else { >> retorno = false; >> } >> >> Alert.show(analiseParts[1], ""); >> >> //inCanal = null; >> //outCanal.close(); >> clienteSocket.close(); >> return retorno; >> } >> </pre> >> >> -- >> Você recebeu esta mensagem porque está inscrito na lista "flexdev" >> Para enviar uma mensagem, envie um e-mail para [email protected] >> Para sair da lista, envie um email em branco para >> [email protected] >> Mais opções estão disponíveis em http://groups.google.com/group/flexdev >> > > -- Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [email protected] Mais opções estão disponíveis em http://groups.google.com/group/flexdev
