local bt01t = function ( event )
if event.phase == "ended" then
native.cancelWebPopup()
director:changeScene( "mainmenu", "moveFromLeft" )
end
end
NavbarImage:addEventListener("touch",bt01t)
With the above code, director will change back to my mainmenu.lua file but the current webpopup will stay active. When I pick another menu option which has a webpopup, I see the last one briefly.
Also, if the current webpopup has an embedded video (eg YouTube) and it is playing, when I hit the button to go back to the mainmenu.lua with the above code the video’s audio is still playing and will continue to play unless I pop up another webpopup or exit the app.
Any clues? [import]uid: 10389 topic_id: 12119 reply_id: 312119[/import]
[import]uid: 3826 topic_id: 12119 reply_id: 49726[/import]