Morgan is correct in saying that you do not close a MIAW directly. When
control to the originating script is passed, you will find that the MIAW
does not exist and the whole thing bombs out.

The only correct way to close a MIAW would be to set a global flag initially
set to "false" or some other descriptive value and put inside that variable
the name of the MIAW you want to close when required. The main movie can
check the staus of this variable during idle time and will close the
required window when the variable contains an appropriate value.

-- In the main movie
global gWindowFlag

on startMovie
  gWindowFlag = #nowindow
end

on idle
  if gWindowFlag <> #nowindow then
    forget window gWindowFlag
    gWindowFlag = #nowindow
end

-- In the MIAW close button
global gWindowFlag

on mouseUp
  gWindowFlag = the activeWindow
end

Or something like that...


[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