The final step of this tutorial will detail the necessary steps required to handle events posted from the UI Event that we exposed in the Flash UI ActionScript, with a value we set in the code, using visual scripting nodes; these nodes are generated by reading the UI Elements XML file we modified previously.
For this, we will take the UI element that we extended previously and add the functionality using the Event we defined in the UI Element XML, similar to how we hooked up the exposed function in Chapter 7 - Using the Exposed Function.
Follow the steps below to receive and display a debug message from the event that is triggered when a button is pressed:
It is not recommended to mix the Flow Graph and Schematyc (Experimental) approaches as them sharing UI Element instances can lead to confusing results and issues that are hard to track.