What are the pro/cons of where to store variables you want across the life of a scene between the two approaches below. Do both ok from a memory management and variable scope type perspective? Is the recommendation to use option (a) ?
a) local variable in the main chunk
local storyboard = require( "storyboard" ) local scene = storyboard.newScene() local image, text1, text2, text3, memTimer -- \<== EXAMPLE HERE local function onSceneTouch( self, event ) . . .
B) parameter of the scene
local storyboard = require( "storyboard" ) local scene = storyboard.newScene() scene.image = nil -- \<== EXAMPLE HERE local function onSceneTouch( self, event ) . . .