Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Also know that there are usually many properties that LC contains in its vocabulary that might do what you need, or more, or a little different.
Like "item 1 of the mouseLoc". I only mention this, using "mouseLoc" itself, because you did. You might say, but in any case certainly need to know, that "the mouseLoc" is a 2-tuple, and therefore might lend itself to deconstruction.