Dont know why but this Director:changeScene is not working…but the print"tap" is being printed in the simulator…
[code]
module(…, package.seeall)
function new(params)
local localGroup = display.newGroup()
local image = display.newImageRect( params.image, 1024, 768 )
image.x = 512
image.y = 384
localGroup:insert( image )
local menubtn = display.newImage (“menu.png”)
menubtn.x = display.viewableContentWidth/1.08
menubtn.y = display.viewableContentHeight/1.11
localGroup:insert(menubtn)
local fmenu = function( event )
if event.phase == “ended” then
print(“tap”)
director:changeScene(“menu”)
end
end
menubtn:addEventListener(“touch”,fmenu)
return localGroup
end [import]uid: 82446 topic_id: 16845 reply_id: 316845[/import]