[url]http://bbs.9ria.com/viewthread.php?tid=72112&extra=page%3D1%26amp;orderby%3Ddateline%26amp;filter%3D86400[/url]
import luaAlchemy.LuaAlchemy;
import luaAlchemy.LuaAssets;
private var lua:LuaAlchemy
public function init():void
{
lua=new LuaAlchemy(LuaAssets.filesystemRoot());
lua.setGlobalLuaValue("luaDemo",this);
}
public function test(v:String):void{
trace("来自as:",v)
}
public function run():void{
var a:Array=lua.doString(input.text)
msg.text=a[0]?"成功执行":a[1];
}