title: how to capture the textinput value created dynamically in actionscript and flex?
body: <p>i have created textinput dynamically using actionscript but when i enter the input values from front end and save it into db (file) it is showing only the last values entered in db.
  plz help</p>
  
  <pre><code> for(var i:int=0;i&lt;5;i++){
          var txt1:TextInput=new TextInput();
      txt1.width=88;
      createtxtinput(txt1);
      txt1.addEventListener(Event.CHANGE,test123(i,txt1))
  
  var txt2:TextInput=new TextInput();
      txt2.width=88;
      createtxtinput(txt2);
      txt2.addEventListener(Event.CHANGE,test123(i,txt2))
    }
  
  public function test123(x:int,txtmaterial:TextInput){
      return function(event){
      //  
          setValuestable2multi(x,txtmaterial.text);
  //  Alert.show(x.toString());
      }
  
  }
  </code></pre>