Problem with director:changeScene()

I am struck in a no mans land.I am using slides in my app and i want to use the buttons to change the scene but I am not able to do that…

The problem is that simulator reads the function where i have described the change-scene but it is neither changing the scene nor is showing any error.So,I have got struck at the end of my app. [import]uid: 82446 topic_id: 15430 reply_id: 315430[/import]

can you post the code with problem ? [import]uid: 71210 topic_id: 15430 reply_id: 57046[/import]

he I do the same thing with director class It successfully run can u show me the code and discription also… [import]uid: 87384 topic_id: 15430 reply_id: 57058[/import]

But I m not using the Directory class Book code I put my on code of sliding Image on touch [import]uid: 87384 topic_id: 15430 reply_id: 57059[/import]

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]

i think its because you are not supposed to go back to main.lua.

the destination page for director should have a function new and module(…, package.seeall) which you cannot include in main.lua file.

so its better to create a file just after the main.lua which acts like a menu. so it goes like main --> menu --> page then back to menu like that.
try and let me know how it works. [import]uid: 71210 topic_id: 15430 reply_id: 57069[/import]

Moved to correct forum [import]uid: 84637 topic_id: 15430 reply_id: 57071[/import]

yes i did exactly that what you have said .I had just skipped the menu page as it was not important :slight_smile: .In my app it is going to menu page instead of main page.but the problem is not resolved.Now,any help if you can? [import]uid: 82446 topic_id: 15430 reply_id: 57078[/import]

An impressive share, I simply given this onto a colleague who was doing slightly evaluation on this. And he in truth bought me breakfast as a result of I discovered it for him… smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to debate this, I feel strongly about it and love reading extra on this topic. If attainable, as you grow to be experience, would you thoughts updating your weblog with more details? It is extremely useful for me. Big thumb up for this blog put up!
HGH opportunist Free adult porn videos optionor Hcg diet guidelines hypothecate [import]uid: 136225 topic_id: 15430 reply_id: 95682[/import]