Hello,
i have a problems with global functions and params
in main.lua i have:
[lua]local ui = require(“ui”)
ui.foo{name = img}[/lua]
and in ui.lua:
[lua]module(…,package.seeall)
local img3 = display.newCircle(0,0,50)
img3:setFillColor(0,255,0)
img3.isVisible = false
function foo(params)
local name = params.name
name.isVisible = true
end[/lua]
i cant figure out why its not working, i anyone can help- it will be hugely appreciated [import]uid: 16142 topic_id: 15536 reply_id: 315536[/import]
[import]uid: 3826 topic_id: 15536 reply_id: 57429[/import]