         clearSnapshot();
         removeChild(_video);
         _camera.setMode(width, height, fps, favorArea);
+
         attachVideo();
     }
 

import flash.display.BitmapData;
import flash.display.Sprite;

import flash.media.Camera;
import flash.media.Video;

// TODO: use PreferredCamera?
public class CameraSnapshotter extends Sprite

     */
    public function CameraSnapshotter (cameraName :String = null)
    {
        // create a label behind the videos that only shows up if a camera doesn't work
        var tf :TextField = new TextField();
        tf.text = "Camera unavailable.";
        addChild(tf);

        setCameraName(cameraName);
    }

