Here is how my app Starts:
First in the main.lua I have put the slides named “pagelist” having 3 images and then I have called the next page called “play.lua”.Here I have used
local function createBook ( event )
director:turnToBook ()
director:newBookPages( pageList )
end
showFx = transition.to ( bgimage,{onComplete=createBook})
There is another file called page.lua where I have described the following;
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
local fmenu = function( event )
if event.phase == “ended” then
print(“tap”)
–>>director:changeScene(“main”,“overFromRight”)
end
end
menubtn:addEventListener(“touch”,fmenu)
return localGroup
end
The problem arises at “–>>” point.it is reading the change scene but not changing also the sliding properties stops.
Provide me solution if you are able to understand it.
[import]uid: 82446 topic_id: 15430 reply_id: 57067[/import]