Automatically editing the size and having a flowing order for dynamic text boxes
I am inputting text from an xml file into dynamic text boxes; I have static text boxes as titles of each.
I need help with making the dynamic text boxes expand if the xml text is of a larger size & moving the static text boxes so they don't start getting over written.
The code I’ve used to put the text into the dynamic boxes is very simple:
var xmlData:XML = new XML ();
var theURL_ur:URLRequest = new URLRequest("xml.xml");
var loader_ul:URLLoader = new URLLoader(theURL_ur);
loader_ul.addEventListener("complete", fileLoaded);
function fileLoaded(e:Event):void
{
xmlData = XML(loader_ul.data);
Dummy_txt.text = xmlData.record1.Dummy;
Dummy_txt2.text = xmlData.record1.Dummy2;
}
E.g.