>is there a difference, in this or other cases, of using "call" vs.
>sendSprite? is one way better or worse??

You can use call to target a specific behavior attached to a sprite. E.g., 
if you had two behaviors attached to a sprite, and each of them had a 
mouseDown behavior, sendSprite would call the mouseDown handler in both 
behaviors, while you could target a specific behavior with call.

I haven't used it like this, but I believe you can also use call, just 
giving the name of the script, and it will call all instances of that 
script. E.g., if you had a behavior called "moveMe" with a handler 
"moveLeft," you could just do

call (#moveLeft, "moveMe")

and it would call all the sprites that had the moveMe behavior attached.

Also, you can use call to communicate with objects that may not be attached 
to a sprite at all.


Cordially,

Kerry Thompson


[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