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

  • 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 358
Server-Side Communication ActionScript 59
Example
This example gets the stream foo and assigns it to the variable playStream. It then calls the
Stream.play method from playStream.
function onProcessCmd(cmd){
var playStream = Stream.get("foo");
playStream.play("file1", 0, -1);
}
Stream.length
Availability
Flash Communication Server MX.
Usage
Stream.length(name)
Parameters
name Name of a recorded stream.
Returns
The length of a recorded stream in seconds.
Description
Method (static); returns the length of a recorded stream in seconds. If the stream requested is not
found, the return value is 0.
Example
This example gets the length of the stream foo and assigns it to the variable streamLen:
function onProcessCmd(cmd){
var streamLen = Stream.length("foo");
trace("Length: " + streamLen + "\n");
}
Stream.name
Availability
Flash Communication Server MX.
Usage
Stream.name
Description
Property (read-only); contains a unique string associated with a live stream. You can also use this
as an index to find a stream within an application.
Stream.onStatus
Availability
Flash Communication Server MX.
Vue de la page 358
1 2 ... 354 355 356 357 358 359 360 361 362 363 364 ... 368 369

Commentaires sur ces manuels

Pas de commentaire