MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Instrukcja Użytkownika Strona 11

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 80
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 10
Server-Side Communication ActionScript 11
Parameters
clientObj A client to accept.
Returns
Nothing.
Description
Method; accepts the connection call from a client to the server. The application.onConnect
event handler is invoked on the server side to notify a script when
NetConnection.connect is
called from the client side. You can use the
application.acceptConnection method inside an
application.onConnect event handler to accept a connection from a client. You can use the
application.acceptConnection method outside an application.onConnect event handler
to accept a client connection that had been placed in a pending state (for example, to verify a user
name and password).
When you use components and your code includes an explicit call to
application.acceptConnection or application.rejectConnection, the last line (in order
of execution) of the onConnect method should be either
application.acceptConnection or
application.rejectConnection. Also, any logic that follows the explicit acceptConnection or
rejectConnection statement must be placed in
application.onConnectAccept and
application.onConnectReject statements, or it will be ignored. This requirement exists only
when you use components.
Example
The following example uses the application.acceptConnection method to accept the
connection from client1:
application.onConnect = function (client1){
// insert code here
application.acceptConnection(client1);
client1.call("welcome");
};
Note: The example above shows code from an application that does not use components.
See also
Application.onConnect, Application.rejectConnection
Application.clearSharedObjects
Availability
Flash Communication Server MX.
Usage
application.clearSharedObjects(soPath);
Parameters
soPath A string that indicates the URI of a shared object.
Returns
A Boolean value of true if the shared object at the specified path was deleted; otherwise, false. If
using wildcard characters to delete multiple stream files, the method will return
true only if all
the shared objects matching the wildcard pattern were successfully deleted; otherwise, it will
return
false.
Przeglądanie stron 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 79 80

Komentarze do niniejszej Instrukcji

Brak uwag