Hi,
I am attempting to use the storyboard API and it appears that when I use the option to include the scenes in main.lua the createScene handler is not called the first time storyboard goes to that scene.
My sample code in main.lua is:
local storyboard = require( "storyboard" )
local scene = storyboard.newScene("scene")
storyboard.gotoScene( "scene", "fade", 400 )
-- Called when the scene's view does not exist:
function scene:createScene( event )
print("got to createScene for scene")
storyGroup = self.view
end
-- Called immediately after scene has moved onscreen:
function scene:enterScene( event )
print("got to enterScene for scene")
end
scene:addEventListener( "createScene", scene )
scene:addEventListener( "enterScene", scene )
Note that the first time this is run createScene is not called.
Thanks,
-Dennis