function putField(text:String, x:Number, y:Number, container:DisplayObjectContainer):void{ var txt:TextField = new TextField(); txt.text = text; txt.autoSize = TextFieldAutoSize.LEFT; txt.y = y; txt.x = x; container.addChild(txt); }