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!]