Hi everyone
i have this code
display.setStatusBar( display.HiddenStatusBar )
local ui = require("ui");
local myvar = 1;
local touch = function( event )
if event.phase == "release" then
myvar = 1 -myvar
end
end
local button = ui.newButton{
defaultSrc = "face.png",
defaultX = 50,
defaultY = 50,
overSrc = "face.png",
overX = 30,
overY = 30,
onEvent = touch
}
button.x = 100;
button.y = 100;
if myvar == 1 then
settings\_button.isVisible = false;
elseif myvar == 0 then
settings\_button.isVisible = false;
end
i need to show and hide the button that i touched, and i am not getting this results.
anyone can help? [import]uid: 26056 topic_id: 18665 reply_id: 318665[/import]
i updated the code, it some like it that you are talking about? [import]uid: 26056 topic_id: 18665 reply_id: 71739[/import]
[import]uid: 26056 topic_id: 18665 reply_id: 72514[/import]