Mouseleave doesn't show up on the message watcher
Posted: Mon Sep 02, 2013 4:59 pm
Hey! I am having an issue getting the mouseleave handler to work. I have a program where a field gets created in the middle of a line graphic and the field is supposed to show up when the mouse is over the graphic, and disappear when the mouseleaves. The field is only disappearing about half the time when I move the mouse off of the graphic. I used the message watcher and often the mouseleave command doesn't even appear. This is the graphic's code:
Any ideas?
Thank you!
Laurel
Code: Select all
on mouseenter
if the commented of me is true then
put "Comment" & the short name of me into gCommentName
show field gCommentName
else if the commented of me is not true then
set the outerglow["color"]of me to "red"
set the outerglow["spread"] of me to 75
end if
end mouseenter
on mouseleave
if the commented of me is true then
put "Comment" & the short name of me into gCommentName
hide field gCommentName
else if the commented of me is not true then
set the outerglow of me to empty
end if
end mouseleave
Thank you!
Laurel