MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 358

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 357
58
Stream.clear
Availability
Flash Communication Server MX.
Usage
Stream.clear()
Parameters
None.
Returns
A Boolean value of true if the call succeeds, false otherwise.
Description
Method; deletes a stream that uses previously recorded by the server.
Example
This example deletes a recorded stream called foo. Before the stream is deleted, the example
defines an
onStatus handler that uses two information object error codes,
NetStream.Clear.Success and NetStream.Clear.Failure, to send status messages to the
Output window.
s = Stream.get("foo");
if (s){
s.onStatus = function(info){
if(info.code == "NetStream.Clear.Success"){
trace(info.description);
}
if(info.code == "NetStream.Clear.Failure"){
trace(info.description);
}
};
s.clear();
}
Note: The Stream information object is nearly identical to the client-side ActionScript NetStream information
object. For more information, see the Appendix, “Server-Side Information Objects,” on page 67.
Stream.get
Availability
Flash Communication Server MX.
Usage
Stream.get(name)
Parameters
name The name of the stream instance to return.
Returns
A reference to a stream instance.
Description
Method (static); returns a reference to a Stream object. If the requested object is not found, a new
instance is created.
Zobrazit stránku 357
1 2 ... 353 354 355 356 357 358 359 360 361 362 363 ... 368 369

Komentáře k této Příručce

Žádné komentáře