Domanda

Il riferimento di ActionScript 3.0 dice quanto segue riguardo flash.net.NetConnection:

The NetConnection class creates a two-way connection between a client and a server. The client can be a Flash Player or AIR application. The server can be a web server, Flash Media Server, an application server running Flash Remoting, or the Adobe Stratus service. Call NetConnection.connect() to establish the connection.

Questo significa stabilire una connessione HTTP regolare a qualsiasi server Web utilizzando un oggetto NetConnection? Sono un po 'confuso su questo, come più in basso la sezione sul metodo connect() dice connect(): Creates a two-way connection to an application on Flash Media Server or to Flash Remoting, or creates a two-way network endpoint for RTMFP peer-to-peer group communication....Pass an "http" URL to connect to an application server running Flash Remoting.. Quindi, il server di applicazione ha per avere Flash Remoting?

È stato utile?

Soluzione

Sì, se ricordo bene, è necessario disporre di un server AMF RPC sul lato server.

Potete guardare AMF PHP, che è una soluzione opensource per la chiamata AMF RPC.

In bocca al lupo.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top