Tab Julius wrote:
>
> You would think so.
>
> In fact, in a projector, though, this can cause the app to crash.
>
> The safer way is to do something like this:
>
> (in miaw)
> on mouseUp
> global gWindowToKill
>
> gWindowToKill =the activeWindow
> end
>
> (in main program)
> on idle
> global gWindowToKill
>
> if (gWindowToKill) then
> forget gWindowToKill
> gWindowToKill =VOID
> end if
> end
>
> This puts the "killing" of the window in the context of the stage, not the
> window itself, and won't crash.
So long as the second 'main program' portion is in a cast that isn't
shared by the MIAW.
Chased that one for a day. :-6
I'm still having trouble with 'forget'
When the MIAW is re-opened it often crashes, even in Director.
Because the MIAW is bound to get re-opened (the dictionary on a language
CD), I just use 'close'.
I don't _like_ it. but it works.
Any other gotchas for closing MIAWs?
--
Carl West [EMAIL PROTECTED]
617.262.8830 x246
I have no superfluous leisure; my stay must be
stolen out of other affairs; but I will attend you awhile.
- Isabella, Measure for Measure, Act 3 Scene 1
[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!]