0
have file form.lua
with the code:
local _M = {}
function _M.calc( a )
local quad = display.newRect(100,100,100,100)
end
return _M
and the file scene2.lua
with the code:
local form = require "form"
form.calc( )
I need the quad / function
is removed from the screen when going to another scene.