I'm making a game using HaxeUI. I've designed a simple UI using XML definition. I need the button to execute a code that is unrelated to the UI elements, however, the parsed code from onClick property does not see any local identifiers defined in the area, in which the interface is being built.
How to work around this without the necessity to refrain from using XML definition?