Hi there
I would like to handle all MouseEnter & MouseDown messages of card's buttons in one place. What I am trying to do is the following:
on mouseEnter
if button where mouseEnter event occured is "buton1" then...
end mouseEnter
is there function (or property) for that? I can't find it...
Regards
Yet another button question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi Srdjan,
you can use "the target" (see the docs) like this in your cardscript (same for mousedown etc...):
Hope that helps.
Best from germany
Klaus
you can use "the target" (see the docs) like this in your cardscript (same for mousedown etc...):
Code: Select all
on mouseenter
## Only "react" on buttons:
if word 1 of the target <> "button" then
exit mouseenter
end if
## Handle only THIS special button:
if the short name of the target = "button1" then
## do your stuff...
end if
end mouseenter
Best from germany
Klaus