yes, the remove would need to look like this:

on remove me
        if objectP(pSpecialTimer) then
                timeOut("theName").forget()
        end if
end remove

using the name you defined earlier.

very interesting idea though. it won't crash if the handler name doesn't
exist, but i didn't realize that would keep the object that it's
referencing. that sounds like it could be pretty powerful...

--bh

"Mark R. Jonkman" wrote:
> 
> Hi Kerry
> 
> If your using D8, then you can add a timeout object that is persistant and
> its owner being the audio controller object. That proceedure allows your
> objects to recieve all of the prepareFrame, exitFrame, startMovie,
> prepareMovie and other system level events. So in essence you could do
> something like this... (Extreme Warning this is email lingo not certified to
> work). The forget part may be wrong.. me apologies for making you RTM (note
> no f :-))
> 
> property pSpecialTimer
> 
> on new me
>         pSpecialTimer = timeOut("theName").new(0, #someNonExistantHandler, me)
>         pSpecialTimer.persistant = true
>         return me
> end new
> 
> on startMovie me
>         -- whatever Kerry wants to do
> end startMovie
> 
> on stopMovie me
>         -- whatever Kerry wants to do
> end stopMovie
> 
> on remove me
>         if objectP(pSpecialTimer) then
>                 pSpecialTimer.forget()
>         end if
> end remove
> 
> (Please note that remove is my custom destructor handler and its probably
> all screwed up... try reading the lingo dictionary if you want to get even
> more lost.
> 
> Sincerely
> 
> Mark
> 
> --------------------------------------------
> Mark R. Jonkman
> Mark R. Jonkman Consulting
> ADDRESS: 20 Windermere Crt., Guelph, ON, CANADA N1E 3L4
> PHONE: 519-837-8509
> EMAIL: [EMAIL PROTECTED]
> --------------------------------------------
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Kerry Thompson
> > Sent: Thursday, February 15, 2001 6:10 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: <lingo-l> Playlist question
> >
> >
> >
> > >a global, or a property of a global object. don't know of any automatic
> > >way.
> >
> > I think that's it--I've created a new audio manager object, and
> > added it to
> > the actorList so it gets the stepFrame commands. The actorList persists
> > from movie to movie, so I think that will do it. I'll report back when I
> > get back from skiing in Vermont :-)
> >
> >
> > Cordially,
> > Kerry Thompson
> > Learning Network
> >
> >
> > [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!]

-- 
R. Bhakti Klein
Multimedia Programmer, Distributed Learning Workshop
http://www.dlworkshop.net/
··
Baritone, Wicki6
http://www.wicki6.com
···
"On Earth, you can only do little things;
but you can do them with a lot of Love."
                              -- Mother Theresa

[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