MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 562

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Example
The following example writes data about the stream to a log file.
my_ns.onStatus = function(info)
{
_root.log_stream += "Stream status.\n";
_root.log_stream += "Event: " + info.code + "\n";
_root.log_stream += "Type: " + info.level + "\n";
}
See also
System.onStatus
NetStream.pause()
Availability
Flash Player 7.
Note: This method is also supported in Flash Player 6 when used with Flash Communication Server.
For more information, see your Flash Communication Server documentation.
Usage
my_ns.pause( [ pauseResume ] )
Parameters
pauseResume
play (
). If you omit this parameter,
false
called on a specified stream, it pauses play, and the next time it is called, it resumes play.
Returns
Nothing.
Description
Method; 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.
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
NetStream.close(),
562
Chapter 12: ActionScript Dictionary
Optional: a Boolean value specifying whether to pause play (
NetStream.play()
NetStream.pause()
) or resume
true
acts as a toggle: the first time it is

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents