Hi,
I have a project with scenes and one scene1 I have a function called onSceneTouch that works and takes me to scene2. When I return to scene1 by saying storyboard.gotoScene( “Scene1”, “fade”, 300 ) it takes me back but the function onSceneTouch is not working.
I am adding the event here in Scene1. What am I doing wrong? Thanks!
function scene:enterScene( event )
storyboard.purgeScene( "sceneHome" )
storyboard.purgeScene( "scene2" )
-- Update Lua memory text display
local showMem = function()
imgHeader:addEventListener( "touch", imgHeader )
end
local memTimer = timer.performWithDelay( 1000, showMem, 1 )
end
[import]uid: 184193 topic_id: 33987 reply_id: 333987[/import]