Why does all the antifreeze spill out when you turn on the AC?

You have a leak in the system . Get it checked and repaired before it damages the engine.