560
Chapter 12: ActionScript Dictionary
NetStream.close()
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
.close()
Parameters
None.
Returns
Nothing.
Description
Method; stops playing all data on the stream, sets the
NetStream.time
property to 0, and makes the
stream available for another use. This command also deletes the local copy of an FLV file that was
downloaded using HTTP.
Example
The following
onDisconnect()
function closes a connection and deletes the temporary copy of
someFile.flv that was stored on the local disk.
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
my_ns.play("http://www.someDomain.com/videos/someFile.flv");
function onDisconnect() {
my_ns.close();
}
See also
NetStream.pause()
,
NetStream.play()
NetStream.currentFps
Availability
Flash Player 7.
Note:
This property 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
.currentFps
Description
Read-only property; the number of frames per second being displayed. If you are exporting FLV
files to be played back on a number of systems, you can check this value during testing to help
you determine how much compression to apply when exporting the file.
Содержание 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...