1 Reply Latest reply on Nov 22, 2010 9:44 AM by Tanu Jain

    focus issue

    bindu84 Level 1

      We're working on some projects in Flex where the use of the keyboard to navigate through the application is a key aspect.
      Our goals were :
      - at the start up of the application give the focus to the first form field
      - pressing the tab key cycling the focus through all the form fields

      - although when the application has been loaded the foucs was on the first field, pressing the tab key once, the focus goes outside the Flash Player applet to the browser controls

        • 1. Re: focus issue
          Tanu Jain Level 2

          On creationComplete event, manually set focus to one of the control/button like

             

          <mx:Form creationComplete="submit.setFocus();">
                  <mx:Button id="submit" />
                  <s:Button />                  
              </mx:Form>

           

          Tab key should work in proper order then

           

          --

          Tanu