Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Focus on tab or shift tab

Posted on 2008-10-19
4
Medium Priority
?
1,033 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 2000 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

704 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