Scusate, ma come faccio a creare una connessione tra un file flash e un server Coldfusion?
Cerco di spiegarmi con un esempio.
Ho un database con una tabella chiamata NOMI. In questa tabella ho 3 campi "NOME", "COGNOME", "MAIL".
Ora sullo stage flash creo tre caselle di testo dinamiche e voglio che si visualizzino i valori di questi tre campi. Mi serve connettermi al server però. Sulla guida di Coldfusion (dannatamente in inglese) ho trovato questo:
ma facendo le opportune modifiche (che poi ho modificato solo l'indirizzo del server) non fa niente. Ora considerando che sono asciutto di db, c'e' qualche possibilità che io riesca?Codice PHP:1. Include the necessary ActionScript classes in the first frame of the Flash movie that will be using
server-side ActionScript functions.
a Use the following command to include the NetServices class:
#include "NetServices.as"
b (Optional) Use the following command to include the NetDebug class:
#include "NetDebug.as"
For more information about the NetDebug and RecordSet classes, see Using Flash Remoting
MX.
2. Since the Flash Remoting service serves as a broker for calls to server-side ActionScript
functions, you must identify the Flash Remoting service URL as an argument in the
NetServices.setDefaultGatewayUrl function. For example:
NetServices.setDefaultGatewayURL("http://localhost:8500/flashservices")
You must specify a server hostname. The default port number for the Flash Remoting service is
8500.
3. Create the gateway connection using the NetServices.createGatewayConnection function;
for example:
gatewayConnection = NetServices.createGatewayConnection();
PS: Il primo punto mi dice di introdurre nel primo frame la classe necessaria. Ma di quale classe parla?

Rispondi quotando
) devi creare un output che ti permetta ti visualizzare il tuo testo in flash.
)
