At 3:49 PM -0600 1/2/2001, Colby Dodson wrote:
>PFK e-Business
>Content-type: text/plain; charset="US-ASCII"
>Content-transfer-encoding: 7bit
>
>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.


Hi Colby,

You can write the behavior so that it has a "status" property. This 
would be just a boolean (true/false). To turn off the behavior, set 
it to false, then in your various event handlers, have a line like:

        if pStatus = FALSE then exit

then nothing else in that event handler will execute.

You would be able to enable/disable the behavior as needed with 
"setStatus" event handler.


-Roy


-- 

     Roy Pardi
---------------------------------------------------------------
Contract Multimedia Developer   +  Lingo Programer
                                 [EMAIL PROTECTED]
---------------------------------------------------------------



[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