MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 803

Actionscript language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; specifies a video stream (
object on the Stage. The video stream is either an FLV file being displayed by means of the
NetStream.play()
played within the Video object.
You don't have to use this method if the FLV file contains only audio; the audio portion of an
FLV files is played automatically when the
If you want to control the audio associated with an FLV file, you can use
MovieClip.attachAudio()
object to control some aspects of the audio. For more information, see
MovieClip.attachAudio()
Example
The following example plays live video locally:
var my_video:Video; //my_video is a Video object
var active_cam:Camera = Camera.get();
my_video.attachVideo(active_cam);
The following example plays a previously recorded file named myVideo.flv that is stored in the
same directory as the SWF file.
var my_video:Video; // my_video is a Video object
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("video1.flv");
See also
Camera
class,
NetStream class
Video.clear()
Availability
Flash Player 6.
Usage
my_video.clear() : Void
Parameters
None.
Returns
Nothing.
) to be displayed within the boundaries of the Video
source
command, a Camera object, or
to route the audio to a movie clip; you can then create a Sound
.
. If
null
source
command is issued.
NetStream.play()
is
, video is no longer
null
Video.clear()
803

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents