Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 17:59
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  General Conversation (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis, Mattias Robo)
| | |-+  Disabling the <Tab> function ::::.........::... HOW?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Disabling the <Tab> function ::::.........::... HOW?  (Read 1714 times)
dina
Server what's that
*
Posts: 17



View Profile Email
« on: 02/23/02, 01:22 »

does any one know how to disable the tab function in the input text field?

Your ideas have always helped.
Dina
« Last Edit: 02/23/02, 21:33 by dina » Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 02/25/02, 21:49 »

To turn off the Tab function or control what the tab order is for certain text area's you can use something like this:

on (keyPress "<Tab>") {
  if (Key.isDown(Key.TAB)) {
     var curField = Selection.getFocus();
     curField = curField.substr(curField.LastIndexOf(".")+1);
     if (curField == "TexTFieldName1") {
        Selection.setFocus("TexTFieldName2");
     } else {
        Selection.setFocus("TexTFieldName1");
     }
  }
}

This will Tab between TextFieldName1 and TextFieldName2.  This will only allow tabbing on those two text area's and the movie will not tab to any other buttons or text areas.

You could use something similiar to get rid of all tabs altogether - but in most cases you have a couple of text fields that you need to tab to.
Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything