Michael,

> I figured out a workaround to my previous email:
> ------------------------------------------------
>   repeat with i = 1 to (the timeoutlist).count
>     -- here the timeoutlist is [timeOut("wiper")]
>     theItem = string(the timeoutlist[i])
>     if theItem contains "wiper" then
>       (the timeoutlist).deleteAt(i)
>     end if
>   end repeat
> ------------------------------------------------
> ...but, is using deleteAt on an item in the timeoutlist the same thing
> as saying timeout("wiper").forget()?

I just strolled over to the source (John Henry Thompson, father of Lingo)
and got the scoop: yes, it is. Calling the forget() method merely deletes
the timeout object reference from the timeout list, nothing more. But, I'd
would strongly recommend that you don't do that as things may change. For
example, when you forget a MIAW by calling forget() there is more work done
that merely removing the window reference from the windowList, in that case
you'd be in for trouble using the above technique. In the interest of
keeping yourself safe going forward (and not having to potentially come back
and re-author content if this changes) I'd stick with calling forget() to
handle this.

- walk the timeout list looking for the object of concern
- if found, exit your repeat loop
- if found, step into and if...then... statement and call the forget()
method by named reference

Cheers,
Tom Higgins
Product Specialist - Director Team
Macromedia

DIRECTOR, de lekkerste!

...

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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