Thanks for the response, But I have some question.
First I'm using multiple scripts, The call for the new xtra is performed in
Movie script.
Second On My xtra there is "new object me\n" in the message table and
corresponding m_new = 0 in the enum section so the constructor is called
automatically
When the DCR file is initialize in the HTM page when it loads. The problem
is that the Destructor is Never intend to be called. So how can I call it
from
on stopMovie(me)?
what message I have to put in message table in order for this to happen?
when you say -- Call your destructor method here what do you mean?
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!]
[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!]