MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificaciones Pagina 169

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 369
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 168
Application Server Connectivity 91
To write the client-side ActionScript for this sample:
1 Add the following debug code to trace all the status information coming back from the Flash
Communication Server.
// Trace all the status information.
function traceStatus(info) {
trace("Level: " + info.level + " Code: " + info.code);
}
// Create onStatus prototypes for the objects that
// will return status.
NetConnection.prototype.onStatus = traceStatus;
NetStream.prototype.onStatus = traceStatus;
SharedObject.prototype.onStatus = traceStatus;
2
Create the event handler for the send_btn button. Notice the call to sendMail. This invokes
the function you’ll define later in the server-side code. The second parameter,
null, tells the
Flash Communication Server that the client doesn’t expect a result to be returned.
// Send the mail. The second parameter, null, tells the
// Flash Communication Server not to return a value. The remaining
// parameters provide the data to send.
function sendMail() {
main_nc.call("sendMail", null, ToText.text, FromText.text,
SubjectText.text, BodyText.text);
}
3
Create a new network connection and connect to the application.
// Create a new connection and connect to the application
// instance on the Flash Communication Server.
main_nc = new NetConnection();
main_nc.connect("rtmp:/doc_mailto/room_01");
To write the server-side ActionScript for this sample:
1 Create a new file using your server-side ActionScript editor, and load the netservices.asc file to
enable Flash Remoting through the Flash Communication Server. Remember to add a copy of
this file in the doc_remoting directory.
load("netservices.asc");
2
In the onAppStart function, define the location of the Flash Remoting service, and connect to
it.
application.onAppStart = function() {
trace("***** on app start");
// Set the default gateway URL.
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/
gateway");
// Connect to the gateway.
var gatewayConnnection = NetServices.createGatewayConnection();
// Get a reference to the service. "mail.sendMail" refers
// to the ColdFusion file, sendMail.cfc, found in the mail
// application directory under the deployed ColdFusion directory.
this.mailSendService = gatewayConnnection.getService("mail.sendMail",
this);
}
Vista de pagina 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 368 369

Comentarios a estos manuales

Sin comentarios

Black Box ISU2011-4-EURO manuales

Manuales del propietario y guías del usuario para Los conmutadores de red Black Box ISU2011-4-EURO.
Ofrecemos 1 manuales en pdf Black Box ISU2011-4-EURO para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Los conmutadores de red Black Box

Modelos Tipo de documento
twister 7000 Guía de usuario   Black Box twister 7000 User guide, 48 paginas
KV1416A Manual de usuario   One remote user and up to three local users can access this 16, 4 paginas
KV1500A Guía de usuario   Black Box KV1500A User guide, 16 paginas
DTX5000 Guía de usuario   Black Box DTX5000 User guide, 2 paginas
LPB2848A Especificaciones   Black Box LPB2848A Specifications, 36 paginas
LB9215A Manual de usuario   LB9215A Installation, 1 paginas
SW590A-R2 Manual de usuario   Code Operated Matrix Switch - Black Box Network Services, 2 paginas
LEH1008A-2MMSC Manual de usuario   Hardened Managed Ethernet Switches Quick Start Guide [en] , 8 paginas
SW627A-R2 Manual de usuario   ServSwitchJr.andServSwitchJr.MP, 4 paginas
LB9219A Manual de usuario   Segmenting your 10-/100-Mbps Ethernet LAN doesn`t ha [en] , 5 paginas
SERVSWITCH KV3108SA-R4 Manual de usuario   Black Box RMK19B datasheet: pdf, 2 paginas
SW628A-R2 Manual de usuario MODEL CD-BA180 SERVICE MANUAL, 44 paginas
SW177A Manual de usuario   COMPACT BIDIRECTIONAL AUTOSWITCHES, 2 paginas
KVP4004A Manual de usuario   KVP4004A Firmware Revision Information, 3 paginas
ACR1000A-R Manual de usuario   Follow this procedure to upgrade your Agility iPATH v3.3, 2 paginas
Remote Management Switch SW556AE Especificaciones    Black Box Remote Management Switch SW556AE Specifications, 21 paginas
LBPS311A Manual de usuario   Black Box LBPS311A User`s manual, 20 paginas
LGB1005A-R2 Información técnica   Black Box LGB1005A-R2 System information, 311 paginas