Hello,
i have a problems with global functions and params
in main.lua i have:
1 2 3 | local ui = require("ui") ui.foo{name = img} |
Are you trying to show/hide the img3 in the ui.lua?
if yes,
1. it is called img3
2. it is local to ui.lua only, not accessible from outside
so, what you need to do is
1. change main.lua to
1 2 3 4 5 6 | local ui = require("ui") local img3 = display.newCircle(0,0,50) img3:setFillColor(0,255,0) img3.isVisible = false ui.foo {name=img3} |
is there any way to hide/show image that stored specificly in ui.lua? i want it to stay there, because its an interface that must be shown across all screens
or am i doing something wrong, and this kind of interface must be done another way?
thanks anyway)
views:1459 update:2011/10/15 14:27:43