Camera zooming

is there a code i can use so that the camera moves and zooms to fit with two objects? i dont have much AS knowledge, but anything would help.