in the mouseUp handler of a locked text field I have a call to a card script which reads (in part)
Code: Select all
send "checkPosition " & the name of group theGroup & "," & the name of me to this card
Code: Select all
on checkPosition whichGroup whichObject
--adjust the field object so that it stays within the bounds of the group
if the left of whichObject < the left of whichGroup then
set the left of whichObject to the left of whichGroup + 10
end if
end checkPosition
Obviously this means the card script gets a bit upset. So, I am wondering... how do I pass the name of me (the calling locked field) as 'field "textfordrag"' (or whatever) off to the checkPosition handler?
I have tried name, id, long id, etc and they all resolve to the text of the locked field.
cheers