AS2 some button function. adding attached movie help

Good Day! :slight_smile:

How can I increment attached movies once I hit a button?
and returns to zero when it reached a certain amount.

example.

there’s a movie clip with an instance name of “release”.

once clicked

a movie clip will appear from the library.
and it adds another movie clip when clicked again.

and adds and adds and adds… until it reached 10 movie clip visible in the stage. when it reached 10, all of the called movie clips will disappear.

quite a tricky stuff for me.hope you can help me.

thank you very much :).