Skip to main content
February 14, 2013
Answered

Enter number on AIR for Android. How ?!

  • February 14, 2013
  • 1 reply
  • 1409 views

Hello,

I have TLF Text Editable with the name of sID. How i can add event handler to display number panel on Android & make the user to enter a number...?!

Regards,

This topic has been closed for replies.
Correct answer Chris W. Griffith

Actually you should avoid TLF in mobile for performance reasons.

Take a look at StageText (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/StageText.html). Here is nice intro to using it: http://blogs.adobe.com/cantrell/archives/2011/09/native-text-input-with-stagetext.html

Chris Griffith

1 reply

Chris W. Griffith
Community Expert
Chris W. GriffithCommunity ExpertCorrect answer
Community Expert
February 15, 2013

Actually you should avoid TLF in mobile for performance reasons.

Take a look at StageText (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/StageText.html). Here is nice intro to using it: http://blogs.adobe.com/cantrell/archives/2011/09/native-text-input-with-stagetext.html

Chris Griffith

February 16, 2013

thanks Mr. Griffith but i really don't get it. I know there is alot of propety and classes but i don't know how to use it. Can you explain it to me. please ?!

Regards,

February 16, 2013

Ok, I have create StageText using the code below:

var myTextField:StageText = new StageText();

myTextField.stage = stage;

myTextField.viewPort = new Rectangle(0, 0, 100, 30);

I have to questions:

1) How to add border to the Rectangle...?!

2) can i add StageText into MovieClip...?!

Regards,