PDA

View Full Version : addhandler help


Mangled Poly
10-25-2006, 07:58 PM
Hey guys Im having some issues with the following snipet of code:

rolloutFileLabels.addControl #label LabelName LabelText paramStr:LabelParams
rolloutFileLabels.addControl #spinner SpinnerName SpinnerText paramStr:SpinnerParams
local GetLabelNum = replace SpinnerName 1 7 "Label"
rolloutFileLabels.addHandler SpinnerName #changed paramStr:"val" codeStr:"setUserProp $ GetLabelNum.text val"

I have it set up so the ending numbers for the spinner and label are the same, so I am trying to swap out the current spinner name to label then set user props this wa. On the set up loop GetLabelNum works right, but on the handler change it comes up as undefined... any one have a better way of doing this or maybe i am missing something simple?

Mangled Poly
10-25-2006, 08:04 PM
ok the issue is SpinnerName is undefined.. so how do i get the name for the spinner being chnaged when it was dynamiccaly generated like so?

Mangled Poly
10-25-2006, 09:04 PM
nm got it figured out....
Sorry to waste a post

CGTalk Moderation
10-25-2006, 09:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.