Flash Education
When the ball is placed on a compressed spring, the compressed spring has elastic potential energy.
The potential energy of the spring changes into kinetic energy when it is released and as a result it flies.