No, actually the main point is that when the call unwinds, it has to come
back to a different window or the stage. If it comes back to the MIAW,
you're dead.
Even if the MIAW calls the stage, you're still left with the MIAW (the
object you're trying to kill) being the originator, and that will
crash. And I know this from personal experience, this isn't just theory.
Consider:
1) MIAW Active Window tells
2) The stage to
3) kill MIAW
4) return call to stage
5) return call to MIAW
Note indenting. You die on #5, because you killed it in #3, but you still
have to finish first the "kill" call, which should finish fine, since the
stage exists, then you have to finish the "tell" call, which dies because
you just killed the object you need to return to.
It will work in authoring mode, it seems, but often in a projector it will
hose the machine something fierce.
- Tab
At 09:08 PM 3/23/01 -0800, Kerry Thompson wrote:
>> > Would it also be unstable if you use "tell the stage" in the window, to
>> > call a handler in the stage's movie script, that closes that window?
>>
>>in my experience, it is still an unstable way to close a MIAW.
>
>Unless I'm reading Karina's question wrong, there's nothing wrong with her
>approach.
>
>The central point is that the MIAW doesn't close itself, but that the main
>window closes it.
>
>In Tab's example, the main window gets the information from a global.
>Karina's method simply passes the information via "tell the stage." Either
>way, it's the main window--the stage--closing the MIAW.
>
>
>Cordially,
>Kerry Thompson
>Learning Network
>
>
>[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!]
>
[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!]