In the flash player, if you allow a sprite to be "draggable", there is a glitch. The glitch causes the X and Y positions of the sprite not to be updated. This script can be used to get around the bug.