Please don’t use globals. There are so many options to avoid it.
Use a simple data table that you require in each module: http://coronalabs.com/blog/2013/05/28/tutorial-goodbye-globals/
@JonPM mentioned using Composer’s key-value store .setVariable(), .getVariable()
Composer scenes can pass parameters that are available in scene:create() and scene:show():
composer.gotoScene( "newscene", { time = 500, effect="crossFade", params = { key1=value1, key=value2, key3=value3 } )
and in “newscene”'s scene:create() and scene:show()
local params = event.params local key1 = params.key1 print( key1 ) -- prints value 1
@schizoid2K’s data cabinet works for many.
Rob