Use cast for this, node.getComponent(cast cc.Button);
© 2018-2020 Haxe Foundation - Powered by Discourse