3d camera y rotation controlled by x co-ordinate of the mouse CS5

Hi, does anyone have a solution for this?

I have several objects in 3D space seperated in the z depth. i would like the camera to orbit round them within 100 degrees limit dependant on the where the mouse pointer is on the x axis.

I’ve tried timelining it but can’t get the keyframes to tween between the 2 positions. to be honest i think i’m moving the objects rather than the camera, either way it’s not ideal.

Thanks,

L