code on 2008-12-18 seyself forked:1favorite:2lines:35license : All rights reserved modified : 2008-12-18 02:43:37 Embed Tweet package { import flash.events.Event; import flash.display.Sprite; import flash.display.Bitmap; import flash.display.BitmapData; import flash.geom.Matrix; import flash.media.Video; import flash.media.Camera; [SWF(frameRate="30", backgroundColor="#64FD24")] public class Main extends Sprite { public function Main() { var camera:Camera = Camera.getCamera(); if(camera) { var video:Video = new Video(400, 400 / camera.width * camera.height); video.attachCamera(camera); var image:BitmapData = new BitmapData(video.width, video.height, false); var bitmap:Bitmap = new Bitmap(image); bitmap.x = -video.width / 2; bitmap.y = -video.height / 2; addChild(bitmap); this.x = this.y = 465 / 2; addEventListener("enterFrame", function(event:Event):void { image.draw(video, new Matrix(-1, 0, 0, 1, video.width, 0)); rotationY = mouseX * 0.1; rotationX = -mouseY * 0.1; }); } } } } Code Fullscreen Preview Fullscreen RobotHacker : 3dcamera sdkfz181 : 3dcamera 3d camera width height addEventListener Camera.getCamera draw Matrix Event BitmapData sort new page view favorite forked pv173 forked from: code on 2008-12-1.. pacoherrador forked:0 favorite:0lines:35 (diff:3)