
Client-Side Communication ActionScript 15
Example
The following example captures and displays video locally within a Video object named myVid
on the Stage.
myCam = Camera.get();
myVid.attachVideo(myCam);
See also
Camera.index, Camera.muted, Camera.names, Camera.onStatus, Camera.setMode,
NetStream.attachVideo, System.showSettings, Video.attachVideo
Camera.height
Availability
• Flash Player 6.
• Flash Communication Server MX (not required).
Usage
activeCamera.height
Description
Read-only property; the current capture height, in pixels. To set a value for this property, use
Camera.setMode.
Example
The following line of code updates a text box in the user interface with the current height value.
_root.txt_height = myCam.height;
See also the example for Camera.setMode.
See also
Camera.setMode, Camera.width
Camera.index
Availability
• Flash Player 6.
• Flash Communication Server MX (not required).
Usage
activeCamera.index
Description
Read-only property; a zero-based integer that specifies the index of the camera, as reflected in the
array returned by
Camera.names.
Example
The following example gets the camera that has the value of index.
myCam = Camera.get(index);
See also
Camera.get, Camera.names
Comentários a estes Manuais