Mouse direction

I’ve just read this article but I don’t completely get it.

What are the first parameters of checkX and checkY? And where does Flash get oldVal newVal :look:

Could someone make things clear for me :pleased: some extra info maybe