Code I post for example works but what I really want is to make a functions sequence to work after button pressed. I made a note in the code. How I can achieve that?
[lua]–Scene
–function outside scene
function scene:rearrange()
--do something
end
–Overlay
–function outside scene
function scene:resume(a)
a.rearrange()
end
function scene:show( event )
local sceneGroup = self.view
local phase = event.phase
if ( phase == “will” ) then
--NOTE. Widget button e.g (onRelease = scene:resume(event.parent))
scene:resume(event.parent)
end
[/lua]