Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

type="email" for AS3?

Guest
Sep 01, 2013 Sep 01, 2013

Gidday

In HTML5, clicking in an input text field that is of type="email", makes mobile devices show a keyboard specifically for entering emails. Is it possible to do the same for a text field in AS3 when designing an AIR app for iOS/Android?

Cheers

TOPICS
ActionScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 01, 2013 Sep 01, 2013

using an input textfield should trigger the keyboard when it receives focus

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 01, 2013 Sep 01, 2013

Hey mate

It triggers the keyboard, but there are two types of keyboard you can trigger with HTML5 - the regular one, and one that is set up for entering emails - it has the @ key, and the . key. I'm wondering how you trigger the latter with AS3.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Sep 02, 2013 Sep 02, 2013

I doubt that every mobile device has these two types of keyboard. there are literally thousands of different android devices (phones/tablets) that implement these things differently (I have for example a Toshiba Thrive Tablet and never encountered such a "special" keyboard), you should stick to the one this special device defaults to, since that is what the user of this device expects.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 02, 2013 Sep 02, 2013

You're quite right - but HTML5 displays the field as type="text" if type="email' is not supported - I was wondering if AS3 has something similar?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 02, 2013 Sep 02, 2013

Hello,

You can use StageText to resolve your issue on mobile

Please take reference from http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/StageText.html#softKey...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2013 Sep 07, 2013
LATEST

Thanks for that. I had a play and can get the input text to show on the desktop, but not on the phone, so I'll delve into it a bit more soon to figure it all out. Cheers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines