![MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference Download Page 802](http://html1.mh-extra.com/html/macromedia/flex-flex-actionscript-language/flex-flex-actionscript-language_reference_3387192802.webp)
802
Chapter 7: ActionScript for Flash
Video class
Availability
Flash Player 6; the ability to play Flash Video (FLV) files was added in Flash Player 7.
Description
The Video class lets you display live streaming video on the Stage without embedding it in your
SWF file. You capture the video by using
Camera.get()
. In files published for Flash Player 7 and
later, you can also use the Video class to play back Flash Video (FLV) files over HTTP or from the
local file system. For more information, see the
NetConnection class
and
NetStream class
entries.
A Video object can be used like a movie clip. As with other objects you place on the Stage, you
can control various properties of Video objects. For example, you can move the Video object
around on the Stage by using its
_x
and
_y
properties, you can change its size using its
_height
and
_width
properties, and so on.
Method summary for the Video class
Property summary for the Video class
Video.attachVideo()
Availability
Flash Player 6; the ability to work with Flash Video (FLV) files was added in Flash Player 7.
Usage
my_video
.attachVideo(
source:Object
)
: Void
Parameters
source
A Camera object that is capturing video data or a NetStream object. To drop the
connection to the Video object, pass
null
for
source
.
Method
Description
Video.attachVideo()
Specifies a video stream to be displayed within the boundaries of the Video
object on the Stage.
Video.clear()
Clears the image currently displayed in the Video object.
Property
Description
Video.deblocking
Specifies the behavior for the deblocking filter that the video compressor
applies as needed when streaming the video.
Video.height
Read-only; the height of the video stream, in pixels.
Video.smoothing
Specifies whether the video should be smoothed (interpolated) when it
is scaled.
Video.width
Read-only; the width of the video stream, in pixels.
CHAPTER 7
ActionScript for Flash
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...