示例#1
0
 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);
 }
示例#2
0
 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"));
 }
示例#3
0
    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();
    }