A button for next level

Hello! I have a class “Cercles.hx”, another “Boutons.hx” Finally my class Main.hx. It is animate the circles by collision with a rectangle. After collision, there is a following button. How so after pressing the button of the new circle appear in large numbers and are set in motion?

It sounds like you want a “Level.hx” which manages the init of circles and rectangles. When you create your “next level” button, you can bind a function which creates and runs a new Level object.