Components blocking mouseMoved event script

[code]x1 = event.x
y1 = event.y

xval = event.source.getComponent(“xval”)
xval.text = str(x1)

yval = event.source.getComponent(“yval”)
yval.text = str(y1)[/code]
xval and yval are text labels that display the coordinates. When I move over components on the screen these stop updating.