I'm trying to get the x & y position of the mouse when it hovers over an object. Any tips?
Use an event, probably?
Ah yeah I got that part, but how do you pass the mouseX back from the event?
event.clientX & .clientY will return the values you need, though they'll be relative to the document (or is it window? I can't remember) object, so you'll have to normalize for the canvas if you're using a device wrapper.
myLayer.myEvent (event, sender) -> debugger
(I think its that way round in framer)
edit: I should have specified in my sleepy daze.
event: has all the event data on it (like where the mouse position is relative to a bunch of things, screen, client, the current layer etc
sender: is the layer that the event came from so in this case "myLayer"
No one got that I was trolling Brandon here?? :D
Here you go: http://share.framerjs.com/flpo6r5t1acq/