Slider handle

Hi,
I am using slider in my project and want to replace the slider handle image in listener
method but getting error.
Any help will be appreciate?

Here is code:
[lua]
sliderListener = function( event)
local sliderVal = event.value
local sliderObj = event.target
if sliderVal > 20 then
sliderObj.handle = “sliderHandleGood.png”
end
end
[/lua]

Thanks,

[import]uid: 75428 topic_id: 35827 reply_id: 335827[/import]

Changing a slider handle image after construction is unsupported.

You would have to destroy the slider, create a new one with the required handle then set it’s initial value to event.value.

[import]uid: 84637 topic_id: 35827 reply_id: 142633[/import]

Thanks Danny,
I’ll do it and let you know. [import]uid: 75428 topic_id: 35827 reply_id: 142706[/import]

Changing a slider handle image after construction is unsupported.

You would have to destroy the slider, create a new one with the required handle then set it’s initial value to event.value.

[import]uid: 84637 topic_id: 35827 reply_id: 142633[/import]

Thanks Danny,
I’ll do it and let you know. [import]uid: 75428 topic_id: 35827 reply_id: 142706[/import]

Thanks Danny,
I’ll do it and let you know. [import]uid: 75428 topic_id: 35827 reply_id: 142706[/import]

Thanks Danny,
I’ll do it and let you know. [import]uid: 75428 topic_id: 35827 reply_id: 142706[/import]