What are you trying to accomplish? You might be misinterpretting what the event.localX/Y properties represent. event.localX and event.localY do not necessarily provide the x and y position of mouse in the stage (which you probably thought from the answer you accepted in another posting you have)
Try this code (with your box object still around) and you should get the correct idea of what event.localX/Y is providing... Click on the empty stage area as well as the box object.
stage.addEventListener(MouseEvent.CLICK,action);
function action(event:MouseEvent)
{
trace(event.localX);
trace(event.localY);
}
From that you should see that event.localX/Y are relative to the object where the event occurs, not the stage.
So for your code you are probably seeing the box acting erratically, moving from following the cursor to jumping to some distant corner of the stage (depends on the box size and where it axis lies). That's because the localX is switching between the stage and the box coordinate system as you continuously move the box to and from the cursor location.