This question gets asked about 1000 times every day so check the archives
first!!

Anyway, you're gonna run into problems if you try and close the MIAW from
within itself because Director will continue to run a handler (even if it's
just to close down) that no longer exists - hence your crash.

You need to control closing MIAWs from the main movie - set a flag inside
the MIAW that it needs to be closed and when the master stage movie notices
this flag *it* will close it. The follow code is from Tab (I saved it
because I can never remember myself):

(from the window you want to kill)

global gWindowToKill
gWindowToKill =the activeWindow

(and in an idle handler or exit frame on the stage, that loops around):

global gWindowToKill
if not (voidP(gWindowToKill)) then
   forget gWindowToKill
   gWindowToKill =VOID
end if

This should od the trip nicely...

Ross


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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