How does parenting work

I am new to this and want to learn how to parent 2 object 2 each other, no videos show it, can someone help please?

A clip is a parent when it has another clip inside of it, and the clip inside called the child. Here’s a quick example:
parentClip.wick (1.8 KB)
This project has a “square” clip that contains a “circle” clip. I just put this bit of code in the circle clip:

alert(this.parentClip.identifier);

This code tells the project to display the name of the circle’s parent clip. When you run the project, it will return “square”.