Hi,
// Call Function
var eventHandler = new cc.Component.EventHandler();
eventHandler.target = newTarget;
eventHandler.component = “MainMenu”;
eventHandler.handler = “OnClick”
eventHandler.emit([“param1”, “param2”, …]);
If I have a node under canvas, example: hudgraphicnode, how can I target such node via the eventHandler.target = newTarget. I’m trying to target a node in the canvas, that has a component ( example.js ), which in turn has a handler / function ( examplefunction ).… Would appreciate any feedback / help…Thanks for your time and God Bless…
Sincerely,
Sunday