…I was the last week. With the damn text field. But now I have a solution and it is so simple. It is always simple. If you want your Playbook app to have a text field in which the user can write text as much as he can think of:
Just use the flash.text.TextField.
It doesn’t look as good and native as the TextArea from the community library but you can apply TextFormats. And that is important! So your code can look like:
var text:TextField = new TextField();
text.type = TextFieldType.INPUT;
text.x = 100;
text.y = 100;
text.width = 500;
text.height = 500;
this.addChild(text);
and there it is your frigging TextField! If your application has a dark background you should give your TextField a background and a color for it:
text.background = true;
text.backgroundColor = 0xFFFFFF;
or get your font a nice color…
Ok, last time (and the first time) I wrote that I want to start with programming for the playbook. It won’t be something serious but in the end there should be a program I can be proud of and other people want to use it.
For my idea I need a textfield. To be more precise: I need a multiline textfield and users should be able to enter and edit text. And here is the problem: There is no native multiline textfield for the AIR API, there is no multiline textfield for the native sdk and with WebWorks you have a textfield but it is not really native. So when you want to write a AIR application for the playbook you can use the original AIR textfield (then you have to hack around it so the user gets the keyboard) or you have to use a extern community library.
So my question is what is this RIM? Do you want to get some developer for your device?? If so, where is the support? Oh man, I hope they get the right directions in the future, till then I have to use the community library…. and I hope the next time I can write about my progress and don’t have to rant.