Hi! I’m in the developing of my new project wich is based on a little ticker function i noticed this problem: I have a little “ticker” thing that will work like this: when i click a button, the ticker should add a new png and remove the otherone. Or now remove just make it visible and turn of the old pngs. visibility. Anyhow my code is working fine except for one thing. The ticker is working and is printing the correct things. But the TR isnt changing its status.
Please help, i’ve try to solve this problem on my own, but i neewbie like me cant handle this:/ I would be more then happy if someone could help me out:)
PS: Sorry for my bad English 
Thanks in advance
.Philip 
BTW: Here is the part of my code which isnt working properly:
[lua]TR = 1
if TR == 1 then
On1.isVisible = true
On16.isVisible = false
end
if TR == 2 then
On2.isVisible = true
On1.isVisible = false
end
if TR == 3 then
On3.isVisible = true
On2.isVisible = false
end
if TR == 4 then
On4.isVisible = true
On3.isVisible = false
end
if TR == 5 then
On5.isVisible = true
On4.isVisible = false
end
if TR == 6 then
On6.isVisible = true
On5.isVisible = false
end
if TR == 7 then
On7.isVisible = true
On6.isVisible = false
end
if TR == 8 then
On8.isVisible = true
On7.isVisible = false
end
if TR == 9 then
On9.isVisible = true
On8.isVisible = false
end
if TR == 10 then
On10.isVisible = true
On9.isVisible = false
end
if TR == 11 then
On11.isVisible = true
On10.isVisible = false
end
if TR == 12 then
On12.isVisible = true
On11.isVisible = false
end
if TR == 13 then
On13.isVisible = true
On12.isVisible = false
end
if TR == 14 then
On14.isVisible = true
On13.isVisible = false
end
if TR == 15 then
On15.isVisible = true
On14.isVisible = false
end
if TR == 16 then
On16.isVisible = true
On15.isVisible = false
end
local function TRG (event)
if(event.phase == “ended”) then
print ("Changed to: ")
if TR == 0 then
TR = 1
print (“1”)
elseif
TR == 1 then
TR = 2
print(“2”)
elseif
TR == 2 then
TR = 3;
print(“3”)
elseif
TR == 3 then
TR = 4;
print(“4”)
end
end
end
SynthBase:addEventListener(“touch”, TRG)
[import]uid: 119384 topic_id: 24200 reply_id: 324200[/import]
