In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

webcam

Get Adobe Flash player
by minon 17 Dec 2008
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 );
			
		}
	}
}