Composer

When I launch it, it shows,

?:0: attempt to concatenate global ‘sceneName’ (a nil value) stack traceback:

?: in function ‘gotoScene’

main.lua:13: in main chunk

Here is my codes…

– hide device status bar

display.setStatusBar( display.HiddenStatusBar )

– require controller module

local composer = require “composer”

local widget = require “widget”

– load first scene

composer.gotoScene( “scene1” )

I’m guessing line 13 is this line?

composer.gotoScene( "scene1" )

If so,  you’ve got some kind of syntax error in your scene1.lua file.  Composer may be throwing a fit because it can’t load the file (due to the error).

Please share the file with us using code formatting:

formatyourcode.jpg

Note: If your code is really long paste it to a GISTand share the GIST link.

I’m guessing line 13 is this line?

composer.gotoScene( "scene1" )

If so,  you’ve got some kind of syntax error in your scene1.lua file.  Composer may be throwing a fit because it can’t load the file (due to the error).

Please share the file with us using code formatting:

formatyourcode.jpg

Note: If your code is really long paste it to a GISTand share the GIST link.