is it possible to call phone (not number but phone) keyboard from adobe air on ipa IOS? or is there any ANE?
Asked
Active
Viewed 176 times
1 Answers
0
Here's an example that uses the numeric keyboard and restricts the input to numbers:
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.geom.Rectangle;
import flash.text.ReturnKeyLabel;
import flash.text.SoftKeyboardType;
import flash.text.StageText;
public class StageTextNumber extends Sprite
{
public function StageTextNumber()
{
var text:StageText = new StageText();
text.softKeyboardType = SoftKeyboardType.NUMBER;
text.restrict = "0-9";
text.returnKeyLabel = ReturnKeyLabel.GO;
text.stage = this.stage;
text.viewPort = new Rectangle(10, 10, 300, 40 );
}
}
}

Koby Douek
- 16,156
- 19
- 74
- 103
-
yes I know SoftKeyboardType.NUMBER, but with this I can't type #+* symbols – Hattori Hanzō Apr 26 '17 at 07:36
-
2@VakhtangiBeridze I know, but that is the only possibility in AIR. – Koby Douek Apr 26 '17 at 07:43