
562
Chapter 12: ActionScript Dictionary
Example
The following example writes data about the stream to a log file.
my_ns.onStatus = function(info)
{
_root.log_= "Stream status.\n";
_root.log_= "Event: " + info.code + "\n";
_root.log_= "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
Optional: a Boolean value specifying whether to pause play (
true
) or resume
play (
false
). If you omit this parameter,
NetStream.pause()
acts as a toggle: the first time it is
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()
,
NetStream.play()
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...