package { import flash.display.Sprite; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var _view :Sprite; private var _cam:Camera; private var _video:Video; public function Main():void { init(); } private function init():void { _view = new Sprite(); this.addChild( _view ); _cam = Camera.getCamera(); _cam.setMode( 500, 500, 15 ); _video = new Video( 500 , 500 ); _video.attachCamera( _cam ); _view.addChild( _video ); } } }