Help with drawing your own shapes.

OK, i'v written a function that pushes mouse coordinates into an array, then another that creates a polygon using the coordinates from that array. The problem is, the verticies for the poly are created ok, but the sprite movieClip appears way across the stage, i think it might be globalToLocal thing, but i'v tried that and no luck. If anyone has any idea why this might be happening please reply. Thanks!

Original thread: https://box2d.org/forum/viewtopic.php?t=746