The following explains how to execute the function we exposed in the Flash UI ActionScript, with a parameter to alter the value shown in the textbox using visual scripting nodes; these nodes are are generated by reading the UI Elements XML we've previously modified in this tutorial.
For this we will take the UI element that we displayed in Chapter 3 - UI Elements and then extend the functionality using the function we defined in the UI Element XML itself.
Follow the steps below to execute your function to set the value shown in the dynamic textbox of the UI Element:
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.
Upon entering Game mode in the Sandbox Editor, you should see the UI display "Score: 0". After pressing the F key, you should see your new value shown in the UI score.
Press the F key to update the score