Question
Get nested X,Y Coordinates
- July 3, 2024
- 2 replies
- 1125 views
I'm coding an app where you draw shapes with the mouse. When the shape is complete it gets assigned the name "Room"+RoomNum. It then gets nested inside a MovieClip named MainStage. This all works fine but whenever a shape is added to MainStage the x,y coordinates of that shape are always 0,0 no matter where the shape is drawn. How do I get the actual coordinates relative to where it is on the MainStage MC?
My goal is to get those coorinates and place text in the centre of the shape.
