0
A
回答
0
下面是一个使用数字键盘,并限制输入的数字为例:
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);
}
}
}
相关问题
- 1. Adobe Air Browser
- 2. Adobe AIR readLine
- 3. Adobe Air和.NET
- 4. Adobe Air的DeviceOrientationEvent
- 5. Adobe air http auth
- 6. Adobe AIR锁定
- 7. Adobe Air Javascript API
- 8. Adobe Air - window.nativeWindow undefined
- 9. Adobe Air和PHP
- 10. Adobe Air for iPhone
- 11. Adobe AIR&PHP + MySQL
- 12. Adobe Air with Iphone
- 13. Adobe Air 23 + iOS 10.1.1全屏
- 14. Adobe Air IOS中的黑色边框
- 15. CodeSign验证失败 - Adobe Flash AIR iOS
- 16. Adobe Flex/AIR Maven集成
- 17. Adobe AIR,内存泄漏
- 18. Adobe Air Mobile启动
- 19. Adobe AIR加载问题
- 20. Adobe Air应用程序
- 21. Adobe AIR - RTMFP错误
- 22. Adobe AIR的 - 与参数
- 23. Adobe Air - KeyboardEvent错误
- 24. Adobe Air 1.5.2和Flash Builder
- 25. Adobe AIR EncryptedLocalStore问题
- 26. Adobe Air GUI问题
- 27. Adobe Air - MySQL或SQLite
- 28. Adobe Air新项目
- 29. Adobe Air - IP到位
- 30. Adobe Air问题/资源
是的,我知道SoftKeyboardType.NUMBER,但这个我不能键入#+ *符号 –
@VakhtangiBeridze我知道,但这是AIR中唯一的可能性。 –