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

iOS Numeric keypad

New Here ,
Jul 16, 2011 Jul 16, 2011

Copy link to clipboard

Copied

Hey guys!

I've been working with Flex / Flash Builder since a wile and I'm now starting to do some stuff with the new mobile platform.

I was wondering how to set an InputTextField to show the iPhone numeric keypad instead of the normal alphabetic keyboard.

There is a lot of things still hanging in my mind about Flash Builder and iOS such has keyboards, auto correction off, Data Pickers, Action Menus, Alerts, etc...

Where can I find documentation regarding all this things??

Luis Pedro Ferreira

Views

3.0K

Translate

Translate

Report

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
New Here ,
Aug 16, 2011 Aug 16, 2011

Copy link to clipboard

Copied

Luis - did you ever find out where the documentation is on the keypad? I have an application that uses numbers only in a text input. I've restricted the input to numbers but would prefer a numeric keypad or at least set the regular keyboard to the Symbols option.

Thanks

Ray

Votes

Translate

Translate

Report

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
Aug 16, 2011 Aug 16, 2011

Copy link to clipboard

Copied

Hi

restrict = "0-9"

or

restrict = ".0-9"

on a textInput

is the best I can find for this but it still will allow 0.9.5.6 if they want to enter that so you still have to error handle it.

Nige

Votes

Translate

Translate

Report

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
New Here ,
Aug 16, 2011 Aug 16, 2011

Copy link to clipboard

Copied

Thanks for this - yes I got the app to restrict itself to numbers only and that's a good start. I'm hoping to get more info about the keypad. I'll update this thread if I can find out more.

Ray

Votes

Translate

Translate

Report

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
Engaged ,
Aug 17, 2011 Aug 17, 2011

Copy link to clipboard

Copied

Did you try it on a device? There is a known bug with the "restrict" on iOS device.

I think it is possible in AIR 3.0. If you want something similar in AIR 2.7, you have to create your own "keypad" widget. It's not very complex, but it takes time...

Votes

Translate

Translate

Report

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
Aug 17, 2011 Aug 17, 2011

Copy link to clipboard

Copied

Drats, thats a pain. Is there a link to the solution? I'm currently battling with soap being very slow as its a real bind to compress, well seems impossible with a soap service added by adding data source with all the code compliled for you by flash builder.

Votes

Translate

Translate

Report

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
New Here ,
Aug 17, 2011 Aug 17, 2011

Copy link to clipboard

Copied

I am testing my routine on a Samsung Galaxy S and have no problems with the restrict feature. I haven't published it yet and it will be a very small target audience so may not find problems for some time. So as of now I am working under the assumption that all is okay with the restrict attribute. But as usual - time will tell. Thanks for the input on this - I will be watchful for it.

The numeric keypad would be a nice option though and that seems to be the challenge right now. I have an illustration of a CSS solution but couldn't find any code to support it. Will keep looking.

Cheers all

Ray

Votes

Translate

Translate

Report

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
Engaged ,
Aug 18, 2011 Aug 18, 2011

Copy link to clipboard

Copied

As I said, there is a bug on IOS device... Everything is fine on Android. On iOS, the restrict does nothing (you can type anything).

Votes

Translate

Translate

Report

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
New Here ,
Aug 18, 2011 Aug 18, 2011

Copy link to clipboard

Copied

Apologies for not reading thoroughly enough...... I think I've got it now

Ray

Votes

Translate

Translate

Report

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
New Here ,
Jan 25, 2012 Jan 25, 2012

Copy link to clipboard

Copied

LATEST

Looks like the next version of Flash Builder (4.6) will bring something new regarding this post.

However, it yould be nice to have an option to show or hide the decimal point where is normaly located on the bottom left space wich is an empty space.

This is possible with objective C from the 4.0 iOS version on the iPhone (I supode on iPad too)

Votes

Translate

Translate

Report

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