Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/10/2013, 22:53
javier1359
 
Fecha de Ingreso: octubre-2013
Mensajes: 5
Antigüedad: 10 años, 7 meses
Puntos: 0
Respuesta: tabulacion automatica

gracias pplucho07

el código me funciono bien solo que cuando quiero regresarme a tuPrimerCampo
ya no puedo por que tuPrimerCampo.length == 4


lo que hice fue:


Selection.setFocus(tuPrimerCampo);
tuPrimerCampo.tabIndex = 1;
tuSegundoCampo.tabIndex = 2;
ban = 0;

onEnterFrame = function(){

if(ban == 0 && tuPrimerCampo.length == 4){
Selection.setFocus(tuSegundoCampo);
Selection.setSelection(tuSegundoCampo.text.length, tuSegundoCampo.text.length);
ban = 1;
}

}

pero es una chicanada, no se si hay una forma correcta de hacerlo.

gracias.