Best way for splash screen

I was trying to create a splash screen for my app but does not work.

I think I don’t understand how it works the storyboard.

Following my file main.lua :

-- main.lua -- hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- include the Corona "storyboard" module local storyboard = require "storyboard" storyboard.gotoScene( "splash", "fade", 200 )

and now the file splash.lua :

-- splash.lua local storyboard = require "storyboard" local splash = storyboard.newScene() function splash:createScene(event) local splash\_bg = display.newImageRect("image/splashscreen.jpg",640,960) splash\_bg.x = display.contentCenterX splash\_bg.y = display.contentCenterY local gotonextscene = function() storyboard.gotoScene( "menu","zoomOutInFade", 500 ) --Your next scene end end splash:addEventListener( "createScene" ) local sceneTimer = timer.performWithDelay( 3000, gotonextscene, 1 ) --Splash timer

The two files are in the same folder.

What is the problem?

Thanks.