how do I pass lua table to as3 and back to lua?

29 views
Skip to first unread message

zlatko...@gmail.com

unread,
Nov 20, 2013, 5:58:25 PM11/20/13
to lua-alc...@googlegroups.com
I want to call as3 function from lua and pass lua object as argument (Main is global lua object set from as3)

Main.foo(luaobject)

in Main.as I have

public function foo(arg:*){

}

when I call Main.foo(luaobject) I get just a string "table" passed as argument. I am trying to get the lua table object that I can send back to lua. Is that possible? Can I get this lua object from lua stack somehow? 
Reply all
Reply to author
Forward
0 new messages