Exact fit scene?

Hi, I’m making a solar system simulator, where planets are flying around.
The problem is that they are flying outside the scene. So I want to scale the scene in the Enter_frame so I can see all the planets. And of course, they must remain round after the scaling!

[please help me out! I’ve no idea how to make this]

A picture explains more than 1000 words.