118
Chapter 6: Using the Built-In Classes
Media classes
The media classes provide playback control of sound and video in a SWF file, as well as access to
the user’s microphone and camera, if they are installed. These classes are located in the Built-In
Classes > Media subfolder in the Actions toolbox.
Client-server classes
The following table lists classes that let you send and receive data from external sources or
communicate with application servers over FTP, HTTP, or HTTPS.
Note:
In Flash Player 7, a SWF file can load data only from exactly the same domain from which it
was served. For more information, see
“Flash Player security features” on page 188
and
“About
allowing cross-domain data loading” on page 190
.
Class
Description
Camera
The Camera class provides access to the user’s camera, if one is installed.
When used with Flash Communication Server MX, your SWF file can
capture, broadcast, and record images and video from a user’s camera. See
the
Camera class
entry in
Chapter 12, “ActionScript Dictionary,”
on page 205
.
Microphone
The Microphone class provides access to the user’s microphone, if one is
installed. When used with Flash Communication Server MX, your SWF file
can broadcast and record audio from a user’s microphone. See the
Microphone class
entry in
Chapter 12, “ActionScript Dictionary,”
on page 205
.
NetConnection
The NetConnection class is used to establish a local streaming connection for
playing a Flash Video (FLV) file from an HTTP address or from the local file
system. For more information, see the
NetConnection class
entry in
Chapter 12, “ActionScript Dictionary,” on page 205
. For more information on
playing FLV files over the Internet, see
“Playing back external FLV files
dynamically” on page 197
.
NetStream
The NetStream class is used to control playback of FLV files. For more
information, see the
NetStream class
entry in
Chapter 12, “ActionScript
Dictionary,” on page 205
. For more information on playing FLV files over the
Internet, see
“Playing back external FLV files dynamically” on page 197
.
Sound
The Sound class provides control over sounds in a SWF file. For more
information, see the
Sound class
entry in
Chapter 12, “ActionScript
Dictionary,” on page 205
. For an example of using the Sound class to create
volume and balance controllers, see
“Creating sound controls” on page 101
.
Video
The Video class is used to display video objects in a SWF file. See the
Video
class
entry in
Chapter 12, “ActionScript Dictionary,” on page 205
.
Содержание 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...