I wrote the parent script and the behavior below to avoid the MIAW
crashing problem on Windows.  They could solve the problem but I had
another one.  When I tried to open the MIAW twice, the following error
message was shown and it could not open.

[Error message]
Unable to open file "XXX.dir" because it is already open with write
permission by another user.

--[ForgetWindow]
-- Parent script of the MIAW movie
property pMyWindow

on new(me, oWindow)
   pMyWindow = oWindow
   tell the stage to timeOut(me.string).new(0, #xNothing, me)
end

on exitFrame(me, oTimeOut)
   oTimeOut.forget()
   pMyWindow.close()
   pMyWindow.forget()
end

--  Behavior of a button in the MIAW
on mouseUp(me)
   me.xForget(the activeWindow)
end

on xForget(me, oWindow)
   if objectP(oWindow) then
     -- Creates child object for the "ForgetWindow" script
     script("ForgetWindow").new(oWindow)
   end if
end

I found out a workaround.  Place a 'on closeWindow' handler in a movie
script in the MIAW and access to it once in the handler.  For example,
as the follows:

-- Movie script in the MIAW
on closeWindow
  tmp = []  -- creates a list object
  tmp.append(1)  -- access it anyway
end

But I don't know why this solves the problem.  Any comments or ideas
would be very appreciated.

Fumio Nonaka
Attain Corporation
Phone: +81-3-3255-4941
Fax: +81-3-3255-5998
mailto:[EMAIL PROTECTED]
http://www.attainj.co.jp

[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