Hi all, I have a TitleWindow with a TextInput and 2 buttons and i need that when Enter key is pressed it works like tab key. I try the following code but i receive a null
public function initForm():void { tfNome.setFocus(); this.addEventListener(KeyboardEvent.KEY_DOWN, enterNextFocus); } private function enterNextFocus(event:KeyboardEvent) : void { if (event.keyCode == 13) { this.focusManager.setFocus(this.focusManager.getNextFocusManagerComponent()); this.focusManager.showFocus(); } } The problem is here this.focusManager.getNextFocusManagerComponent() return null