bright-gpu-74537
05/18/2021, 4:49 PMmost-caravan-45834
05/18/2021, 4:50 PMmost-caravan-45834
05/18/2021, 4:51 PMxml
<zoom-selector max="1" min="8" />
How do I access max and min in code?bright-gpu-74537
05/18/2021, 4:51 PMbright-gpu-74537
05/18/2021, 4:51 PMmost-caravan-45834
05/18/2021, 4:51 PMmost-caravan-45834
05/18/2021, 4:52 PMbright-gpu-74537
05/18/2021, 4:52 PMmost-caravan-45834
05/18/2021, 4:52 PMmost-caravan-45834
05/18/2021, 4:53 PMhaxe
@:bind(zoomLabel, UIEvent.CHANGE)
function someFunc(e) {
onChange(e);
}
But it didn't workbright-gpu-74537
05/18/2021, 4:54 PMhaxe
@:bind(zoomLabel, UIEvent.CHANGE)
function someFunc(e) {
dipatch(e);
}most-caravan-45834
05/18/2021, 4:54 PMbright-gpu-74537
05/18/2021, 4:55 PMbright-gpu-74537
05/18/2021, 4:56 PMregisterEvent("somevent", function(e) { }, true) (last param being "bubbles")bright-gpu-74537
05/18/2021, 4:56 PMmost-caravan-45834
05/18/2021, 4:58 PMhaxe
@:bind(zoomLabel, UIEvent.CHANGE)
function someFunc(e)
{
...
}
This function is not being called when the text of the label changesmost-caravan-45834
05/18/2021, 4:58 PMbright-gpu-74537
05/18/2021, 5:05 PMbright-gpu-74537
05/18/2021, 5:08 PMbright-gpu-74537
05/18/2021, 5:08 PMbright-gpu-74537
05/18/2021, 5:09 PMbright-gpu-74537
05/18/2021, 5:09 PMmost-caravan-45834
05/18/2021, 5:11 PMmost-caravan-45834
05/18/2021, 6:06 PMmost-caravan-45834
05/18/2021, 6:07 PMhaxe
dispatch(new UIEvent(UIEvent.CHANGE, false, this));most-caravan-45834
05/18/2021, 6:08 PMbright-gpu-74537
05/18/2021, 6:12 PMbright-gpu-74537
05/18/2021, 6:12 PMbright-gpu-74537
05/18/2021, 6:12 PMdispatch(new UIEvent(UIEvent.CHANGE, this));bright-gpu-74537
05/18/2021, 6:13 PM