Copy link to clipboard
Copied
Works fine when I compile .. not working on an iOS device. Is there any way around this ?
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 ?
Copy link to clipboard
Copied
Can you provide the code or source files that you are using?
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;
}