Smash Bros. Camera Effect

I am sure this has been brought up many times again and again…so I am going to ask as well. How would you make a camera done in Flash like the game super smash bros.? Example, two objects on the screen, the closer they get to one another, the camera zooms in. The further spaced they are, the camera pans out (on the x and y axis). And all at the same time the camera is focused in the middle of the two characters/objects. How do you accomplish this feat? Please help.

Thanks