A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: setting the tab order on textfields having problems

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    27

    [SOLVED]setting the tab order on textfields having problems

    PHP Code:
    pages.getNextHighestDepth(){
        
    this.createTextField("name_txt"this.getNextHighestDepth(), 101010022);
    one_txt.border true;
    one_txt.type "input";
    this.createTextField("email_txt"this.getNextHighestDepth(), 104010022);
    two_txt.border true;
    two_txt.type "input";
    this.createTextField("phone_txt"this.getNextHighestDepth(), 107010022);
    three_txt.border true;
    three_txt.type "input";
    this.createTextField("request_txt"this.getNextHighestDepth(), 1010010022);
    four_txt.border true;
    four_txt.type "input";

    one_txt.tabIndex 2;
    two_txt.tabIndex 3;
    three_txt.tabIndex 4;
    four_txt.tabIndex 1
    im trying to set the tab order for a group of text areas and it doesnt seem to be working with my coding above. the "pages" is the name of the movie clip where the textfields reside. im sure ive done it incorrectly can anyone smooth this out for me?
    Last edited by wsmith1979; 01-22-2008 at 11:09 PM.

  2. #2
    Junior Member
    Join Date
    Jan 2008
    Posts
    27
    figured it out

    pages.getNextHighestDepth()}
    this.createTextField("name_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
    one_txt.border = true;
    one_txt.type = "input";
    this.createTextField("email_txt", this.getNextHighestDepth(), 10, 40, 100, 22);
    two_txt.border = true;
    two_txt.type = "input";
    this.createTextField("phone_txt", this.getNextHighestDepth(), 10, 70, 100, 22);
    three_txt.border = true;
    three_txt.type = "input";
    this.createTextField("request_txt", this.getNextHighestDepth(), 10, 100, 100, 22);
    four_txt.border = true;
    four_txt.type = "input";

    one_txt.tabIndex = 1;
    two_txt.tabIndex = 2;
    three_txt.tabIndex = 3;
    four_txt.tabIndex = 4;
    that } wasnt supposed to be there

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center