John,
I have had the same problem recently, and after some digging into
macromedia's site, found that you cannot initiate a closing of a MIAW window
from itself. Apparently, after you call the handler from the MIAW window, it
expects a return value internally, and if the window does not exist anymore,
it can cause some nasty crashes.
My workaround was to have an object in the main stage, and have a property
in that object that can set to true, therefore signaling the object to close
the window, not directly from the window itself.
Hope this helps...
Morgan-
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
John Sproul
Sent: Tuesday, July 31, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: <lingo-l> closing MIAWs = a fatal error
I have a problem with a project and a number of its MIAWs. I have tried a
number of ways to close an MIAW
------------------------
GLOBAL myMIAW
on mouseDown
tell the stage to forget myMIAW
end
--------------------
on mouseDown
tell the stage to forget window "myMIAW"
end
-------------------
on mouseDown
forget window "myMIAW"
end
----------------
and none of these have worked. Has anybody had a similar problem and been
able to solve it? Thanks.
John Sproul
Vision Technologies Group
[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!]