I have a chat window on a chess game with one dynamic textfield, that shows the typed text, and one input textfield with an “ok” button.
The OK button have this code to activate when user press the “enter” key:
on(release, keypress "enter") {//Do action}
It was everything working perfectly, the problem showed up when I added the UiScrollBar component to scroll the dynamic textfield.
When I added the UiScrollBar to the library, the keypress “enter” event on the button works no more! If I delete the UiScrollBar component, keypress event come back working again!
Looks like everytime you add a mx component, some events get messed up!
Is there a way to avoid this problem?
Thanks