• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

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

295

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
community guidelines
Engaged ,
Jun 06, 2014 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 ?

Votes

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
community guidelines
Guest
Jun 09, 2014 Jun 09, 2014

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Engaged ,
Jun 09, 2014 Jun 09, 2014

Copy link to clipboard

Copied

LATEST

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;

}

Votes

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
community guidelines