I’m aware that I can create variables within the composer, however I’m wondering if there’s any other ways to access variables from different scenes/main.
I also have no idea how to call the functions defined in main from a scene and vice-versa.
EXAMPLE:
Main.lua----------------------------------------------------------------------------
local text1 = display.newText( “lolololol” )
local words1 = “lolz”
Scene1.lua-------------------------------------------------------------------------
local button1Press = function( event )
text1.text = words1
end