pause (NetStream.pause method)
public pause([flag:Boolean]) : Void
Pauses or resumes playback of a stream.
The first time you call this method (without sending a parameter), it pauses play; the next
time, it resumes play. You might want to attach this method to a button that the user presses
to pause or resume playback.
Availability: ActionScript 1.0; Flash Player 7 - Note: This method is also supported in Flash
Player 6 when used with Flash Communication Server. For more information, see the Flash
Communication Server documentation.
Parameters
[optional] - A Boolean value specifying whether to pause play (
) or
flag:Boolean
true
resume play (
). If you omit this parameter,
acts as a toggle: the
false
NetStream.pause()
first time it is called on a specified stream, it pauses play, and the next time it is called, it
resumes play.
Example
The following examples illustrate some uses of this method:
my_ns.pause(); // pauses play first time issued
my_ns.pause(); // resumes play
my_ns.pause(false); // no effect, play continues
my_ns.pause(); // pauses play
See also
,
close (NetStream.close method)
play (NetStream.play method)
play (NetStream.play method)
public play(name:Object, start:Number, len:Number, reset:Object) : Void
Begins playback of an external video (FLV) file. To view video data, you must call a
method; audio being streamed with the video, or an FLV file that
Video.attachVideo()
contains only audio, is played automatically.
If you want to control the audio associated with an FLV file, you can use
to route the audio to a movie clip; you can then create a Sound
MovieClip.attachAudio()
object to control some aspects of the audio. For more information, see
.
MovieClip.attachAudio()
If the FLV file can't be found, the
event handler is invoked. If you
NetStream.onStatus
want to stop a stream that is currently playing, use
.
NetStream.close()
980
ActionScript classes
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?