In the method onSelection(event):
- Code: Select all
var x = event.getX()
var y = event.getY()
application.output(x + ' / '+ y)
If I run the debugger the event.data returns x and y as 0, but the application output returns random values as "75 / 199" or "39 / 92".
I also tried with event.data[0].getX() but it returns with an error.
what can I do to get the x and y from the data?