MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Bedienungsanleitung Seite 22

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 172
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 21
19
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Returns
A boolean value; true causes the server to accept the connection; false causes the server to reject the connection.
When true is returned, NetConnection.onStatus() is invoked on the client with info.code set to
"NetConnection.Connect.Success". When false is returned, NetConnection.onStatus() is invoked on the
client with
info.code set to "NetConnection.Connect.Rejected".
If null or no value is returned, the server puts the client in a pending state and the client can’t receive or send messages.
If the client is put in a pending state, you must call
application.acceptConnection() or
application.rejectConnection() at a later time to accept or reject the connection. For example, you can perform
external authentication by making a NetConnection call in your
application.onConnect() event handler to an
application server and having the reply handler call
application.acceptConnection() or
application.rejectConnection(), depending on the information received by the reply handler.
You can also call application.acceptConnection() or application.rejectConnection() in the
application.onConnect() event handler. If you do, any value returned by the function is ignored.
Note: Returning 1 or 0 is not the same as returning true or false. The values 1 and 0 are treated the same as any other
integers and do not accept or reject a connection.
A. Client-side ActionScript B. Server-Side ActionScript
Example
The following examples show three ways to accept or reject a connection in the onConnect() handler:
NetConnection.onStatus(info)
info.code == NetConnection.Connect.Rejected
NetConnection.connect()
NetConnection.onStatus(info)
info.code == NetConnection.Connect.Success
application.onConnect(clientObject)
return true
or call
application.acceptConnection()
return false
or call
application.rejectConnection()
return null
or don’t return a value
places application in a pending state
A
B
Seitenansicht 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 171 172

Kommentare zu diesen Handbüchern

Keine Kommentare

Act-meters Nabíječky uživatelské příručky

Seznam produktů Act-meters Nabíječky obsahuje 4 uživatelské příručky pro 3 modelů. Všechny uživatelské příručky pdf jsou k dispozici ke stažení nebo prohlížení online.

Klepnutím na abecedu níže přejděte na úplný seznam modelů začínajících tímto písmenem

Modely Typ Dokumentu
CD4000 Luminaire Battery Tester
Uživatelský manuál   ACT Meters CD4000 Luminaire Battery Tester User Manual, 2 stránky
GOLD-PLUS 6V/12V Battery Tester
Uživatelský manuál   ACT Meters GOLD-PLUS 6V/12V Battery Tester User Manual, 2 stránky
Uživatelský manuál   ACT Meters GOLD-PLUS 6V/12V Battery Tester User Manual, 12 stránky
MegaPulse Battery Rejuvenator
Uživatelský manuál   ACT Meters MegaPulse Battery Rejuvenator User Manual, 2 stránky