Highlighted

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

Engaged ,
Jun 05, 2014

Copy link to clipboard

Copied

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

TOPICS
Development

Views

222

Likes

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

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

Engaged ,
Jun 05, 2014

Copy link to clipboard

Copied

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

TOPICS
Development

Views

223

Likes

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
Jun 05, 2014 0
Engaged ,
Jun 06, 2014

Copy link to clipboard

Copied

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 ?

Likes

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
Reply
Loading...
Jun 06, 2014 0
Engaged ,
Jun 09, 2014

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Jun 09, 2014 0
Engaged ,
Jun 09, 2014

Copy link to clipboard

Copied

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;

}

Likes

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
Reply
Loading...
Jun 09, 2014 0