4 Replies Latest reply on Jun 24, 2010 12:25 PM by rtalton

    Passing parameter

    _H_P_ Level 1

      I have several TextInputs in a certain form which have been assigned id in an incremental order. For example:

       

          <s:TextInput id = "index1"/>
          <s:TextInput id = "index2"/>    <s:TextInput id = "index3"/>
      

       

      Based on certain conditions I select the text from the corresponding TextInput and pass the value (index#.text) into a function

       

           foo(var index:String)

       

      If I had just one of the TextInput I could have used:

       

          foo(index1.text)

       

      Can someone suggest how I can pass the textInput using its id.

       

      Thank you.

       

      -H