At 1:52 PM -0500 10/30/00, Mark R. Jonkman wrote:
>Hi Irv
>
>You stated:
>
>>  I don't think this is exactly right.  My guess is that "sendSprite"
>>  actually does a translation for you.  For example, if you said:
>>
>>     sendSprite(12, #someHandler)
>
>Irv is absolutely right, I was tired, but I was trying to think about the
>special case where me is not really me.  The situation is not with respect
>to the sendSprite call, Irv was right in stating that it does the
>translation for you. Me is still me the memory address.
>
>But if your being nasty and trying to directly call a sprite without using
>the scriptInstanceList so to speak you can pass it the sprite reference ie.
>sprite 1 vs the me if you do the following
>
>sprite(12).someHandler()
>
>it you checked the value of me during this execution, it would return
>(sprite 12) in the message window.
>
>Again, I apologize for the misinformation and thank you Irv for
>straightening the record out.  Again my apologies, I was tired and typing
>without first checking. Sorry all.
>
>Sorry again.
>


Hey Mark,

Could you apologize just one more time - I don't think you did enough  :)

Actually, the thing that you and Jakob pointed out about using:

   sprite(12).someHandler()

I have never even considered doing that.  In fact, I didn't even know 
you could do that!  I have always used "sendSprite" for this case.

But the results are surprising.  I guess it's because when writing 
the line above, you are considering sprite(12) to be like a global 
object, and then somehow the sprite object forwards on the message by 
calling the someHandler in each of the attached behaviors.  I'm 
surprised that it would pass on the (sprite 12) as the current object 
rather than doing the translation that I was talking about.  It's 
even more surprising that it works.  Anyway, I would just use 
sendSprite instead.

Irv
-- 
Lingo / Director / Shockwave development for all occasions.

        (Over two millions lines of Lingo code served!)

[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