Well Ellen, seems like you might be able to trace the error down to the way
you are closing the MIAW. This has been discussed extensively on the list
just a while back.

It's not a good practice to make an object erase itself, _or_ tell any
other object to erase it too. And that is exactly what your script is
doing. Rather than telling the stage to forget the current window, you
should have a global flag that indicates the state of the MIAW. Place a
script on the stage where you check the flag on every exitFrame and
depending on its value, open or close the MIAW. The script on the close
button in the MIAW simply sets that flag to FALSE.

If you wanna have a look at the whole thread, check out the list archives
at http://www.mail-archive.com/[email protected]/

Tab's gonna throw a fit when he sees this one... ;-)

Regards,
Pranav
-----------------------------------------------------------
A bus station is where a bus stops.
A train station is where a train stops.
On my desk, I have a work station......



<obliterated>
The project that we are developing is having this
error everytime we try to close the MIAw while some transitions is going on
in the main window.  The error is as follows

THIS PROGRAM HAS PERFORMED AN ILLEGAL OP.....
........Below is an example code of the calling and closing the MIAW

---this is attach to the sprite that will call such MIAW
on mouseUp
  global gCS462Window
  gCS462Window = window ("CaseStudies(4-6-2) Trainer")
  gCS462Window.filename = the moviepath&"CaseStudies(4-6-2) Trainer"
  gCS462Window.windowtype = 4
  gCS462Window.modal=TRUE
  gCS462Window.visible=TRUE
end

---this is the handler called when the MIAW is closed

on closegCS462Window
  global gCS462Window
  gCS462Window.close()
  gCS462Window.forget()
end

---this is the script attach to the close button of the called MIAW
on mouseUp
 global gCS462Window
 tell (the stage) to closegCS462Window
end

---this is the script that be exceuted when the X button of the called MIAW
is clicked

on closewindow
 global gCS462Window
 tell (the stage) to closegCS462Window
end
<obliterated>



[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