static void Test2() { Avm.Class klass = Avm.Class.Find("Utils", "Msg"); Utils.Msg msg = (Utils.Msg)klass.CreateInstance(); msg.value = "aaa"; Console.WriteLine(msg.value); }
static void Test1() { Avm.Class klass = Avm.Class.Find("", "Object"); Avm.Object obj = (Avm.Object)klass.CreateInstance(); obj.SetProperty("a", "1"); Console.WriteLine(obj.GetProperty("a")); }
public EmbedTest() { BitmapAsset img = (BitmapAsset)BgClass.CreateInstance(); Graphics g = graphics; g.beginBitmapFill(img.bitmapData); g.drawCircle(100, 100, 100); g.endFill(); img = (BitmapAsset)BgClass2.CreateInstance(); g.beginBitmapFill(img.bitmapData); g.drawRect(220, 10, 100, 100); g.endFill(); }