This one has bitten me many times, so that's why I remember it!

Anyway, it would make more sense to start with 0, since almost everything
else (arrays, string indexes) is 0 based.

Cheers
Juan Pablo Califano


2009/3/1, Gerry <[email protected]>:
>
> This is true. I started with 0 which is incorrect, I've been working with
> Arrays this week so a 0 index slipped in there.
>
> -Gerry
>
> On Mar 1, 2009, at 7:53 AM, Juan Pablo Califano wrote:
>
> Hi,
>>
>> I'm almost certain that tabIndex is 1-based not 0-based, so it should be:
>>
>> txtName.tabIndex = 1;
>> txtEmail.tabIndex = 2;
>> txtAddress.tabIndex = 3;
>> txtCity.tabIndex = 4;
>>
>> Also, Cor, when testing inside the IDE, you should check "disable keyboard
>> shortchuts" in the control menu; otherwise, the IDE will trap the many of
>> the key presses.
>>
>> Cheers
>> Juan Pablo Califano
>>
>>
>> 2009/2/28, Gerry <[email protected]>:
>>
>>>
>>> You can look up focus (stage.focus = txtName; ), that will allow you to
>>> set
>>> which textfield has focus and for tabbing use
>>> tabIndex like this.
>>>
>>> txtName.tabIndex = 0;
>>> txtEmail.tabIndex = 1;
>>> txtAddress.tabIndex = 2;
>>> txtCity.tabIndex = 3;
>>>
>>>
>>> -Gerry
>>>
>>> On Feb 28, 2009, at 3:19 AM, Cor wrote:
>>>
>>> Hi Keith,
>>>
>>>>
>>>> I think I have put it wrong in my question.
>>>> When running in the IDE is discards several, like: q,e,r,t,  but the w
>>>> is
>>>> accepted.
>>>> When I run in in html it accepts nothing.
>>>>
>>>> But in both cases when I first click the textfield the give it the focus
>>>> it
>>>> works as expected.
>>>>
>>>> So my problem really is: How to give the textfield the focus on start?
>>>> And additional when I have a second textfield, how can I make is change
>>>> from
>>>> one to the other using the TAB key?
>>>>
>>>> Kind regards
>>>> Cor
>>>>
>>>> _______________________________________________
>>>> Flashcoders mailing list
>>>> [email protected]
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>
>>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to