global sceneName error

Hey all.

I am trying to get the storyboard to go to a different scene from the one currently running. I am having some trouble with it. I get the error; Attempt to concatenate global ‘sceneName’ (a nil value).

I dont really understand, it works fine for all my other buttons just not this one. 

[lua]   local function onHomeBtnRelease()

    

    storyboard.gotoScene( “main”, “fade”, 500 )

    

    return true    – indicates successful touch

end

[/lua]

and then

[lua]

        homeBtn = widget.newButton{

        label=“menu”,

        labelColor = { default={255}, over={128} },

        defaultFile=“button.png”,

        overFile=“button-over.png”,

        width=154, height=40,

        onRelease = onHomeBtnRelease    – event listener function

          }

        homeBtn:setReferencePoint( display.CenterReferencePoint )

        homeBtn.x = display.contentWidth*0.5

         homeBtn.y = display.contentHeight - 60

        end

[/lua]

I just want it to return to the main screen again after the program has finished. Any ideas?

Your main.lua file cannot be a scene and you therefore cannot go to it.

Your main.lua file cannot be a scene and you therefore cannot go to it.