Create a MOUSE_CLICK listener and in callback put this in general
function click(event:MouseEvent):void {
var tf:TextField=new TextField();
tf.defaultTextFormat=someTF;
tf.x=event.mouseX;
tf.y=event.mouseY - tf.height / 2;
addChild(tf);
//here should be some focus handling code
}
I wanted to know if it is possible to save the data (text field x y coordinates, text data, formatting…) externally and then reload at a later date? If it is possible to save the information/data can it be loaded via XML?