MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spécifications Page 270

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 369
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 269
Client-Side Communication ActionScript 79
p1, ...,pN Optional parameters that can be of any type. They are serialized and sent over the
connection, and the receiving handler receives them in the same order. If a parameter is a circular
object (for example, a linked list that is circular), the serializer handles the references correctly.
Returns
Nothing.
Description
Method; broadcasts a message on the specified stream to all subscribing clients. This method is
available only to the publisher of the specified stream.
To process and respond to the message, create a handler in the format
myStream.HandlerName.
The Flash Player does not serialize methods or their data, object prototype variables, or non-
enumerable variables. Also, for movie clips, the player serializes the path but none of the data.
The sending client has the following script:
myConnection = new NetConnection();
myConnection.connect("rtmp://myServer.myDomain.com/appName/appInstance");
tStream = new NetStream(myConnection);
tStream.publish("slav", "live");
tStream.send("Fun", "this is a test");//Fun is the handler name
The receiving client’s script looks something like this:
myConnection = new NetConnection();
myConnection.connect("rtmp://myServer.myDomain.com/appName");
tStream = new NetStream(myConnection);
tStream.play("slav", -1, -1);
tStream.Fun = function(str) { //Fun is the handler name
trace (str);
}
NetStream.setBufferTime
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.setBufferTime(numberOfSeconds)
Parameters
numberOfSeconds The number of seconds to be buffered before Flash stops sending data (on a
publishing stream) or begins displaying data (on a subscribing stream). The default value is 0.
Vue de la page 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 368 369

Commentaires sur ces manuels

Pas de commentaire