A shape in MovieClip through IDE has different coords in code?
I drew a 50x50 square and converted it into a MovieClip with a centered registration point. So the MovieClip has only one child being the 50x50 square with (-25, -25) coords when checked in the IDE. But when I do
Yes, you can access any display object through getChildAt. It doesn't matter how it got there.
If I understand you right, your square is not at (-25, -25) in the IDE either. Its top-left would be, but the 0,0 point of the square (its registration point) is at 0, so the square is at 0.
I don't quite understand, perhaps you can explain it better if you see this file? Because shouldn't the registration point of any shape drawn with the tools be the top left corner?
Maybe I could explain it better if I saw the file, but I can't, since I do not have Flash or any other way to open fla files.
The registration point is 0,0 for the coordinate space of that object. It may be anywhere on (or off!) the object's graphics, not just the top left. When you set the x and y of an object, you are placing that object's 0,0 point in those coordinates, relative to the parent.