Solved

Focus on tab or shift tab

Posted on 2008-10-19
4
1,030 Views
Last Modified: 2013-11-11
Lets say you have two text boxes with the name txtUsername and txtPassword.  Using ActionScript 3 how do you change focus to password when tab is pressed or even shift tab to go up to username.  

I am looking at the FocusManager documentation but i can't get it to work.  Any examples
0
Comment
Question by:stargateatlantis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 22752688
you Just need to add following code:


txtUsername.tabIndex = 0;
txtPassword.tabIndex =1;


IMPORTANT:
To test the tab indexing in Flash authoring environment, you must "Disable Keyboard Shortcuts", see attached image for more details
disableKeyboardShortCuts.jpg
0
 

Author Comment

by:stargateatlantis
ID: 22753020
it doesn't work.  
0
 
LVL 34

Assisted Solution

by:Aneesh Chopra
Aneesh Chopra earned 500 total points
ID: 22753137
It does work perfectly,
I request to attach your sample file for review so that I can let you know the cause of the issue and as well as solution.
0
 

Author Comment

by:stargateatlantis
ID: 22788622
The reason its not working and i found out why but it would be good to disable.    I am loading a Animation file that was created in Flash 8.  For some reason the tabindex is getting lost from this.  Is there anyway to disable the tabindex on the loaded Animation.

var loadit = new Loader();
loadit.load(new URLRequest("loginnew.swf"));
mcCon.addChild(loadit);

Open in new window

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't get text from a text entry 13 299
IE 11 Flash Player issue 7 263
Windows 7, Adobe Flash Player and Internet Explorer 11 15 113
type of website 13 54
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…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

752 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