importToFlow with other configuration
Due to another helpful reply in this forum I finally have a single line editable textfield working.
Problem now is that I still need to set configuration options. I dont really fully understand the framework as yet.
Here is my code.
var config:Configuration = new Configuration();
config.manageEnterKey = false;
var textFlow:TextFlow = new TextFlow(config);
textFlow.interactionManager = new EditManager();
textFlow.fontFamily = "Arial";
textFlow.fontSize = 20;
textFlow.lineBreak = "explicit";
textFlow.flowComposer.addController(new DisplayObjectContainerController(sprite,width,height));
textFlow.flowComposer.updateAllContainers();
However I need to also set some other options on my field.
Firstly I need to set the initial text of the field. Before I was doing this " var textFlow:TextFlow = TextFilter.importToFlow(text, TextFilter.PLAIN_TEXT_FORMAT);" but now I cant seem to figure out how to use the importToFlow along with the configuration.
Secondly. I need to restrict the field to only allow 50 characters (Due to database limits etc). How do I do this?
Are there some good demo resources that show code in practise in common situations we would have normaly used an old standard "TextField" for.
I've been reading the http://livedocs.adobe.com/labs/textlayout/ docs but there seem to be few simple examples for newbies to this area. Unless you sort of know where to go its all a bit confusing.
Thanks in advance.
