> if ilk(sprite(spriteNum).member) = #field then

I think that ilk(sprite(spriteNum).member) will always evaluate to #member.

What Irv was perhaps looking for was sprite(spriteNum).member.type which
will return #field when attached to a field sprite.

I also think that what was being asked will be served by monitoring for the
keyBoardFocusSprite on prepare/enter/exitFrame. eg:

on exitFrame me
  if the keyBoardFocusSprite = me.spriteNum then
    -- the field this behavior is attached to currently has focus
  end if
end

HTH,
-Sean.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to