Hi, im having some problems with this function. This is what i have:
[lua]local image = display.newImage(“image.png”)
image.x = 100
image.y = 100
local button = display.newImage(“button.png”)
button.x = 200
button.y = 320
local function colorNext (event)
image:setFillColor(100,25,100)
end
button:addEventListener(“touch”,colorNext)[/lua]
Pretty basic, but its not working, if I put a newText, it works whenever i press the button, or if i use setFillColor outside the function, it works. Even if i dont apply an addEventListener, and then i call the function, it works.
Is there something im doing wrong? Or its just a bug? [import]uid: 108461 topic_id: 20790 reply_id: 320790[/import]