MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 76

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 75
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
73
The Action Message Format (AMF) version used to pass binary data between two servers. The possible values are 3
(ActionScript 3.0 format) and 0 (ActionScript 1.0 and ActionScript 2.0 format). The default value is 3. When Flash
Media Server acts as a client trying to connect to another server, the encoding of the client should match the
encoding of the remote server.
The value of
objectEncoding is determined dynamically according to the following rules when the server receives
a
NetConnection.onStatus() event with the code property NetConnection.Connect.Success:
If the onStatus() info object contains an objectEncoding property, its value is used.
If the onStatus() info object does not contain an objectEncoding property, 0 is assumed even if the
connecting server has set
objectEncoding to 3.
Once the NetConnection instance is connected, the objectEncoding property is read-only.
These rules turn Flash Media Server 3 into an AMF0 client when it connects to a remote Flash Media Server version
2 or earlier (which only support AMF0).
Note: The server always serializes data in AMF0 while executing Flash Remoting functions.
Availability
Flash Media Interactive Server 3 and Flash Media Development Server 3
NetConnection.onStatus()
nc.onStatus = function(infoObject) {}
Invoked every time the status of the NetConnection object changes. For example, if the connection with the server
is lost in an RTMP connection, the
NetConnection.isConnected property is set to false, and
NetConnection.onStatus() is invoked with a status message of NetConnection.Connect.Closed. For AMF
connections,
NetConnection.onStatus() is used only to indicate a failed connection. Use this event handler to
check for connectivity.
Availability
Flash Communication Server 1
Parameters
infoObject An Object with properties that provide information about the status of a NetConnection information
object. This parameter is optional, but it is usually used. The NetConnection information object contains the
following properties:
The following table contains the
code and level property values and their meanings:
Property Meaning
code A string identifying the event that occurred.
description A string containing detailed information about the code. Not every information object
includes this property.
level A string indicating the severity of the event.
Vedere la pagina 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 154 155

Commenti su questo manuale

Nessun commento