import flash.media.Camera; public var cam:Camera; public function initCamera():void { cam = Camera.getCamera(); myVid.attachCamera(cam) }