Solved

tab to next component textfield

Posted on 2006-10-19
1
153 Views
Last Modified: 2010-04-03
I have 4 component textboxes and when the user enters in 4 characters in each textfield, I want to tab to the next textfield.  How would you do that?   Also, how can I convert what the user is typing into all caps (numbers would also be included)?
0
Comment
Question by:COwebmaster
1 Comment
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 17772158
Hi, a nice tidy way to do it would be in an array, for this example i'm using a button to call the function, i'm assuming you're not want to be lstening the whole time for textfield changes.

var textboxesArray:Array = new Array("textbox1", "textbox2", "textbox3", "textbox4"); //parse the instance names of your textboxes.
function doIt() {
      trace(textboxesArray.length+"test");
      for (var i = 0; i<textboxesArray.length; i++) {
            eval(textboxesArray[i]).tabEnabled = true;
            eval(textboxesArray[i]).tabIndex = i+1;
            var textBoxValue:String = eval(textboxesArray[i]).text;
            trace(textBoxValue.toUpperCase()); //this is the upper case bit.
      }
}
test_btn.onRelease = function() {
      doIt();
};
 

i have tested teh code and it works.
blu.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now