need help with the storyboard api

same outcome, i can’t think about anything wrong with my code…

I’m really confused about this code:

local function fileExists(fileName, base)     assert(fileName, "fileName is missing")     local base = base or system.ResourceDirectory     local filePath = system.pathForFile( fileName, base )     local exists = false       if (filePath) then -- file may exist. won't know until you open it         local fileHandle = io.open( filePath, "r" )     if (fileHandle) then -- nil if no file found         exists = true         io.close(fileHandle)     end end

I encountered that “scene loaded twice” thing as well.

As Rob stated above, wrapping the gotoScene inside a timer fix that (at least on my app). I did like

[lua]timer.performWithDelay(300, function() storyboard.gotoScene( “menu”, “zoomInOutFade”, 500 ) end, 1)[/lua]

Try to change that 300 to different number. I think it will vary based on your memory device ?