Video Class - MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual

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

Advertisement

You cannot declare a variable scoped to another object as a local variable:
my_array.length = 25;
var my_array.length = 25; // syntax error
When you use
var
Note: Classes defined in external scripts also support public, private, and static variable scopes. See
Chapter 9, "Creating Classes with ActionScript 2.0," on page 155

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
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
on page
197,
NetConnection
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
properties, and so on.
_width
To display the video stream, first place a Video object on the Stage. Then use
Video.attachVideo()
To place a Video object on the Stage:
If the Library panel isn't visible, select Window > Library to display it.
1
Add an embedded Video object to the library by clicking the Options menu on the right side
2
of the Library panel title bar and selecting New Video.
Drag the Video object to the Stage and use the Property inspector to give it a unique instance
3
name, such as
Method summary for the Video class
Method
Video.attachVideo()
Video.clear()
Property summary for the Video class
Property
Video.deblocking
Video.height
744
Chapter 12: ActionScript Dictionary
// ok
, you can strictly type the variable; see
class, and
and
properties; you can change its size using its
_x
_y
to attach the video stream to the Video object.
. (Do not name it Video.)
my_video
Description
Specifies a video stream to be displayed within the boundaries of the Video
object on the Stage.
Clears the image currently displayed in the Video object.
Description
Specifies the behavior for the deblocking filter that the video compressor
applies as needed when streaming the video.
Read-only; the height of the video stream, in pixels.
"Strict data typing" on page 38
. In files published for Flash Player 7 and
Camera.get()
"Playing back external FLV files dynamically"
NetStream
class.
,
,
and
and
private
public
_height
.
static
and

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?

Questions and answers

Table of Contents