MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuel d'utilisateur Page 31

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 155
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 30
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
28
Availability
Flash Communication Server 1
Parameters
methodName A string indicating the name of a method. All requests to execute methodName for this application
instance are forwarded to the
proxyConnection object.
proxyConnection A Client or NetConnection object. All requests to execute the remote method specified by
methodName are sent to the Client or NetConnection object specified in the proxyConnection parameter. Any
result returned is sent back to the originator of the call. To unregister or remove the proxy, provide a value of
null
for this parameter.
proxyMethodName A string indicating the name of a method for the server to call on the object specified by the
proxyConnection parameter if proxyMethodName is different from the method specified by the methodName
parameter. This is an optional parameter.
Returns
A value that is sent back to the client that made the call.
Example
In the following example, the
application.registerProxy() method is called in a function in the
application.onAppStart() event handler and is executed when the application starts. In the function block, a
new NetConnection object called
myProxy is created and connected. The application.registerProxy()
method is then called to assign the method
getXyz() to the myProxy object.
application.onAppStart = function(){
var myProxy = new NetConnection();
myProxy.connect("rtmp://xyz.com/myApp");
application.registerProxy("getXyz", myProxy);
};
application.rejectConnection()
application.rejectConnection(clientObj[, description[, errObj])
Note: The description parameter is supported in Flash Media Interactive Server 3 and Flash Media Development
Server 3 and later.
Rejects the connection call from a client to the server. The
application.onConnect() handler is invoked when
the client calls
NetConnection.connect(). In the application.onConnect() handler, you can either accept or
reject the connection. You can also make a call to an application server to authenticate the client before you accept
or reject it.
Note: When you use version 2 components, the last line (in order of execution) of the
onConnect() handler should be
either
application.acceptConnection() or application.rejectConnection() (unless youre leaving the
application in a pending state). Also, any logic that follows
acceptConnection() or rejectConnection() must be
placed in
application.onConnectAccept() and application.onConnectReject() handlers, or it is ignored.
This requirement exists only when you use version 2 components.
Availability
Flash Communication Server 1
Parameters
clientObj A Client object specifying a client to reject.
Vue de la page 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 154 155

Commentaires sur ces manuels

Pas de commentaire