Yariv Rosenstein <[EMAIL PROTECTED]> wrote:
> It's strange but my Destructor is never called when I close the
> iexplore window that contain my shockwave movie.

Hi Yariv,

If you are using an instance of a Parent Script, you might be able to
work around this by using a timeOut object.  This can be used to divert
#stopMovie messages to the child instance:

on new(me)
  period = the maxInteger -- so timeOutHandler is "never" called
  timeOut("Destructor").new(period, #timeOutHandler, me)
  -- etc
end new

on stopMovie(me)
  -- Only sent to an instance if it is the target of a timeOut object

  -- Call your destructor method here
end stopMovie

Cheers,

James


[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