Finding centre of stage

My code:

_root.centerXPoint = Stage.width/2;
trace(“center of stage x” + _root.centerXPoint);

My problem:

When I test my movie using ctrl + return, I first get the right value, but when I hit ctrl + enter again, I get a different one. Can someone tell me why?