# Video.attachVideo()

#### Availability

Flash Player 6.

#### Usage

    my_video.attachVideo(source | null)

#### Parameters

`source` A Camera object that is capturing video data. To drop the connection to the Video object, pass `null` for `source`.

#### Returns

Nothing.

#### Description

Method; specifies a video stream (`source`) to be displayed within the boundaries of the Video object on the Stage. The video stream is either a Camera object or `null`. If `source` is `null`, video is no longer played within the Video object.

#### Example

The following example plays live video locally.

    my_cam = Camera.get();
    my_video.attachVideo(my_cam); // my_video is a Video object on the Stage

#### See also

Camera object