5 Replies Latest reply on Feb 10, 2011 6:22 PM by Flex harUI

    focus stays when change view

    Starlover_jacob Level 1

      Hello,

       

      I have a viewstack with 2 views.

      In view 1 is a textinput.

      In view 2 is an image.

       

      when i startup my application, view 1 is shown.

      I type an a in the textinput.

      Now i press a button and it goes to view 2.

      I type bcd.

      I close this view to return to view 1, and what i see is in my textinput shows bcd as value.

       

      I tried to kill the focus when i press the button to change view but it doesn't work.

      Please some help.

       

      Code i tried:

      this.stage.focus=null;
      Application.application.focusManager.deactivate();
      this.focusmanager=null;
      this.focusEnabled=false;
      this.focusManager.deactivate();