yes, you can, just add it to the list:
doorCloseTimerObj = timeout("doorCloseTimer").new(20000, #setDoorClosed,
myDoorObj, param1, param2, param3)


Rich Mayer wrote:
> 
> Hi!
> 
> Can anybody tell me whether it's possible to pass parameters to  timeout
> handlers in child objects?
> If so, what does the syntax look likeplease?!!
> 
> What I've got right now is something like this:  (to set the scene,  think
> adventure game! )
> 
>       doorCloseTimerObj = timeout("doorCloseTimer").new(20000,
> #setDoorClosed, myDoorObj)
>       doorLockTimerObj = timeout("doorLockTimer").new(20000,
> #setDoorLocked, myDoorObj)
> 
> But since that requires 2 timers where one would have done, and considering
> it's only a very simple scenario anyway, what I'd really like to do would
> be something like the following:
> 
>       twentySecTimerObj = timeout("20secTimer").new(20000,
> #setState(2),  myFurnishingObj )
> 
> I know that's not valid lingo in the second case but I think it illustrates
> what I want to do....
> 
> The door could have a variety of states (locked, open, ajar, broken,
> missing, etc) all set via one single accessor. Furthermore it doesn't even
> have to be a door. I want to be able to call just one accessor defined in
> one parent script set the state of anything (well, in this case any
> 'furnishing' object), just as I do when not using a timer.
> 
> thanks,
> Rich
> 
> [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
Instructional Media Developer, 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