Advanced camera

So I’m working on a new Camera object and I just wanted to know if I was going about things the right way(because my results vary). I want to be able to center on a point of interest and zoom in and out. Right now I have an overall stage (canvas) and then an array of ‘layers’ within the canvas that can move at different speeds. A few other factors are:

magnification = how far ‘zoomed’ the camera should be (1 = normal)
damping = for parallax scrolling, some layers move slower than others (1 = normal)
poi = point of interest, should be centered at all times

I cant seem to get the math right in figuring out my positions though, here’s what I have so far (not really working:

for(var i:int = 0;i < layers.length; i++){            
    layers*.x -= (layers*.x - poi.x + halfStageWidth  * magnification) * layers*.damping;
    layers*.y -= (layers*.y - poi.y + halfStageHeight * magnification) * layers*.damping;
}   
canvas.scaleX = magnification;
canvas.scaleY = magnification;

Am I even going about this the right way? Does anyone have working examples of some good camera work?

**Not interested in vCam