Foros del Web » Creando para Internet » Flash y Actionscript »

Uso de la tecla TAB en formulario

Estas en el tema de Uso de la tecla TAB en formulario en el foro de Flash y Actionscript en Foros del Web. Pasa esto, tengo un formulario, pero también tengo un menu de opciones al lado izquierdo del menú.. el asunto es que quiero que cuando alguien ...
  #1 (permalink)  
Antiguo 20/08/2002, 23:56
 
Fecha de Ingreso: diciembre-2001
Ubicación: Morelia, México.
Mensajes: 312
Antigüedad: 22 años, 4 meses
Puntos: 0
Uso de la tecla TAB en formulario

Pasa esto,

tengo un formulario, pero también tengo un menu de opciones al lado izquierdo del menú.. el asunto es que quiero que cuando alguien presione la tecla TAB pueda ir avanzando dentro del formulario, sin embargo también pasa por los botones del menú. Flash MX tiene algo para poder organizar el orden de esos TABs o por lo menos para excluirlo en los botones. GRACIAS!
  #2 (permalink)  
Antiguo 21/08/2002, 14:38
 
Fecha de Ingreso: diciembre-2001
Ubicación: Morelia, México.
Mensajes: 312
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: Uso de la tecla TAB en formulario

Alguien, por favor, que sepa algo para poder ordenar el recorrido de la tecla TAB en un formulario.

GRACIAS!!
  #3 (permalink)  
Antiguo 22/08/2002, 19:24
 
Fecha de Ingreso: diciembre-2001
Ubicación: Morelia, México.
Mensajes: 312
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: Uso de la tecla TAB en formulario

??
  #4 (permalink)  
Antiguo 22/08/2002, 22:38
 
Fecha de Ingreso: mayo-2001
Mensajes: 452
Antigüedad: 22 años, 11 meses
Puntos: 1
Re: Uso de la tecla TAB en formulario

Le pones un nombre de instancia a cada campo (NO NOMBRE DE VARIABLE) sino de instancia (el cuadro de texto de la izq. NO el de la derecha)....

por ejemplo:
fld001
fld002

y en algun frame, le colocas:
fld001.tabIndex = 1
fld002.tabIndex = 2
fld003.tabIndex = 3

etc. esto tambien podrias hacerlo con un ciclo for.
Si quiers que el tabulador pase por un boton o una movie clips, pues con la misma notacion punto puedes asignarle la propiedad.

Dale "tabIndex" en el search de flash y veras la ayuda, entre otras cosas:
Description


Property; lets you customize the tab ordering of objects in a movie. You can set the tabIndex property on a button, movie clip, or text field instance; it is undefined by default.

If any currently displayed object in the Flash movie contains a tabIndex property, automatic tab ordering is disabled, and the tab ordering is calculated from the tabIndex properties of objects in the movie. The custom tab ordering only includes objects that have tabIndex properties.

The tabIndex property must be a positive integer. The objects are ordered according to their tabIndex properties, in ascending order. An object with a tabIndex of 1 precedes an object with tabIndex 2. If two objects have the same tabIndex value, the one that precedes the other in the tab ordering is undefined.

The custom tab ordering defined by the tabIndex property is flat. This means that no attention is paid to the hierarchical relationships of objects in the Flash movie. All objects in the Flash movie with tabIndex properties are placed in the tab order, and the tab order is determined by the order of the tabIndex values. If two objects have the same tabIndex value, the one that goes first is undefined. You shouldn't use the same tabIndex value for multiple objects.


  #5 (permalink)  
Antiguo 17/10/2003, 14:36
Avatar de cvander
Moderador
 
Fecha de Ingreso: abril-2001
Ubicación: Ciudadano del mundo
Mensajes: 13.638
Antigüedad: 23 años
Puntos: 1792
Justo lo que estaba buscando. Gracias jasistemas.
__________________
- Christian Van Der Henst
Platzi
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:43.