Camera Base on 2010-3-11
/**
* 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);
}
}
}
}