MistySue Wallaby
Registered User
Join date: 22 Apr 2005
Posts: 40
|
11-25-2005 16:44
Ok, time once again to show my noobie-ness. Can you redefine event handlers in different code segments? I mean, is this valid:
myCode { eventhandler (.....) { } }
default { eventhandler (....) { } }
Seems to me that it should work, and the handler called would depend on the code segment currently executing.
|
Max Case
Registered User
Join date: 23 Dec 2004
Posts: 353
|
11-25-2005 17:12
Hi.
Are you meaning to put a handler in a function?
ie
fn_foo() { touch_start(integer foo)
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
11-25-2005 17:53
If your talking about in different states, then yes, you can have seperate event handlers in each state. If the current state does not have a certain event handler, but another state does, that event will not trigger. For example, having a touch event handler in one state but not the other, touching will only work in the same state as the handler. You won't even get the hand cursor in the state without the handler. If mutiple states have a certain handler, only the one in the current state is triggered. http://secondlife.com/badgeo/wakka.php?wakka=state
|