Skip to main content
Inspiring
June 5, 2014
Question

AIR for iOS .. TEXT_INPUT or event CHANGE on INPUT box not working ???

  • June 5, 2014
  • 1 reply
  • 358 views

Works fine when I compile ..  not working on an iOS device.  Is there any way around this ?

This topic has been closed for replies.

1 reply

Applauz78Author
Inspiring
June 6, 2014

Does anyone know whats up with this ?  I thought of using STAGE TEXT .. however Its not working in a build from Flash CC  .. ?    I can't really find anything online regarding this. Capturing a change to an input box in iOS seems like such a basic thing to do .. surely there must be a way to do it ?

June 9, 2014

Can you provide the code or source files that you are using?

Applauz78Author
Inspiring
June 9, 2014

I figured it out. You have to use Stage Text .. and you also have to put your listeners before you set up the viewport.

function showStageText():void{

myStageText = new StageText();

myStageText.addEventListener(KeyboardEvent.KEY_UP, keyUpEventHandler);

myStageText.addEventListener(Event.CHANGE, onStageTextChange);

myStageText.stage = stage;

myStageText.viewPort = new Rectangle(66, 59, 444.95, 40);

myStageText.returnKeyLabel = ReturnKeyLabel.SEARCH;

myStageText.editable = true;

myStageText.autoCorrect = false;

myStageText.stage = this.stage;

myStageText.maxChars = 100;

myStageText.text = "";

myStageText.color=0x8F8F94;

myStageText.fontWeight = FontWeight.NORMAL;

myStageText.fontSize = 30;

myStageText.assignFocus();

searchBoxTitleText.visible = false;

}