> on mouseUp me
> quit me
> end
>> This is much better, and won't quit during authoriing:
>>
>> on mouseUp me
>> halt
>> end
>>
>>> If you have attached the script to a sprite try this:
>>>
>>> on mouseUp
>>> quit
>>> end
Nobody has bothered to explain your mistake, so I shall. "me" is a special
word in lingo. It is a pointer to an object's address in memory, allowing
the object to communicate between its various handlers and access its
various properties. Behaviors (and child objects) need the "me" as the first
argument of a handler in order for the handler to work.
Using "me" within a handler means that you are sending a message to the
object that the handler resides in. When you wrote "quit me", you sent a
message to the behavior to execute a handler called "quit". There is no
handler called quit in your behavior, so nothing happens.
The removal of the "me" means that the message is sent along Director's
normal message path, and reaches the intended internal "quit" (or "halt")
handler, thus getting the result you're after.
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!]