handsome-processor-40961
10/16/2020, 10:12 PMhandsome-processor-40961
10/16/2020, 10:13 PMonClick="function(e){myFunction();}" work or no way?bright-gpu-74537
10/16/2020, 10:14 PMbright-gpu-74537
10/16/2020, 10:14 PMhandsome-processor-40961
10/16/2020, 10:15 PMhandsome-processor-40961
10/16/2020, 10:15 PMbright-gpu-74537
10/16/2020, 10:16 PMbright-gpu-74537
10/16/2020, 10:17 PMhaxe
var btn = uiView.findComponent("btn1", Button).onClick = function(e) {
btn1_onClick()
};bright-gpu-74537
10/16/2020, 10:18 PMbright-gpu-74537
10/16/2020, 10:18 PMbright-gpu-74537
10/16/2020, 10:18 PMuiView.findComponent("btn1", Button).onClick = btn1_onClickhandsome-processor-40961
10/16/2020, 10:18 PMbright-gpu-74537
10/16/2020, 10:19 PMuiView.findComponent("btn1", Button).registerEvent(MouseEvent.CLICK, btn1_click) (this is the exact same thing)bright-gpu-74537
10/16/2020, 10:20 PMhandsome-processor-40961
10/16/2020, 10:20 PMbright-gpu-74537
10/16/2020, 10:20 PMbright-gpu-74537
10/16/2020, 10:21 PMhandsome-processor-40961
10/16/2020, 10:22 PMhandsome-processor-40961
10/16/2020, 10:22 PMbright-gpu-74537
10/16/2020, 10:22 PMhandsome-processor-40961
10/16/2020, 10:22 PMbright-gpu-74537
10/16/2020, 10:23 PMbright-gpu-74537
10/16/2020, 10:24 PMuiView.findComponent("btn1", Button).onClick = function(event) {
trace("clicked!");
}handsome-processor-40961
10/16/2020, 10:24 PMbright-gpu-74537
10/16/2020, 10:24 PMbright-gpu-74537
10/16/2020, 10:24 PMhandsome-processor-40961
10/16/2020, 10:25 PMbright-gpu-74537
10/16/2020, 10:25 PMuiView.findComponent("btn1", Button).onClick = function(event) {
btn1_onClick()
}bright-gpu-74537
10/16/2020, 10:25 PMbtn1_onClick and just use it directly