To share variable between storyboard

Hi at all,
my application use storyboard : scene1, scene2, scene3
How can i share a variable (myVariable) between scene ?

storyboard.myVariable = “something”

The storyboard object is a big Lua table. You can add additional variables and functions to it and its available to all the scenes.  I can’t find it now, but there is a blog tutorial on passing your game state around using this technique.  In it the author created a new sub-table:

storyboard.state = {}

Then you put anything you want to pass in that state table.   The reason for this is you don’t want to overwrite any existing storyboard methods or attributes or use something that we may use in the future.  This state table at the time (and at the moment still is) a safe place to store your inter-module data.

storyboard.myVariable = “something”

The storyboard object is a big Lua table. You can add additional variables and functions to it and its available to all the scenes.  I can’t find it now, but there is a blog tutorial on passing your game state around using this technique.  In it the author created a new sub-table:

storyboard.state = {}

Then you put anything you want to pass in that state table.   The reason for this is you don’t want to overwrite any existing storyboard methods or attributes or use something that we may use in the future.  This state table at the time (and at the moment still is) a safe place to store your inter-module data.