Jan 2, 2015 at 11:38 AM
Edited Jan 2, 2015 at 11:42 AM
I have a slightly different problem:
this.objectBehind.Led1 = 1;
How do I do that?
By the way, my jint 2.4.0 does not have the Engine.GetGlobalValue method?
engine.Execute("var myPanel = new Panel()");
JsValue blockAsScript = engine.GetValue("myPanel");
Block block = new Block();//object behined
engine.SetValue(myPanel.objectBehind", block);//set it
engine.SetValue("block", block);//first register the c# object as known var "block"
engine.Execute("myPanel.objectBehind = block;");//assign block to new object myPanel
What do I do wrong here?
Is there an explicit API to create java script objects, other then Engine.Excecute?
Or do I need to do it like this?
JsValue newObject = engine.Execute("new Panel()").GetCompletionValue();