bennyxqg / lua-alchemy

Automatically exported from code.google.com/p/lua-alchemy
0 stars 0 forks source link

Call lua_wrapper.luaClose() on app exit #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In all demos call find a way to close Lua state correctly when swf is
closed, so as3.on_close() would actually work.

Original issue reported on code.google.com by aglad...@gmail.com on 6 Jan 2009 at 1:41

GoogleCodeExporter commented 9 years ago
Flash doesn't reliably call anything when a Flex application is closed so the
intention of this function is to do cleanup when you are creating and closing
LuaAlchemy objects numerous times during a single instance of Flash. The 
cleanup is
less important on shutdown of Flash since everything is stopped and all memory 
is
recovered.

Commented here
http://code.google.com/p/lua-alchemy/wiki/LuaToAs3Interface

Original comment by rstehw...@gmail.com on 16 Jan 2009 at 1:48