hitTest globalToLocal or other
Hello!
I'm trying to count how many turns the yellow dot (this.area_mc.yellowDot_mc) makes before reaching the center or edge.
The yellow dot goes from the edge to the center and then back. I placed a vertical rectangle (rect_mc) and tried to identify the number of turns made with hitTest, but I don't think I was able to make the coordinate transformation work. The rectangle can be either inside area_mc or outside, but the yellow dot must be inside the area. I tried all localToGlobal, localToLocal, globalToLocal methods but I was unsuccessful. link to the .fla file: https://drive.google.com/file/d/1UPHJDcEc6sps58bExh6dNnwDuAXLwLJ8/view?usp=sharing
I thank you for your help.

