I don't have any set code, but I want to know how I can make a code where if the two characters are a certain length apart, the camera expands. That way, it can see both of them. And it continues expanding the farther apart they are. And if they meet up again(not too far apart from each other), the camera shrinks back to its normal size(Pretty much like Super Smash Bros.). Please help

I'm using Macromedia Flash MX