First of all, you can get rid of all those 'this.' in your code. AS3 doesn't have scope issues like as2 did. I have not had to use this for years aside from one or two edge cases. Also you should set your camera frame rate to something like 24 or 30 - stage frame rate which is typically 60 is too much for cam. Anyway, does the code you use there not work? It's not rotating? What I do for camera control (and I pretty much make photo booths for a living) is to make a video object like you did, attach the camera - and then not put video on stage. Leave it sit in memory and then image it, in an update loop, into a bitmap that is on stage. This way you can easily rotate it, flip it, add overlays, etc. simple example: cam = Camera.getCamera(); cam.setMode(1280, 865, 24); theVideo = new Video(1280, 865); camData = new BitmapData(1280, 865); camBMP = new Bitmap(camData); theVideo.attachCamera(cam); addChild(camBMP); camTimer = new Timer(1000 / 24); //24 fps cam update camTimer.addEventListener(TimerEvent.TIMER, camUpdate); camTimer.start(); private function camUpdate(e:TimerEvent):void { camBMP.draw(theVideo, null, null, null, null, true); }
... View more