In this example, the variable mousePos becomes a new object containing the mouse properties.
var mousePos = GetMousePosition()
To reference the x and y coordinates for mousePos (Example 1 above), use the following syntax:
var mouseX = mousePos.x
var mouseY = mousePos.y
Note:
If mouseX and mouseY were page or publication variables, the current mouse position could be displayed on the current page.