Help with loading a scene.

Hi,

I am new to corona (and lua).
I trying to create a game, and in my file (level_1.lua) I want to import all the elements of “level.lua”.
I am using this code:

-- Load Background  
local background = require("background")  

My issue is that “level.lua” loads before you even enter “level_1.lua”.

So, for example: When you load the game and get to the menu. “level.lua” is in the way (even though I do not require it in until you go to “level.lua”.
What code do I need to fix this? I need to delay the load of “level.lua” until you click on “level_1.lua” right?

Sorry it is a bit confusing! [import]uid: 15281 topic_id: 6629 reply_id: 306629[/import]

Any one know?
Basically, I want to know why scene B (a “sub” scene of scene A) would show before scene A has been opened?

Does anyone know? [import]uid: 15281 topic_id: 6629 reply_id: 23565[/import]