I'm using LuaAlchemy with AS3 and am currently trying to call global function in lua script. Running whole script file works perfectly, but when I try to call callGlobal(), I get Lua error: attempt to call a nil value.
function call:
lua_interpreter.callGlobal("func",3)
lua script:
function func(a)
return a
end