         _bitmap = new Bitmap(new BitmapData(_camera.width, _camera.height, false));
     }
 
+    protected function detachVideo () :void
+    {
+        if (_video != null) {
+            _video.attachCamera(null);
+            _video = null;
+        }
+    }
+
     protected var _camera :Camera;
 
     protected var _video :Video;

                removeChild(_video);
            }
            _bitmap = null;
            _video = null;
        }

        _camera = camera;


import flash.text.TextField;

import com.threerings.util.Log;
import com.threerings.util.MethodQueue;

// TODO: use PreferredCamera?
