Working with Tab Order : tab « TextField « Flash / Flex / ActionScript






Working with Tab Order

 


package{
  import flash.display.Sprite;
  import flash.text.*;    
  public class Main extends Sprite{
    public function Main(){
        var tEmail:TextField = new TextField();
        tEmail.border = true;
        tEmail.type = "input";
        tEmail.tabIndex = 1;
        
        var tPostalCode:TextField = new TextField();
        tPostalCode.border = true;
        tPostalCode.type = "input";
        tPostalCode.tabIndex = 2;

        addChild(tEmail);
        addChild(tPostalCode);
    }
  }
}

        








Related examples in the same category

1.Set tabStops