Reputation: 57
I am making a mobile app with adobe air 3.9 and in the registration form, I wish to make email text-field have a keyboard or soft-keyboard type as email (i.e. having a button for ".com" and "@" in the soft-keyboard)and age to have numbers only.
I see some helps around but none gets me a clear idea.
Can anyone help me with a quick tutorial or a code snippet.
Thanks Saurabh
Upvotes: 1
Views: 2359
Reputation: 651
Use NativeText, look here for the great article: http://blogs.adobe.com/cantrell/archives/2011/09/native-text-input-with-stagetext.html
Upvotes: 1
Reputation: 1238
Just be aware there are two SkinClasses
for TextInput
and TextArea
, MobileSkin
and StageSkin
. StageSkin
can control the softkeyboard, but has scaling issues. MobileSkin
can't control the softkeyborad, but doesn't have scaling issues. Follow this bug and related issues for more info about that.
Upvotes: 0