Pseudocode:
ActionScript Code:
// This IS NOT actual working code.
globalX = localX + parentX;
// And
globalY = localY + parenty;
In your case, this would be:
ActionScript Code:
// This IS actual working code
globalpos={x:_x+_parent._x, y:_y+_parent._y};
Please not that this only works for movieclips inside another movieclip, with the latter being on the main timeline. For a movieclip in a movieclip in a movieclip, use
ActionScript Code:
globalX = localX + _parent._x + _parent._parent._x
I hope you see how this works, ask me if you don't.