/// <summary> /// Default constructor /// </summary> public FlashAlchemyEcho() { var c = new cmodule.FlashAlchemyEcho.CLibInit(); var x = new DynamicContainer.Delegates { Subject = c.init() }; var t = new TextField { multiline = true, text = "powered by jsc", background = true, x = 20, y = 40, width = 300, alwaysShowSelection = true, }.AttachTo(this); t.text = x.ToConverter<string, string>("echo")("goo"); //var echo = x["echo"] as Function; //var a = new ScriptCoreLib.ActionScript.Array(); //a.push("yo"); //t.text = (string)echo.apply(x.Subject, a); //t.text = echo.GetType().ToString(); //t.text = x.Invoke<string, string>("echo", "foo"); KnownEmbeddedResources.Default[KnownAssets.Path.Assets + "/Preview.png"].ToBitmapAsset().AttachTo(this).MoveTo(100, 200); }
/// <summary> /// Default constructor /// </summary> public FlashAlchemyEcho() { var c = new cmodule.FlashAlchemyEcho.CLibInit(); var x = new DynamicContainer.Delegates { Subject = c.init() }; var t = new TextField { multiline = true, text = "powered by jsc", background = true, x = 20, y = 40, width = 300, alwaysShowSelection = true, }.AttachTo(this); t.text = x.ToConverter <string, string>("echo")("goo"); //var echo = x["echo"] as Function; //var a = new ScriptCoreLib.ActionScript.Array(); //a.push("yo"); //t.text = (string)echo.apply(x.Subject, a); //t.text = echo.GetType().ToString(); //t.text = x.Invoke<string, string>("echo", "foo"); KnownEmbeddedResources.Default[KnownAssets.Path.Assets + "/Preview.png"].ToBitmapAsset().AttachTo(this).MoveTo(100, 200); }