My code adds a hanler via an eventListener to a ViewStack component at Initialization, but when I run my application and change the view, the handler never gets triggered.
However if I add the Handler inside the <ViewStack> tag it works.
Any idea about what the problem could be?
Okay, I found the problem myself. Looks like the type of event shoud be IndexChangedEvent.CHANGE and not IndexChangedEvent.CHILD_INDEX_CHANGE, so that is why the handler was never triggered.