I migrating from an HTML/Flash app previously built to an all
FLEX app. The previous app ran a db query through AJAX to an ASP
script and returned the results (basically a list of names) as a
series of forms (each name was essentially it's own form), which,
single result looked like this:
form to the cgi script.
I have the FLEX app calling the same ASP script and
returning the same results to a TextArea, but what I want is
want it to be a flex text field and have them fire some AS Function
which will perform the same action as my "old" app. I guess the
question is, can I build FLEX controls on the fly?
You can definitely create Flex controls during run time. All
you have to do is to instantiate the component and add it to
container. I created a very simple sample code which adds a
TextArea at runtime. Please find the sample code attached.
private function addTextArea():void
var txt:TextArea = new TextArea();
txt.text = "Hi this is added at run time";
<mx:Button label="Add text area"