Use VideoDisplay.attachCamera() method to display a video stream from a camera
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import flash.media.Camera; public var cam:Camera; public function initCamera():void { cam = Camera.getCamera(); myVid.attachCamera(cam) } </mx:Script> <mx:VideoDisplay id="myVid" width="320" height="240" creationComplete="initCamera();" /> </mx:Application>