kind-policeman-40412
07/30/2020, 2:09 AMkind-policeman-40412
07/30/2020, 2:10 AMfast-rain-20339
07/30/2020, 2:10 AMsetEditor(editor)
in my XML component's haxe class. I use that to pass in the variable from a parent class, referring to my class by id.fast-rain-20339
07/30/2020, 2:10 AMfast-rain-20339
07/30/2020, 2:11 AMfast-rain-20339
07/30/2020, 2:11 AMfast-rain-20339
07/30/2020, 2:11 AMfast-rain-20339
07/30/2020, 2:14 AMfast-rain-20339
07/30/2020, 2:14 AMfast-rain-20339
07/30/2020, 2:14 AMfast-rain-20339
07/30/2020, 2:15 AMkind-policeman-40412
07/30/2020, 2:15 AMkind-policeman-40412
07/30/2020, 2:16 AMkind-policeman-40412
07/30/2020, 2:17 AMparams
you can pass into ComponentMacros.buildComponent() which is unrelated to component context.kind-policeman-40412
07/30/2020, 2:18 AMkind-policeman-40412
07/30/2020, 2:18 AMkind-policeman-40412
07/30/2020, 2:28 AMfast-rain-20339
07/30/2020, 2:40 AMfast-rain-20339
07/30/2020, 2:40 AMfast-rain-20339
07/30/2020, 2:41 AMmyXMLComponents = ComponentMacros.buildComponent(...)
var a = 1
myXMLComponents.theButtonID.onClick = function () { trace(a); };
kind-policeman-40412
07/30/2020, 2:42 AMkind-policeman-40412
07/30/2020, 2:43 AMkind-policeman-40412
07/30/2020, 2:44 AMfast-rain-20339
07/30/2020, 2:44 AM<button id="theButtonID" text="My button that prints a" />
kind-policeman-40412
07/30/2020, 2:44 AMkind-policeman-40412
07/30/2020, 2:45 AMkind-policeman-40412
07/30/2020, 3:11 AMbuildComponent
method returns a Box instance which apparently does not have my joinButton
property which results in Uncaught exception - Invalid field access : onClick
on joinButton which is null.fast-rain-20339
07/30/2020, 3:12 AMjoinButton
appears in autocomplete?kind-policeman-40412
07/30/2020, 3:13 AMfast-rain-20339
07/30/2020, 3:13 AM