Hey Everyone,
Im working on a project which requires a dynamic textfield. I am developing on MAC with Flahs Builder 4.
The problem i have is my input is not recognised by the textfield. It seems like only a few keys actually work:
I can also paste by using the cmd + v command.
The code i am using for my textfield is below:
Code:
private function setTextField():TextField{
var textfield:TextField = new TextField();
textfield.x = 100;
textfield.y = 100;
textfield.width = 216;
textfield.border = true;
textfield.type = "input";
textfield.multiline = true;
textfield.wordWrap = true;
textfield.selectable = true;
textfield.addEventListener(KeyboardEvent.KEY_DOWN, textfieldKeyDownHandler);
return textfield;
}
I have looked on various sites and blogs but I have not come across this issue and I don't understand where i am going wrong here.
Any help would be appreciated.
Regards,
-Ben