Graphics Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
    
         
        // Define a variable of type Camera. 
        import flash.media.Camera; 
        public var cam:Camera; 
        public function initCamera():void { 
            // Initialize the variable. 
            cam = Camera.getCamera(); 
            myVid.attachCamera(cam) 
        } 
      
    

            creationComplete="initCamera();" />