MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 260

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 259
Client-Side Communication ActionScript 69
Description
Property; the number of seconds assigned to the buffer by NetStream.setBufferTime. The
default value is 0. To determine the number of seconds currently in the buffer, use
NetStream.bufferLength.
See also
NetStream.bufferLength, NetStream.setBufferTime
NetStream.close
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.close()
Parameters
None.
Returns
Nothing.
Description
Method; stops publishing or playing all data on the stream, sets the NetStream.time property
to 0, and makes the stream available for another use. This method is invoked implicitly
whenever you call
NetStream.play from a publishing stream, or NetStream.publish from
a subscribing stream.
If this method is called from a publishing stream, all pending NetStream.play calls on the
stream are cleared on the server; subscribers no longer receive anything that was being
published on the stream.
If this method is called from a subscribing stream, publishing continues and other subscribing
streams may still be playing, but the subscriber can now use the stream for another purpose.
To stop play on a subscribing stream without closing the stream or changing the stream type,
use
myStream.play(false).
Example
The following onDisconnect() function closes a stream.
function onDisconnect() {
// Stops publishing the stream.
srcStream.close();
// Deletes the source stream connection. With no source
// to play, the destination stream also ends and can be
// deleted.
connection.close();
}
See also
NetStream.pause, NetStream.play, NetStream.publish, NetStream.time
Przeglądanie stron 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag