Hi Guys,
I’m trying to use a touch listener function to paint an object from my app. The problem is that the setFillColor is not working inside the function. If I move it outside to be executed with the firts run it works fine. The function is being properly called but colors don’t change…
Can some one help me to understand what is going on?
this is the code:
function teto:touch(e)
if e.phase == “ended” then
teto:setFillColor(255,0,0,255)
end
end
teto:addEventListener(“touch”,teto)
Regards,
Tarcisio [import]uid: 140109 topic_id: 25872 reply_id: 325872[/import]
[import]uid: 52491 topic_id: 25872 reply_id: 104652[/import]