> Does anyone know if there is a way to disable a behavior attached to a
> sprite on a  mouseEnter or mouseLeave command. Appreciate anyone who can
> help.

Make the behavior's action conditional to the value of a property. Set the
property's value through the appropriate events.

property pActive

on beginSprite me
  pActive = 1
end

on anEventThatNeedsDisabling me
  if pActive = 1 then
   -- do stuff
  end if
end

on mouseEnter me
  pActive = 0
end

on mouseLeave me
  pActive = 1
end 

and so on...

HTH,
Kurt


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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