For AS 2.0
import flash.geom.Matrix;
import flash.geom.Transform;
import flash.geom.ColorTransform;
var cameraTrans:Transform = new Transform(this);
var stageTrans:Transform = new Transform(this._parent);
var w:Number = Stage.width;
var h:Number = Stage.height;
this._visible = false;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
stageTrans.colorTransform = cameraTrans.colorTransform;
var stageMatrix:Matrix = cameraTrans.matrix;
stageMatrix.invert();
stageMatrix.translate(w*.5, h*.5);
stageTrans.matrix = stageMatrix;
};
For AS 3.0
var cameraTrans:Transform = new Transform(this);
var stageTrans:Transform = new Transform(parent);
visible = false;
stage.addEventListener(Event.ENTER_FRAME, updateStage);
function updateStage(...rest) {
parent.filters = filters;
stageTrans.colorTransform = cameraTrans.colorTransform;
var stageMatrix:Matrix = cameraTrans.matrix;
stageMatrix.invert();
stageMatrix.translate(stage.stageWidth*.5, stage.stageHeight*.5);
stageTrans.matrix = stageMatrix;
};
updateStage();
addEventListener(Event.REMOVED_FROM_STAGE, resetStage);
function resetStage(...rest) {
stage.removeEventListener(Event.ENTER_FRAME, updateStage);
stageTrans.matrix = new Matrix();
stageTrans.colorTransform = new ColorTransform();
parent.filters = new Array();
}
To use these, simply create a movieclip symbol making sure that its Registration point is in the centre (as below):

Inside the symbol, create your vCam artwork (usually an empty square with the same dimensions as your movie) and put the above code on the same frame. Whenever you want to use the camera, simply drag it out of your Flash library onto the Stage. Tweening this camera symbol on the Stage creates camera moves, easy as that
vCam 1.0 was created by Sham Bhangal in 2004 for "Prowlies at the River"
reanimator.camera by Jarrad Hope was the first vCam to allow filters and rotation.
Jaehl's AS3 cam was created by request for us here, because he's so awesome.
As has always been the case, Actionscript programmers are encouraged to tweak and make their own enhancements/improvements to the vCam.
Animators and programmers, wherever you use the vCam or improve on it, always show respect by giving credit to the people who created it or contributed to the code.