MouseLeave puzzle
Klaus Major
klaus at major-k.de
Fri Apr 2 10:46:12 EST 2004
Hi Jim,
> I have a field script:
>
> on mouseUP
>
> if there is no graphic "arrow" then
...
put the mouseLoc into line 1 of tGraphicPoints
## !!! see below
> ...
> set the points of graphic "arrow" to tGraphicPoints --Draw the arrow
> wait 1 sec
> end mouseUp
>
> on mouseLeave
> set the points of graphic "arrow" to ""
> end mouseLeave
>
> The puzzle is that the arrow shows for 1 second and then disappears,
> even when the mouse is never moved away from the clickText, much less
> out of the field. (The word pairs are linked.)
>
> Why is the "mouseLeave" message being send?
Quick guess:
The new graphic appears UNDER the cursor and thus the field with the
script
is being left by the mouse and the mouseleave-script is being processed
after
1 second... (?)
Hope that helps...
> Jim
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list