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

Camera Base on 2010-3-11

Get Adobe Flash player
by Makoto_Tanaka 11 Mar 2010
/**
 * Copyright Makoto_Tanaka ( http://wonderfl.net/user/Makoto_Tanaka )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/rDmW
 */

package {
    import flash.display.Sprite;
    
    import flash.media.Camera;
    import flash.media.Video;
    
    import flash.accessibility.Accessibility;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var camera:Camera = Camera.getCamera();
            
            if(camera) {
            		var video:Video = new Video();
            		video.attachCamera(camera);
            		addChild(video);
            }
            
        }
    }
}