Composer: Two scenes at the same time

Hi, 
 

I’m trying to make an app that uses a Fly out menu. So what i did was this:

display.setStatusBar( display.HiddenStatusBar )

local composer = require “composer”

display.setDefault(“background”,1,1,1)

composer.gotoScene(“Flyout”)

composer.gotoScene(“Menu”)

Called both Lua file at the same time in my main.lua.

Yes, only my Menu.lua file showed up but is it possible to make my Fly out menu visible in every scene.

Or is it possible for two scene to show up at the same time without using showOverlay.

Thanks.

You can only have on active scene on the screen at a time.  The overlay scene is the only way to have a 2nd scene and it has to end up  on top of the primary (parent) scene.  It sounds like you may not need your flyout to be a scene.  Look at this tutorial and see if the techniques presented there will help you:
 

http://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/

Rob

Thank you so much !

You can only have on active scene on the screen at a time.  The overlay scene is the only way to have a 2nd scene and it has to end up  on top of the primary (parent) scene.  It sounds like you may not need your flyout to be a scene.  Look at this tutorial and see if the techniques presented there will help you:
 

http://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/

Rob

Thank you so much !